Skip to content

Commit

Permalink
Renamed example project
Browse files Browse the repository at this point in the history
  • Loading branch information
ellmetha committed Dec 10, 2017
1 parent 6770dad commit f827abc
Show file tree
Hide file tree
Showing 35 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ tests/_testdata/media/machina
tests/settings_local.py

# Don't commit env-specific settings and files
example_project/vanilla_project/settings/env.py
example_project/example_project/settings/env.py
2 changes: 1 addition & 1 deletion docs/example_project.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ To run this project locally, you can follow these instructions:
$ cd example_project/
$ pipenv run python manage.py migrate
$ pipenv run python manage.py createsuperuser
$ pipenv run python manage.py loaddata vanilla_project/fixtures/*
$ pipenv run python manage.py loaddata example_project/fixtures/*
$ pipenv run python manage.py runserver
.. note::
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from django.views.generic import FormView
from django.views.generic import UpdateView

from vanilla.common.mixins import MenuItemMixin
from example.common.mixins import MenuItemMixin

from .forms import UserCreationForm
from .forms import UserDeletionForm
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

import inspect


Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@

# See: https://docs.djangoproject.com/en/dev/ref/settings/#locale-paths
LOCALE_PATHS = (
PROJECT_PATH.child('vanilla_project', 'locale'),
PROJECT_PATH.child('example_project', 'locale'),
)


Expand All @@ -131,7 +131,7 @@
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': (
PROJECT_PATH.child('vanilla', 'templates'),
PROJECT_PATH.child('example', 'templates'),
MACHINA_MAIN_TEMPLATE_DIR,
),
'OPTIONS': {
Expand Down Expand Up @@ -194,7 +194,7 @@
# URL CONFIGURATION
# ------------------------------------------------------------------------------

ROOT_URLCONF = 'vanilla_project.urls'
ROOT_URLCONF = 'example_project.urls'

# See: https://docs.djangoproject.com/en/dev/ref/settings/#wsgi-application
WSGI_APPLICATION = 'wsgi.application'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

STATICFILES_DIRS = (
MACHINA_MAIN_STATIC_DIR, # noqa: F405
PROJECT_PATH.child('vanilla', 'static'), # noqa: F405
PROJECT_PATH.child('example', 'static'), # noqa: F405
)

STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
url(r'^' + settings.ADMIN_URL, admin.site.urls),

# Apps
url(r'', include('vanilla.apps.auth.urls')),
url(r'', include('example.apps.auth.urls')),
url(r'', include(board.urls)),
]

Expand Down
2 changes: 1 addition & 1 deletion example_project/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
import sys

if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'vanilla_project.settings.dev')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'example_project.settings.dev')
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
2 changes: 1 addition & 1 deletion example_project/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
from django.core.wsgi import get_wsgi_application


os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'vanilla_project.settings.dev')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'example_project.settings.dev')
application = get_wsgi_application()

0 comments on commit f827abc

Please sign in to comment.