forked from CGM_Public/pretix_original
Static files management / LessCSS compiler / Bootstrap import
This commit is contained in:
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
[submodule "src/tixlbase/static/bootstrap"]
|
||||
path = src/tixlbase/static/bootstrap
|
||||
url = https://github.com/twbs/bootstrap.git
|
||||
@@ -3,11 +3,18 @@ The development setup
|
||||
|
||||
Obtain a copy of the source code
|
||||
--------------------------------
|
||||
Just clone our git repository::
|
||||
Just clone our git repository including its submodules::
|
||||
|
||||
git clone https://github.com/tixl/tixl.git
|
||||
git clone --recursive https://github.com/tixl/tixl.git
|
||||
cd tixl/
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
* Python 3.4 or newer
|
||||
* ``pip`` for Python 3
|
||||
* ``git``
|
||||
* ``lessc`` (Debian package: ``node-less``)
|
||||
|
||||
Your local python environment
|
||||
-----------------------------
|
||||
|
||||
|
||||
1
src/.gitignore
vendored
1
src/.gitignore
vendored
@@ -8,3 +8,4 @@
|
||||
*~
|
||||
.ropeproject
|
||||
__pycache__/
|
||||
_static/
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
Django>=1.7
|
||||
django-compressor
|
||||
BeautifulSoup4
|
||||
html5lib
|
||||
slimit
|
||||
lxml
|
||||
pyflakes
|
||||
pep8
|
||||
pep8-naming
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[flake8]
|
||||
ignore = E128
|
||||
max-line-length = 160
|
||||
exclude = tests,migrations,.ropeproject
|
||||
exclude = tests,migrations,.ropeproject,static
|
||||
max-complexity = 12
|
||||
|
||||
@@ -39,6 +39,7 @@ INSTALLED_APPS = (
|
||||
'tixlbase',
|
||||
'tixlcontrol',
|
||||
'tixlpresale',
|
||||
'compressor',
|
||||
)
|
||||
|
||||
MIDDLEWARE_CLASSES = (
|
||||
@@ -92,6 +93,24 @@ LOGIN_URL_CONTROL = '/control/login'
|
||||
|
||||
STATIC_URL = '/static/'
|
||||
|
||||
STATIC_ROOT = '_static'
|
||||
|
||||
STATICFILES_FINDERS = (
|
||||
'django.contrib.staticfiles.finders.FileSystemFinder',
|
||||
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
|
||||
'compressor.finders.CompressorFinder',
|
||||
)
|
||||
|
||||
COMPRESS_PRECOMPILERS = (
|
||||
('text/less', 'lessc {infile} {outfile}'),
|
||||
)
|
||||
|
||||
COMPRESS_CSS_FILTERS = (
|
||||
'compressor.filters.css_default.CssAbsoluteFilter',
|
||||
'compressor.filters.cssmin.CSSMinFilter',
|
||||
)
|
||||
|
||||
|
||||
try:
|
||||
from local_settings import *
|
||||
except ImportError:
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
from django.conf.urls import patterns, include, url
|
||||
from django.contrib import admin
|
||||
from django.conf import settings
|
||||
|
||||
import tixlcontrol.urls
|
||||
|
||||
@@ -8,3 +9,8 @@ urlpatterns = patterns('',
|
||||
url(r'^control/', include(tixlcontrol.urls, namespace='control')),
|
||||
url(r'^admin/', include(admin.site.urls)),
|
||||
)
|
||||
|
||||
if settings.DEBUG:
|
||||
urlpatterns += patterns('django.contrib.staticfiles.views',
|
||||
url(r'^static/(?P<path>.*)$', 'serve'),
|
||||
)
|
||||
|
||||
1
src/tixlbase/static/bootstrap
Submodule
1
src/tixlbase/static/bootstrap
Submodule
Submodule src/tixlbase/static/bootstrap added at 97027a2f6f
Reference in New Issue
Block a user