server push

This commit is contained in:
rascencio 2016-03-19 21:28:58 +01:00
parent 3d23db0c73
commit 0d04a18a0d
7 changed files with 14973 additions and 35 deletions

View file

@ -1,4 +1,5 @@
from django.conf.urls import url from django.conf.urls import url,include
from djangocms_blog.urls import urlpatterns as blog_patterns
from . import views from . import views
@ -9,6 +10,6 @@ urlpatterns = [
url(r'old_letscowork$', views.letscowork, name='letscowork'), url(r'old_letscowork$', views.letscowork, name='letscowork'),
url(r'old_home$', views.home, name='home'), url(r'old_home$', views.home, name='home'),
url(r'supporters/$', views.supporters, name='supporters'), url(r'supporters/$', views.supporters, name='supporters'),
url(r'blog/$', views.blog, name='blog'), url(r'blog/',views.blog, name='blog'),
url(r'^blog/(?P<slug>\w[-\w]*)/$', views.blog_detail, name='blog-detail'), url(r'^blog/(?P<slug>\w[-\w]*)/$', views.blog_detail, name='blog-detail'),
] ]

14938
dumpall-20160316-0200.sql Normal file

File diff suppressed because one or more lines are too long

View file

@ -48,6 +48,13 @@ SECRET_KEY = env('DJANGO_SECRET_KEY')
INSTALLED_APPS = ( INSTALLED_APPS = (
#1st migrate #1st migrate
'membership', 'membership',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.sites',
'easy_thumbnails', 'easy_thumbnails',
'mptt', 'mptt',
'parler', 'parler',
@ -61,35 +68,31 @@ INSTALLED_APPS = (
'filer', 'filer',
'djangocms_blog', 'djangocms_blog',
'cms', # django CMS itself 'cms', # django CMS itself
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.sites',
'treebeard', # utilities for implementing a tree 'treebeard', # utilities for implementing a tree
'sekizai', # for javascript and css management 'sekizai', # for javascript and css management
'menus', # helper for model independent hierarchical website navigation 'menus', # helper for model independent hierarchical website navigation
'cmsplugin_filer_image', 'cmsplugin_filer_image',
#2nd migrate #2nd migrate
# django-cms plugins # django-cms plugins
'djangocms_file', # 'djangocms_file',
'djangocms_picture', # 'djangocms_picture',
'djangocms_video', # 'djangocms_video',
'djangocms_flash', # 'djangocms_flash',
'djangocms_googlemap', # 'djangocms_googlemap',
'djangocms_inherit', # 'djangocms_inherit',
'djangocms_link', # 'djangocms_link',
'djangocms_teaser', # 'djangocms_teaser',
'djangocms_page_meta', # 'djangocms_page_meta',
'djangocms_text_ckeditor', # 'djangocms_text_ckeditor',
'djangocms_admin_style', # 'djangocms_admin_style',
'cmsplugin_filer_file', # 'cmsplugin_filer_file',
'cmsplugin_filer_folder', # 'cmsplugin_filer_folder',
'cmsplugin_filer_link', # 'cmsplugin_filer_link',
'cmsplugin_filer_teaser', # 'cmsplugin_filer_teaser',
'cmsplugin_filer_video', # 'cmsplugin_filer_video',
#blog
# versioning # versioning
'reversion', 'reversion',
# ungleich # ungleich
@ -301,9 +304,9 @@ STATICFILES_FINDERS = (
'compressor.finders.CompressorFinder', 'compressor.finders.CompressorFinder',
) )
COMPRESS_PRECOMPILERS = ( #COMPRESS_PRECOMPILERS = (
('text/less', 'lesscpy {infile}'), # ('text/less', 'lesscpy {infile}'),
) #)
THUMBNAIL_PROCESSORS = ( THUMBNAIL_PROCESSORS = (
'easy_thumbnails.processors.colorspace', 'easy_thumbnails.processors.colorspace',

View file

@ -22,9 +22,9 @@ class MyUserManager(BaseUserManager):
user = self.model( user = self.model(
email=self.normalize_email(email), email=self.normalize_email(email),
name=name, name=name,
password=password,
validation_slug=make_password(None) validation_slug=make_password(None)
) )
user.set_password(password)
user.save(using=self._db) user.save(using=self._db)
return user return user
@ -32,11 +32,9 @@ class MyUserManager(BaseUserManager):
""" """
Creates and saves a superuser with the given email, name and password. Creates and saves a superuser with the given email, name and password.
""" """
import ipdb;ipdb.set_trace()
user = self.create_user(email, user = self.create_user(email,
password=password, password=password,
name=name, name=name,
validation_slug=make_password(None)
) )
user.is_admin = True user.is_admin = True
user.save(using=self._db) user.save(using=self._db)

View file

@ -1,4 +1,5 @@
Django==1.9.4 Django==1.9.4
aldryn-newsblog
wheel wheel
django-bootstrap3 django-bootstrap3
django-cms django-cms
@ -43,4 +44,4 @@ Pillow>=2
django-filer django-filer
cmsplugin-filer cmsplugin-filer
django-reversion django-reversion
pylibmc

View file

@ -4,8 +4,6 @@
<header class="intro-header" <header class="intro-header"
{% if post.main_image_id %} {% if post.main_image_id %}
style="background-image: url('{{ post.main_image.url }}');" style="background-image: url('{{ post.main_image.url }}');"
{% else %}
style="background-image: url('{% static 'blog.ungleich.ch/img/home-bg.jpg' %}');"
{% endif %} {% endif %}
> >
<div class="container"> <div class="container">

View file

@ -1,5 +1,4 @@
{% load i18n thumbnail cms_tags %} {% load i18n thumbnail cms_tags %}
{% load url from future %}
<div class="post-preview"> <div class="post-preview">
<a href=" {{ post.get_absolute_url }} "> <a href=" {{ post.get_absolute_url }} ">