Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

drfb/pythonph

Open more actions menu
 
 

Repository files navigation

PythonPH

Development Setup via virtualenv

  1. Make a copy of .env.virtualenv as .env.
$ cp .env.virtualenv .env
  1. Create and activate your virtualenv.
$ virtualenv venv
$ source venv/bin/activate
  1. Install python packages.
$ pip install -r requirements/virtualenv.txt
  1. Run Django migrations.
$ python manage.py migrate
  1. Run Django server.
$ python manage.py runserver
  1. Install npm packages and run build watcher (Optional, only run if you need to work on JS).
$ npm install
$ npm run dev

Development Setup via docker-compose

  1. Make a copy of .env.docker as .env.
$ cp .env.docker .env
  1. Build images and run containers.
$ docker-compose build
$ docker-compose up -d
  1. Run migrations
$ docker-compose run --rm web migrate
  1. Running Django's manage.py to run other commands
$ docker-compose run --rm web python manage.py <command>

About

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • SCSS 72.3%
  • HTML 16.5%
  • Python 7.0%
  • JavaScript 3.9%
  • Shell 0.2%
  • Dockerfile 0.1%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.