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/ .mypy_cache/
db.sqlite3 db.sqlite3
workspace.xml
tasks.xml tasks.xml
media/icons media/icons
challenges/migrations challenges/migrations
static/ 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 django.contrib import admin
from challenges.models import *
from kspace.models import *
admin.site.register(Challenge) admin.site.register(Challenge)
admin.site.register(ChallengeTag) 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. Generated by 'django-admin startproject' using Django 1.11.6.
For more information on this file, see For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/ 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! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True DEBUG = True
ALLOWED_HOSTS = ['k-space.ee', '127.0.0.1'] ALLOWED_HOSTS = ['k-space.ee', 'kspace', '127.0.0.1']
# Application definition # Application definition
@ -34,7 +34,7 @@ INSTALLED_APPS = [
'django.contrib.sessions', 'django.contrib.sessions',
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'challenges' 'kspace'
] ]
MIDDLEWARE = [ MIDDLEWARE = [
@ -47,7 +47,7 @@ MIDDLEWARE = [
'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware',
] ]
ROOT_URLCONF = 'challenges.urls' ROOT_URLCONF = 'kspace.urls'
TEMPLATES = [ TEMPLATES = [
{ {
@ -66,7 +66,7 @@ TEMPLATES = [
}, },
] ]
WSGI_APPLICATION = 'challenges.wsgi.application' WSGI_APPLICATION = 'kspace.wsgi.application'
# Database # Database

View File

@ -13,13 +13,13 @@ Including another URLconf
1. Import the include() function: from django.conf.urls import url, include 1. Import the include() function: from django.conf.urls import url, include
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) 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 import settings
from django.conf.urls import url
from django.conf.urls.static import static from django.conf.urls.static import static
from django.contrib import admin
from django.contrib.staticfiles.storage import staticfiles_storage from django.contrib.staticfiles.storage import staticfiles_storage
from django.views.generic.base import RedirectView from django.views.generic.base import RedirectView
from challenges import views from kspace import views
urlpatterns = [ urlpatterns = [
url(r'^$', views.index), 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.views.decorators.csrf import csrf_protect
from django.contrib.auth.models import User from django.contrib.auth.models import User
from django.contrib.auth import authenticate, login, logout from django.contrib.auth import authenticate, login, logout
from .models import * from kspace.models import *
def index(request): 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``. 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 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() application = get_wsgi_application()

View File

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