You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
ArturBaybulatov 3ed593b96c Merge branch 'setup' of https://bitbucket.org/PekopT/archilance into setup 10 years ago
api #ARC-14 10 years ago
archilance #ARC-14 10 years ago
assets #ARC-14 10 years ago
chat #ARC-16 Fixes websocket url 10 years ago
common #ARC-14 10 years ago
projects Merge branch 'setup' of https://bitbucket.org/PekopT/archilance into setup 10 years ago
ratings #ARC-27 Fixes reviews bugs 10 years ago
requirements #ARC-14 10 years ago
reviews #ARC-27 Add serializers 10 years ago
specializations #ARC-10 Add managements command and template tags for contractor 10 years ago
templates #ARC-15 add position for candidate table 10 years ago
users Merge branch 'setup' of https://bitbucket.org/PekopT/archilance into setup 10 years ago
wallets #ARC-27 Add serializers 10 years ago
work_sell #ARC-15 jquery-sortable add 10 years ago
.gitignore #ARC-4 Add projects_tags and specialization tags 10 years ago
README.md #ARC-14 10 years ago
manage.py edit settings 10 years ago

README.md

Setup

Go to a folder and install a virtualenv:

cd path/to/venv/folder && \
virtualenv . --python python3.5 && \
source bin/activate && \
pip install --requirement path/to/requirements.txt
python manage.py makemigrations projects specializations users && \
python manage.py migrate
python manage.py runserver
python manage.py shell_plus --use-pythonrc

Generate data via:

python manage.py generate_* commands

Data generation order:

  1. Superuser
  2. Specializations
  3. Locations
  4. Perm. groups
  5. Build. classif-s
  6. Constr. types
  7. Users
  8. Teams
  9. Realties
  10. Projects
  11. Portfolios
  12. Reviews

or here is right commands in one str:

python manage.py generate_superuser && 
python manage.py generate_specializations && 
python manage.py generate_locations && 
python manage.py generate_perm_groups &&
python manage.py generate_build_classifs && 
python manage.py generate_constr_types &&
python manage.py generate_users && 
python manage.py generate_teams && 
python manage.py generate_realties && 
python manage.py generate_projects && 
python manage.py generate_portfolios && 
python manage.py generate_reviews