Skip to content

Commit

Permalink
Merge pull request #26 from Elthan/upgrade-django
Browse files Browse the repository at this point in the history
Upgraded Django version to 1.11
  • Loading branch information
torgeirl committed Jul 20, 2018
2 parents 3f19bd1 + db87553 commit 1fb7436
Show file tree
Hide file tree
Showing 111 changed files with 1,326 additions and 9,807 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ coverage.xml
# Django stuff:
*.log
*.pot
**/migrations/


# Sphinx documentation
Expand All @@ -57,10 +58,11 @@ db.sqlite3
# Ignore user-specific pycharm settings
.idea/workspace.xml
.idea/tasks.xml
.idea/

# OSX Files
.DS_Store
docs/.DS_Store

# dbdev_tempdata
dbdev_tempdata/
dbdev_tempdata/
1 change: 0 additions & 1 deletion .idea/.name

This file was deleted.

5 changes: 0 additions & 5 deletions .idea/encodings.xml

This file was deleted.

22 changes: 0 additions & 22 deletions .idea/inspectionProfiles/Project_Default.xml

This file was deleted.

7 changes: 0 additions & 7 deletions .idea/inspectionProfiles/profiles_settings.xml

This file was deleted.

4 changes: 0 additions & 4 deletions .idea/misc.xml

This file was deleted.

9 changes: 0 additions & 9 deletions .idea/modules.xml

This file was deleted.

3 changes: 0 additions & 3 deletions .idea/pycharm_bashrc.sh

This file was deleted.

28 changes: 0 additions & 28 deletions .idea/runConfigurations/Django_runserver.xml

This file was deleted.

28 changes: 0 additions & 28 deletions .idea/runConfigurations/Django_runserver_open_browser.xml

This file was deleted.

5 changes: 0 additions & 5 deletions .idea/scopes/scope_settings.xml

This file was deleted.

34 changes: 0 additions & 34 deletions .idea/trix2.iml

This file was deleted.

7 changes: 0 additions & 7 deletions .idea/vcs.xml

This file was deleted.

4 changes: 0 additions & 4 deletions .idea/watcherTasks.xml

This file was deleted.

Empty file removed .this_is_the_trix_reporoot
Empty file.
3 changes: 1 addition & 2 deletions docs/README.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

To make html files from doc, run

$ fab docs

$ inv docs
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

# General information about the project.
project = u'trix'
copyright = u'2014, trix'
copyright = u'2018, trix'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand Down
16 changes: 8 additions & 8 deletions docs/develop/databasedumps.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ Using and creating database dumps

We use dumpscript_ from the django-extentions Django app to create our test
data. We already have data, so unless you want to add more data, you do not need
to know anything more than how to run a Django management task or a fabric task.
to know anything more than how to run a Django management task or an invoke task.


***********************
Importing the test data
***********************
The easiest method of importing the test database is to use the ``recreate_devdb`` Fabric task::
The easiest method of importing the test database is to use the ``recreate_devdb`` Invoke task::

$ fab recreate_devdb
$ inv recreate_devdb

.. warning:: This will destroy your current database.

Expand All @@ -31,10 +31,10 @@ Users in the test database
**************************
After importing the test data, you will have some new users. Login to the Django admin UI (http://localhost:8000/admin/) with::

user: grandma@example.com
password: test
user: super@example.com
password: asdf

and select Users to list all users. The password of all users are ``test``.
and select Users to list all users. The password of all other users are ``test``.



Expand All @@ -45,7 +45,7 @@ To add new data, you just need to do add data to the database manually, or progr

Adding data manually (I.E.: Using the Django admin UI)
======================================================
To add data manually, you should first run thr ``recreate_devdb`` management
To add data manually, you should first run the ``recreate_devdb`` management
command to make sure you start out with the current up-to-date dataset. Then you
can use the web-UI or the Django shell to add data. Finally, run::

Expand All @@ -60,4 +60,4 @@ the top of ``trix/project/develop/dumps/dev/data.py`` for information
about how ``import_helper`` works.


.. _dumpscript: http://django-extensions.readthedocs.org/en/latest/dumpscript.html
.. _dumpscript: http://django-extensions.readthedocs.org/en/latest/dumpscript.html
39 changes: 25 additions & 14 deletions docs/develop/gettingstarted.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,29 @@ Install the requirements
************************
Install the following:

#. Python
#. Python2.7
#. PIP_
#. VirtualEnv_
#. virtualenvwrapper_
#. libjpeg, liblcms1, libfreetype6 and zlib for the required format support in Pillow
#. gettext for Django translations
#. nodejs and npm for our clientside stuff
.. #. libjpeg, liblcms1, libfreetype6 and zlib for the required format support in Pillow
Install the system packages on OSX with Homebrew
================================================
::

$ brew install gettext nodejs
$ brew install npm nodejs

You will also have to add gettext to your path if you want to be able to update translation strings. You can eighter run ``brew link gettext --force``, or add ``/usr/local/Cellar/gettext/SOMETHING/bin/`` to your path.
You will also have to add gettext to your path if you want to be able to update translation strings. You can either run ``brew link gettext --force``, or add ``/usr/local/Cellar/gettext/SOMETHING/bin/`` to your path.


Install the system packages on Ubuntu
================================================
::

$ sudo apt-get install gettext nodejs
$ sudo apt-get install npm nodejs



Expand All @@ -41,10 +41,6 @@ Create a virtualenv (an isolated Python environment)::

$ mkvirtualenv trix

Install the development requirements::

$ pip install -r requirements/develop.txt


.. _enable-virtualenv:

Expand All @@ -55,6 +51,25 @@ Install the development requirements::

$ workon trix

Install the development requirements::

$ pip install -r requirements/develop.txt


Run npm install (include -g if you want global)::

$ inv npm-install


Run bower install::

$ inv bower-install


Finally build the static files::

$ inv grunt-build


*****************
Create a database
Expand All @@ -63,21 +78,17 @@ See :doc:`databasedumps`.





**************
Build the docs
**************
:ref:`Enable the virtualenv <enable-virtualenv>`, and run::

$ cd docs/
$ fab docs
$ inv docs

Then open ``_build/index.html`` in a browser.




.. _PIP: https://pip.pypa.io
.. _VirtualEnv: https://virtualenv.pypa.io
.. _virtualenvwrapper: http://virtualenvwrapper.readthedocs.org/
File renamed without changes.
9 changes: 0 additions & 9 deletions docs/fabfile.py

This file was deleted.

9 changes: 9 additions & 0 deletions docs/tasks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from invoke import task


@task
def docs(ctx):
"""
Build the docs.
"""
ctx.run('sphinx-build -b html . _build')

0 comments on commit 1fb7436

Please sign in to comment.