Requirements
Make sure you have installed the required software:
- Python - at least version 2.4
- Django - development version svn trunk version >=7484
- A database supported by Django - For instance, SQLite or PostgreSQL
- Django Logging Support Application - svn trunk version >=21
- Django Registration Application - svn trunk version >=142
- Python Imaging Library - version 1.1.6
- sorl-thumbnail - svn trunk version >=405
- You do not need to install either of the optional dependencies: ImageMagick or wvWare.
- pytagger - version 0.5
- OPTIONAL: If you wish to enable e-commerce, install Satchmo - svn trunk version >=1177
- Install the required software for Satchmo.
- You can safely ignore most of the installation instructions. You only need to:
- Grab the Satchmo source from svn.
svn co svn://satchmoproject.com/satchmo/trunk/ satchmo-trunk
- Add it to your PYTHONPATH or your site-packages.
- Grab the Satchmo source from svn.
Installing The DJ Edna Package
- Grab the source - svn trunk version >= 451
- Add it to your PYTHONPATH or your site-packages.
Create A Stand Alone DJ Edna Site
This option is for those that wish to quickly run a copy of the sample DJ Edna project as their own site. You can easily customize the look and feel by modifying the default templates.
- Create a new Django project including your database.
- Edit the settings.py file and add 'djedna.manage' to the INSTALLED_APPS list:
INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'djedna.manage', ) - While you're editing the settings.py file feel free to change any of the other values. You must at least change the DATABASE_* values as appropriate for your project database.
- Make sure you run the 'syncdb' management command successfully before proceeding:
$ ./manage.py syncdb
- Run the 'djedna_sample_setup' management command to transform the newly created project into a copy of the DJ Edna sample project:
$ ./manage.py djedna_sample_setup
- Run the 'syncdb' management command again to create the new tables:
$ ./manage.py syncdb
- If you installed Satchmo and wish to enable e-commerce support:
- Edit the new settings.py file and change the value of SATCHMO (near the bottom of the file) from False to True:
#SATCHMO = False SATCHMO = True if SATCHMO: ...
- Run the 'syncdb' management command again to create the new Satchmo tables:
$ ./manage.py syncdb
- Run the 'satchmo_load_l10n' and 'satchmo_load_us_tax' management commands to initialize e-commerce data:
$ ./manage.py satchmo_load_l10n $ ./manage.py satchmo_load_us_tax
- Edit the new settings.py file and change the value of SATCHMO (near the bottom of the file) from False to True:
- You should now be able run the development server:
$ ./manage.py runserver localhost:8000
- Fine tune the new settings.py file, using the Django settings and DJ Edna settings pages to determine which settings are available and how they work.
- If you want to run your new site behind apache, run the 'djedna_apache_config' management command to generate an apache virtual hosts configuration file based on your current settings:
$ ./manage.py djedna_apache_config
