https://github.com/rdmurphy/django-template
:package: A basic starting point for a Django app. Intentionally simple and opinionated.
https://github.com/rdmurphy/django-template
Last synced: about 1 year ago
JSON representation
:package: A basic starting point for a Django app. Intentionally simple and opinionated.
- Host: GitHub
- URL: https://github.com/rdmurphy/django-template
- Owner: rdmurphy
- License: mit
- Created: 2015-07-27T15:53:48.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2022-01-21T19:42:45.000Z (over 4 years ago)
- Last Synced: 2025-03-26T13:38:19.655Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 179 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Django Template
A basic starting point for a Django app. Intentionally simple and opinionated. Strongly influenced by the original [Two Scoops of Django template](https://github.com/twoscoops/django-twoscoops-project) and its latest iteration [`cookiecutter-django`](https://github.com/pydanny/cookiecutter-django).
## Requirements
- Django 1.9
- Node.js
- `virtualenvwrapper`
- Willingness to change this README to something that makes sense with your project post-generation
## Getting started
Please note – this guide assumes you are using OS X.
First, create the folder for you project.
```bash
mkdir
```
Then, create the virtual environment for your project.
```bash
mkvirtualenv -dev
```
Next, install Django.
```bash
pip install django
```
Now we're ready to pull in the template. Take note — if you do not pass in the ``, it'll create a new one for you.
```bash
django-admin startproject --template=https://github.com/rdmurphy/django-template/archive/master.zip --extension=coveragerc,gitignore,html,py,js,sh
```
Jump into your newly created project folder, get `git` initialized, and make your first commit.
```bash
cd
git init
git add .
git commit -m "Initial commit"
```
Now, install your local development requirements.
```bash
pip install -r requirements/local.txt
```
You should be able to run your first `migrate` now! Give it a try.
```bash
python /manage.py migrate
```
Next, we'll install the Node.js dependencies for building our static assets.
```bash
npm install
```
Then we can build our assets.
```bash
npm run build/production
```
Running the development server is one command.
```bash
npm run serve
```
This handles both the `python manage.py runserver` and the `gulp serve`, and can cleanly exit them both. Your site will be available at `http://localhost:3000`!
Don't forget to replace this README!