This repository has been archived by the owner on Oct 15, 2020. It is now read-only.
forked from praekelt/django-photologue
-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.txt
104 lines (60 loc) · 2.8 KB
/
README.txt
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
Photologue
Powerful image management for the Django web framework.
Installation
============
Offical releases are available from: http://code.google.com/p/django-photologue/
Source Distribution
-------------------
Download the .zip distribution file and unpack it. From within the extracted directory run the following command:
python setup.py install
Tracking the Development Version
--------------------------------
The current development version of Photologue can be checked out via Subversion from the project site using the following command:
svn checkout http://django-photologue.googlecode.com/svn/trunk/ photologue-trunk
Then either copy the photologue-trunk/photologue directory or create a symlink to the photologue-trunk/photologue directory somewhere on your python path, such as your Django project or site-packages directory.
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')
Configure Your Django Settings
------------------------------
Add 'photologue' to your INSTALLED_APPS setting:
INSTALLED_APPS = (
# ...other installed applications,
'photologue',
)
*** Confirm that your MEDIA_ROOT and MEDIA_URL settings are correct. ***
Register Photologue with the Django Admin
-----------------------------------------
Add the following to your projects urls.py file:
from django.contrib import admin
admin.autodiscover()
Sync Your Database
------------------
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
Instant Photo Gallery
---------------------
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('',
(r'^admin/(.*)', admin.site.root),
(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',)
Additional Documentation and Support
------------------------------------
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