Update docs & tests for Python 2.7/3.3+ and Django 1.7+

This commit is contained in:
Ross Poulton
2015-12-16 10:35:00 +11:00
parent 6187b0568c
commit 9c249a818b
5 changed files with 26 additions and 35 deletions

View File

@ -46,7 +46,7 @@ Please include tests in the ``tests/`` folder when committing code changes.
Database schema changes
-----------------------
As well as making your normal code changes to ``models.py``, please generate a South migration file and commit it with your code. You will want to use a command similar to the following::
As well as making your normal code changes to ``models.py``, please generate a Django migration file and commit it with your code. You will want to use a command similar to the following::
./manage.py migrate helpdesk --auto [migration_name]

View File

@ -70,8 +70,7 @@ django-helpdesk is released under the BSD license, however it packages 3rd party
Dependencies
------------
1. Python 2.5+
2. Django (1.3 or newer)
3. South for database migrations (highly recommended, but not required). Download from http://south.aeracode.org/
4. An existing **working** Django project with database etc. If you cannot log into the Admin, you won't get this product working! This means you **must** run `syncdb` **before** you add ``helpdesk`` to your ``INSTALLED_APPS``.
1. Python 2.7+ (or 3.3+)
2. Django (1.7 or newer)
3. An existing **working** Django project with database etc. If you cannot log into the Admin, you won't get this product working! This means you **must** run `syncdb` **before** you add ``helpdesk`` to your ``INSTALLED_APPS``.

View File

@ -38,7 +38,6 @@ Adding To Your Django Project
'django.contrib.sites',
'django.contrib.admin', # Required for helpdesk admin/maintenance
'django.contrib.humanize', # Required for elapsed time formatting
'south', # Highly recommended to make database migrations simpler in Django < 1.7
'markdown_deux', # Required for Knowledgebase item formatting
'bootstrapform', # Required for nicer formatting of forms with the default templates
'helpdesk', # This is us!
@ -54,11 +53,9 @@ Adding To Your Django Project
This line will have to come *after* any other lines in your urls.py such as those used by the Django admin.
3. Create the required database tables. I'd suggest using *South*, however the following will work::
3. Create the required database tables.
./manage.py syncdb
Then migrate using South / Django 1.7+ migrations::
Migrate using Django migrations::
./manage.py migrate helpdesk