Changed project name

This commit is contained in:
teras 2017-11-16 15:13:29 +02:00 committed by Lauri Võsandi
parent c9b41b6ea6
commit d20b2cb3e4
11 changed files with 48 additions and 14 deletions

9
.gitignore vendored
View File

@ -101,9 +101,16 @@ ENV/
.mypy_cache/
db.sqlite3
workspace.xml
tasks.xml
media/icons
challenges/migrations
static/
#PyCharm files
.idea/deployment.xml
.idea/misc.xml
.idea/modules.xml
.idea/vcs.xml
.idea/workspace.xml

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="dataSourceStorageLocal">
<data-source name="Django default" uuid="810b5a68-e40c-47b5-b764-41dab6eceb8f">
<database-info product="" version="" jdbc-version="" driver-name="" driver-version="" />
<auth-required>false</auth-required>
<first-sync>true</first-sync>
</data-source>
</component>
</project>

16
.idea/dataSources.xml Normal file
View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
<data-source source="LOCAL" name="Django default" uuid="810b5a68-e40c-47b5-b764-41dab6eceb8f">
<driver-ref>sqlite.xerial</driver-ref>
<synchronize>true</synchronize>
<imported>true</imported>
<remarks>$PROJECT_DIR$/kspace/settings.py</remarks>
<jdbc-driver>org.sqlite.JDBC</jdbc-driver>
<jdbc-url>jdbc:sqlite:$PROJECT_DIR$/db.sqlite3</jdbc-url>
<driver-properties>
<property name="enable_load_extension" value="true" />
</driver-properties>
</data-source>
</component>
</project>

View File

@ -1,5 +1,6 @@
from django.contrib import admin
from challenges.models import *
from kspace.models import *
admin.site.register(Challenge)
admin.site.register(ChallengeTag)

View File

@ -1,5 +1,5 @@
"""
Django settings for challenges project.
Django settings for kspace project.
Generated by 'django-admin startproject' using Django 1.11.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
@ -22,7 +22,7 @@ SECRET_KEY = 'gze3mreum6caz26_k2zq8(zn+)v3pdfaup+-e20eu@vca5st=b'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = ['k-space.ee', '127.0.0.1']
ALLOWED_HOSTS = ['k-space.ee', 'kspace', '127.0.0.1']
# Application definition
@ -34,7 +34,7 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'challenges'
'kspace'
]
MIDDLEWARE = [
@ -47,7 +47,7 @@ MIDDLEWARE = [
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
ROOT_URLCONF = 'challenges.urls'
ROOT_URLCONF = 'kspace.urls'
TEMPLATES = [
{
@ -66,7 +66,7 @@ TEMPLATES = [
},
]
WSGI_APPLICATION = 'challenges.wsgi.application'
WSGI_APPLICATION = 'kspace.wsgi.application'
# Database

View File

@ -13,13 +13,13 @@ Including another URLconf
1. Import the include() function: from django.conf.urls import url, include
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url
from django.contrib import admin
from django.conf import settings
from django.conf.urls import url
from django.conf.urls.static import static
from django.contrib import admin
from django.contrib.staticfiles.storage import staticfiles_storage
from django.views.generic.base import RedirectView
from challenges import views
from kspace import views
urlpatterns = [
url(r'^$', views.index),

View File

@ -3,7 +3,7 @@ from django.shortcuts import render
from django.views.decorators.csrf import csrf_protect
from django.contrib.auth.models import User
from django.contrib.auth import authenticate, login, logout
from .models import *
from kspace.models import *
def index(request):

View File

@ -1,5 +1,5 @@
"""
WSGI config for challenges project.
WSGI config for kspace project.
It exposes the WSGI callable as a module-level variable named ``application``.
@ -11,6 +11,6 @@ import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "challenges.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "kspace.settings")
application = get_wsgi_application()

View File

@ -3,7 +3,7 @@ import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "challenges.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "kspace.settings")
try:
from django.core.management import execute_from_command_line
except ImportError: