Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/twihike/django-starter

🚀 Django starter
https://github.com/twihike/django-starter

Last synced: 2 days ago
JSON representation

🚀 Django starter

Awesome Lists containing this project

README

        

# django-starter

## run

```shell
# setup database
pipenv run python manage.py makemigrations
pipenv run python manage.py migrate
pipenv run python manage.py createsuperuser

# set SECRET_KEY
pipenv run python manage.py shell -c "from django.core.management import utils; print(utils.get_random_secret_key())"

# run
pipenv run python manage.py runserver
```

## How would I set this up myself

```shell
# pipenv
PIPENV_VENV_IN_PROJECT=true pipenv --python 3.7
pipenv install PACKAGES...

# create project
pipenv run django-admin startproject config .
mkdir -p apps/
pipenv run python manage.py startapp apps/
```

Sphinx

```shell
pipenv run sphinx-quickstart docs
pipenv run sphinx-apidoc -f -o ./docs .
pipenv run sphinx-build -b html ./docs ./docs/_build
pipenv run make -C docs html
```