Django powered responsive project used for my site:
This is an attempt to create a very basic responsive blog site powered by Django and make it as easy as possible to get installed and running on a Mac.
This project requires some knowledge of python virtualenv, Ruby Compass and command line usage.
The instructions that follow are far from complete but should get you up and running.
!!!Not to be used on production environments!!!
####Dependencies
####Instructions
-
Clone the repo:
git clone https://github.com/weeksghost/djangoproject.git
cd djangoproject
-
Create and install the project dependencies in a virtualenv
pip install -r requirements.txt
-
This project uses compass to compile its css so you must also install Ruby Compass
-
Generate project css:
cd compass
compass compile
-
Map your settings (database):
You can see results faster by symlinking the example settings:
ln -s djangoproject/settings/example/settings.py djangoproject/settings/__init__.py
Or you can create your own. I would suggest copying and renaming the example directory just remember to symlink your settings.py file in the djangoproject/settings directory.
-
Sync the database:
./manage.py syncdb
./manage.py migrate
-
Use pre-configured fabfile to run server:
fab fresh0
or
./manage.py runserver 127.0.0.1:8000
-
(Optional)
I've included some fixtures to preload data from my site to be used as examples:
./manage.py loaddata homepage/fixtures/homepage.json
./manage.py loaddata blog/fixtures/entries.json
-
Visit the local site:
-
Visit the admin:
If you would like to host a verison of the project there are instructions (originally authored by a colleague) on how to set up a Complete Single Server Django Stack I am currently running a fork of this project on an AWS instance.