This repository has been archived by the owner on Aug 19, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathREADME
73 lines (47 loc) · 1.56 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
Introduction
------------
Skeleton setup to quickly start a `Django`_ project.
Installation
------------
Install requirements:
* `Git`_
* `Subversion`_
* `Fabric`_
* `pip`_
* `Virtualenv`_
* `Virtualenvwrapper`_
Clone the project::
$ git clone git://github.com/gillesfabio/django-newproject.git
This will create ``django-newproject`` directory in your current directory.
Create a project
----------------
Launch ``newproject`` Fabric task::
$ cd django-newproject
$ fab newproject
The script will ask you some questions.
Go in the project's directory and active the virtualenv::
$ cd /path/to/your/project
$ workon yourproject
Customization
-------------
The default configuration for a "standard" Django project (not a Google App
Engine one) uses ``sqlite3`` database backend. The database file
is stored in ``db/development.sqlite``.
If this does not suit your needs, edit ``settings_local.py``.
Edit these files as necessary:
* ``settings.py``
* ``urls.py``
* ``requirements-prod.txt``
* ``requirements.txt``
* ``templates/layout/base.html``
Then, synchronize the database and run the server::
$ python manage.py syncdb
$ python manage.py runserver
That's all. Have fun!
.. _Django: http://djangoproject.com/
.. _Git: http://git-scm.org/
.. _Subversion: http://subversion.tigris.org/
.. _Fabric: http://fabfile.org/
.. _pip: http://pypi.python.org/pypi/pip
.. _Virtualenv: http://pypi.python.org/pypi/virtualenv
.. _Virtualenvwrapper: http://pypi.python.org/pypi/virtualenvwrapper