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

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.

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!