Skip to content

Commit 7c50e86

Browse files
Alex DijkstraAlex-CodeLab
Alex Dijkstra
authored andcommitted
1.10
Update README.md Update urls.py Update production.txt Update base.py Update README.md
1 parent 856bb2e commit 7c50e86

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+168
-296
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,6 @@ test_db/
2222
*.sublime-workspace
2323
media/*
2424
static/*
25-
mainapp/
25+
config/
26+
.idea/
27+

.idea/vcs.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

+48-39
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,70 @@
11

2-
# Django 1.9 Project Template - Bootstrap3, Allauth#
2+
# Django2/Django1.11 complete installer #
33

44
## About ##
55

66

77
This template installs a fully functional Django website in just a few minutes.
88

9-
Works for Django 1.8 - 1.9.*
10-
11-
This version of the project template includes new options for Django 1.8, has bootstrap3 installed and Allauth configured.
12-
13-
There are different way of setting up a django environment,
14-
and this template is the result of many 'best practice' strategies for setting up a django project structure.
15-
It aims to be simple, clear, yet complete.
9+
Django 1.11 (for python2.7)
10+
Django 2 (python3)
11+
includes bootstrap3, Allauth, and some other useful apps.
12+
13+
The goal of this template is to set up a fully functional django project in minutes, and have a clear project structure.
14+
15+
```
16+
src # project root
17+
├── manage.py
18+
├── /static
19+
├── /config # project configuration
20+
│   ├── /settings
21+
│ │   ├── base.py # project settings
22+
│ │   ├── local.py # local settings (development)
23+
│   ├── urls.py
24+
│   ├── wsgi.py
25+
├── /layout # base templates and static files
26+
│   ├── models.py
27+
│   ├── /static
28+
│   ├── /templates
29+
│ ...
30+
├── /myApp # create your app using Startapp..
31+
...
32+
```
1633

1734
Demo: http://dj.lxer.eu
1835

36+
![](http://i.imgur.com/kJcha7b.gif)
1937

2038
## Installation ##
2139

2240

2341
- Make sure you have libffi installed
24-
- $ sudo apt-get install libffi-dev
42+
```
43+
$ sudo apt-get install libffi-dev
44+
```
2545
- (when using python3) Make sure you have libevent-dev, python3-dev installed
26-
- $ sudo apt-get install libevent-dev python3-dev
46+
```
47+
$ sudo apt-get install libevent-dev python3-dev
48+
```
2749
- Install if not installed already (needed for bcrypt):
28-
- $ sudo apt-get install build-essential libssl-dev libffi-dev python-dev
29-
- Install if not installed already (needed for pillow):
30-
- $ sudo apt-get install libtiff5-dev libjpeg8-dev
31-
50+
```
51+
$ sudo apt-get install build-essential libssl-dev libffi-dev python-dev libtiff5-dev libjpeg8-dev
52+
```
3253
- Create your working environment and virtualenv:
33-
- $ virtualenv project
34-
35-
python3:
36-
- $ virtualenv -p python3 project
37-
38-
- $ cd project
39-
- $ source bin/activate
40-
41-
- Now there are 2 options: either run install.sh
42-
- $ source <(wget -qO- https://raw.githubusercontent.com/allox/django-base-template-1.8/master/install.sh)
54+
```
55+
$ virtualenv project
56+
$ virtualenv -p python3 project # for python3/django2
57+
```
58+
```
59+
$ cd project
60+
$ source bin/activate
61+
```
62+
- run install.sh :
63+
```
64+
$ source <(wget -qO- https://raw.githubusercontent.com/FeedTheWeb/django-base-template/master/install.sh)
65+
```
4366

44-
or run the following manually:
45-
46-
- $ pip install "Django>=1.8,<1.10"
47-
- $ bin/django-admin.py startproject --template https://github.com/allox/django-base-template-1.8/zipball/master --extension py,md,rst mainapp
48-
- $ mv mainapp/ src
49-
- $ cd src
50-
- Uncomment your preferred database adapter in requirements/compiled.txt (MySQL, Postgresql, or skip this step to stick with SQLite)
51-
- $ pip install -r requirements/local.txt
52-
- $ cp mainapp/settings/local-dist.py mainapp/settings/local.py
53-
- $ chmod +x manage.py
54-
- $ ./manage.py makemigrations
55-
- $ ./manage.py migrate
56-
- $ ./manage.py collectstatic
57-
- $ ./manage.py runserver
58-
67+
...and that's all!
5968

6069

6170

base/static/favicon.ico

-766 Bytes
Binary file not shown.

base/urls.py

-8
This file was deleted.

bin/git_precommit_pycheck.py

-41
This file was deleted.

bin/jenkins.sh

-69
This file was deleted.

docs/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
========================================
2-
Welcome to mainapp's documentation!
2+
Welcome to the project documentation!
33
========================================
44

55
This is a documentation template for a **web application using Django 1.5**.

0 commit comments

Comments
 (0)