Skip to content

scaamanho/django-rest-starter-kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django API Starter Kit

Create enviroment

Create a virtual enviroment and install dependencies

$> virtualenv .env
$>source .env/bin/activate
(.env)$> pip install -r requirements.txt

To exit virtual enviroment

(.env)$> deactivate

Create django app

(.env)$> django-admin startproject app
(.env)$> cd app
(.env)$> python3 manage.py  startapp api
manage.py makemigrations
manage.py migrate
manage.py createsuperuser
manage.py createsuperuser --noinput --username admin --email [email protected]

DJANGO_SUPERUSER_PASSWORD=ammin ./manage.py createsuperuser \
    --no-input \
    --username=admin \
    [email protected]
"""
'DEFAULT_AUTHENTICATION_CLASSES': [
    'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly'
],
"""

About

Base Project for Django Rest API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages