Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dtgoitia/django-playground
https://github.com/dtgoitia/django-playground
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dtgoitia/django-playground
- Owner: dtgoitia
- Created: 2018-09-18T07:37:13.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-19T07:48:30.000Z (over 6 years ago)
- Last Synced: 2024-10-28T13:55:45.741Z (2 months ago)
- Language: Python
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Observations
The following notes were taken while following the _Django REST Framework_ quickstart tutorial[^1].
## Installation
### 1 Set Git and Pipenv
```shell
git init
git config user.email "[email protected]"
git remote add origin [email protected]:dtgoitia/django-playground.gitpipenv install --python 3.7
pipenv install --dev "flake8"
pipenv install django
pipenv install djangorestframework
```### 2 Start project
```shell
$ pipenv run django-admin.py startproject tutorial .
$ cd tutorial
$ pipenv run django-admin.py startapp quickstart
$ cd ..
```In windows requires to call straight away the file as such [^2]:
```shell
$ pipenv run python C:\\Users\\david-torralba-goiti\\.virtualenvs\\djangoplayground-4loSAOGh\\Scripts\\django-admin.py startproject tutorial .
$ cd tutorial
$ pipenv run python C:\\Users\\david-torralba-goiti\\.virtualenvs\\djangoplayground-4loSAOGh\\Scripts\\django-admin.py startapp quickstart
$ cd ..
```### 3 Sync database for first time
```shell
$ pipenv run python manage.py migrate
```### 4 Create super user
```bash
$ pipenv run python manage.py createsuperuser --email [email protected] --username admin
```For the purpose of this test, the password is `1234`.
[^1]: http://www.django-rest-framework.org/tutorial/quickstart/
[^2]: https://stackoverflow.com/questions/3681216/django-admin-py-startproject-is-not-working