-
Notifications
You must be signed in to change notification settings - Fork 2
Installation
Offical releases are available from: http://code.google.com/p/django-photologue/
you can install photologue via pip
pip install -e git+git://github.com/petry/django-photologue.git#egg=django-photologue
You can verify Photologue is available to your project by running the following commands from within your project directory:
manage.py shell
>>> import photologue
>>> photologue.VERSION
(2, 0, 'rc1')
Add 'photologue' to your INSTALLED_APPS setting:
INSTALLED_APPS = (
# ...other installed applications,
'photologue',
)
Confirm that your MEDIA_ROOT, STATIC_ROOT, STATIC_URL and MEDIA_URL settings are correct.
Add the following to your projects urls.py file:
from django.contrib import admin
admin.autodiscover()
Run the Django 'syncdb' command to create the appropriate tables. After the database in initialized, run the following command to initialize Photologue:
python manage.py plinit
To use the included photo gallery templates and views you need to first add photologue to your projects urls.py file.
# urls.py:
urlpatterns += patterns('',
url(r'^admin/', include(admin.site.urls)),
url(r'^photologue/', include('photologue.urls')),
)
Once your urls are configured you need to copy the directory photologue/templates/photologue to your projects "templates" directory:
myproject/
myapp/
...
templates/
photologue/
...
If you'd rather, you can also add the absolute path to the photologue/templates directory to your TEMPLATE_DIRS setting.
# settings.py:
TEMPLATE_DIRS = ('/path/to/photologue/templates',)
Offical docs:
http://code.google.com/p/django-photologue/w/list
If you have any questions or need help with any aspect of Photologue please feel free to join the discussion group:
http://groups.google.com/group/django-photologue