rename the django project

This commit is contained in:
Andreas Zweili 2017-11-12 21:35:59 +01:00
parent 25d0c6f2b0
commit 1a63c54761
74 changed files with 60 additions and 30 deletions

View File

@ -1,6 +1,3 @@
WSGIScriptAlias / /vagrant/django/webshop/webshop/wsgi.py
WSGIPythonPath /vagrant/django/webshop/
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
@ -13,23 +10,27 @@ WSGIPythonPath /vagrant/django/webshop/
ServerAdmin webmaster@localhost
Alias /media/ /vagrant/django/webshop/media/
Alias /static/ /vagrant/django/webshop/static/
Alias /media/ /vagrant/django/didgeridoo/media/
Alias /static/ /vagrant/django/didgeridoo/static/
<Directory /vagrant/django/webshop/webshop>
<Directory /vagrant/django/didgeridoo/didgeridoo>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
<Directory /vagrant/django/webshop/media>
Require all granted
</Directory>
<Directory /vagrant/django/didgeridoo/media>
Require all granted
</Directory>
<Directory /vagrant/django/didgeridoo/static>
Require all granted
</Directory>
WSGIScriptAlias / /vagrant/django/didgeridoo/didgeridoo/wsgi.py
WSGIDaemonProcess didgeridoo python-path=/vagrant/django/didgeridoo processes=2 threads=15 display-name=%{GROUP}
WSGIProcessGroup didgeridoo
<Directory /vagrant/django/webshop/static>
Require all granted
</Directory>
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.

View File

@ -10,26 +10,26 @@
ServerAdmin webmaster@localhost
Alias /media/ /vagrant/django/webshop/media/
Alias /static/ /vagrant/django/webshop/static/
Alias /media/ /vagrant/django/didgeridoo/media/
Alias /static/ /vagrant/django/didgeridoo/static/
<Directory /vagrant/django/webshop/webshop>
<Directory /vagrant/django/didgeridoo/didgeridoo>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
<Directory /vagrant/django/webshop/media>
<Directory /vagrant/django/didgeridoo/media>
Require all granted
</Directory>
<Directory /vagrant/django/webshop/static>
<Directory /vagrant/django/didgeridoo/static>
Require all granted
</Directory>
WSGIScriptAlias / /vagrant/django/webshop/webshop/wsgi.py
WSGIDaemonProcess webshop python-path=/vagrant/django/webshop processes=2 threads=15 display-name=%{GROUP}
WSGIProcessGroup webshop
WSGIScriptAlias / /vagrant/django/didgeridoo/didgeridoo/wsgi.py
WSGIDaemonProcess didgeridoo python-path=/vagrant/django/didgeridoo processes=2 threads=15 display-name=%{GROUP}
WSGIProcessGroup didgeridoo
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,

View File

@ -1,5 +1,5 @@
"""
Django settings for webshop project.
Django settings for didgeridoo project.
Generated by 'django-admin startproject' using Django 1.10.7.
@ -20,7 +20,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# See https://docs.djangoproject.com/en/1.10/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '+w$5$!hiv$h)&&gz8e-02gt2q1_c=^g=n^+lrk$bhb4cms3i#q'
SECRET_KEY = '(#4#-$$&mx7(%q+6&&@-c&g%i0dc4)zfks1%sy8b%lsxspou&%'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
@ -49,7 +49,7 @@ MIDDLEWARE = [
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
ROOT_URLCONF = 'webshop.urls'
ROOT_URLCONF = 'didgeridoo.urls'
TEMPLATES = [
{
@ -67,7 +67,7 @@ TEMPLATES = [
},
]
WSGI_APPLICATION = 'webshop.wsgi.application'
WSGI_APPLICATION = 'didgeridoo.wsgi.application'
# Database
@ -125,4 +125,4 @@ USE_TZ = True
# https://docs.djangoproject.com/en/1.10/howto/static-files/
STATIC_URL = '/static/'
STATIC_ROOT = '/vagrant/django/webshop/static/'
STATIC_ROOT = '/vagrant/django/didgeridoo/static/'

View File

@ -1,4 +1,4 @@
"""webshop URL Configuration
"""didgeridoo URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
@ -13,9 +13,10 @@ 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.conf.urls import include, url
from django.contrib import admin
urlpatterns = [
url(r'^webshop/', include('webshop.urls')),
url(r'^admin/', admin.site.urls),
]

View File

@ -1,5 +1,5 @@
"""
WSGI config for webshop project.
WSGI config for didgeridoo 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", "webshop.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "didgeridoo.settings")
application = get_wsgi_application()

View File

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

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 331 B

After

Width:  |  Height:  |  Size: 331 B

View File

Before

Width:  |  Height:  |  Size: 504 B

After

Width:  |  Height:  |  Size: 504 B

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 380 B

After

Width:  |  Height:  |  Size: 380 B

View File

Before

Width:  |  Height:  |  Size: 677 B

After

Width:  |  Height:  |  Size: 677 B

View File

Before

Width:  |  Height:  |  Size: 392 B

After

Width:  |  Height:  |  Size: 392 B

View File

Before

Width:  |  Height:  |  Size: 560 B

After

Width:  |  Height:  |  Size: 560 B

View File

Before

Width:  |  Height:  |  Size: 655 B

After

Width:  |  Height:  |  Size: 655 B

View File

Before

Width:  |  Height:  |  Size: 655 B

After

Width:  |  Height:  |  Size: 655 B

View File

Before

Width:  |  Height:  |  Size: 436 B

After

Width:  |  Height:  |  Size: 436 B

View File

Before

Width:  |  Height:  |  Size: 560 B

After

Width:  |  Height:  |  Size: 560 B

View File

Before

Width:  |  Height:  |  Size: 458 B

After

Width:  |  Height:  |  Size: 458 B

View File

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 331 B

After

Width:  |  Height:  |  Size: 331 B

View File

Before

Width:  |  Height:  |  Size: 280 B

After

Width:  |  Height:  |  Size: 280 B

View File

View File

@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.

View File

@ -0,0 +1,5 @@
from django.apps import AppConfig
class WebshopConfig(AppConfig):
name = 'webshop'

View File

@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

View File

@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

View File

@ -0,0 +1,7 @@
from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index, name='index'),
]

View File

@ -0,0 +1,7 @@
from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
return HttpResponse("Hello, world. You're at the polls index.")