Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 984 Bytes

README.md

File metadata and controls

35 lines (27 loc) · 984 Bytes

trondapps-backend

Install

  • pip install djangorestframework, markdown, django-filter, django-cors-headers, unidecode, djongo
  • configure file /dapps/settings.py

  • python manage.py collectstatic
  • python manage.py makemigrations
  • python manage.py migrate
  • python manage.py createsuperuser
  • python manage.py runserver 8000
# change params

CORS_ORIGIN_WHITELIST = ()
CORS_ORIGIN_REGEX_WHITELIST = ()
ALLOWED_HOSTS = []

# recommended not to change
CORS_ALLOW_METHODS = () 

```python 
# default database mongodb
DATABASES = {
    'default': {
        'ENGINE': 'djongo',
        'NAME': 'tronapps',
    }
}