Giter Site home page Giter Site logo

p013's Introduction

P013

P13 2023

STAYS

STAYS is a web social media for people who like to tell and share their stories.

Environment variables

  • in staiys/stays rename the env file to .env
  • add the missing values

Data storages

You need to install Postgresql and Redis

Database user

Create postgresql user with the name "staydmin"

GRANT ALL PRIVILEGES ON DATABASE defaultdb TO staydmin;
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO staydmin;
GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO staydmin;

Install this project manually:

  • Clone the repository
  • Checkout to branch main
  • cd stays
  • python -m venv .venv
  • source .venv/bin/activate
  • pip install -r requirements.txt

Configurations

  • The settings require a .env file
  • Add the missing values

Migrations

  • python manage.py makemigrations users
  • python manage.py migrate users
  • python manage.py makemigrations core
  • python manage.py migrate core
  • python manage.py makemigrations locations
  • python manage.py migrate locations
  • python manage.py migrate

Populate cities_light

python manage.py cities_light

Set the root of static files

python manage.py collectstatic

Start the project

Run the command

  • cd P013/stays
  • source .venv/bin/activate
  • python manage.py runserver
  • python manage.py migrate

Create an administrator

  • In another terminal python manage.py createsuperuser
  • Define the email and the password of your superuser
  • You can connect at localhost:5000/admin

Run tests:

python manage.py runtests

Credits:

p013's People

Contributors

nojoven avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

pchg

p013's Issues

๐Ÿงš๐Ÿค– Pixeebot Activity Dashboard

DashList

๐Ÿ‘‹ This dashboard summarizes my activity on the repository, including available improvement opportunities.

Recommendations

Last analysis: Apr 18 | Next scheduled analysis: Apr 23

Open

Available

๐Ÿ‘‹ Summon these changes faster with @pixeebot next

Completed

โœ… You merged improvements I recommended View

Metrics

What would you like to see here? Let us know!

Resources

๐Ÿ“š Quick links
Pixee Docs | Codemodder by Pixee

๐Ÿงฐ Tools I work with
Sonar, CodeQL, Semgrep

๐Ÿš€ Pixee CLI
The power of my codemods in your local development environment. Learn more

๐Ÿ’ฌ Reach out
Feedback | Support


โค๏ธ Follow, share, and engage with Pixee: GitHub | LinkedIn | Slack

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.