forked from barseghyanartur/django-qartez
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3e187eb
commit 36fd2ea
Showing
11 changed files
with
126 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
python setup.py install | ||
mkdir -p example/db/ example/static/ example/tmp/ example/media/ | ||
python example/example/manage.py collectstatic --noinput |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
reset | ||
./uninstall.sh | ||
./install.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
__title__ = 'qartez' | ||
__title__ = 'qartez.constants' | ||
__author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>' | ||
__all__ = ('REL_ALTERNATE_HREFLANG_SITEMAP_TEMPLATE',) | ||
|
||
# Tiny bit of XML responsible for rendering the alternate hreflang code | ||
REL_ALTERNATE_HREFLANG_SITEMAP_TEMPLATE = """ | ||
<xhtml:link | ||
rel="alternate" | ||
hreflang="%(lang)s" | ||
href="%(href)s" | ||
hreflang="{lang}" | ||
href="{href}" | ||
/> | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
__title__ = 'qartez' | ||
__title__ = 'qartez.defaults' | ||
__author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>' | ||
__all__ = ('PREPEND_LOC_URL_WITH_SITE_URL', 'PREPEND_IMAGE_LOC_URL_WITH_SITE_URL', 'CHANGEFREQ', 'DEBUG') | ||
__all__ = ( | ||
'PREPEND_LOC_URL_WITH_SITE_URL', 'PREPEND_IMAGE_LOC_URL_WITH_SITE_URL', | ||
'CHANGEFREQ', 'DEBUG' | ||
) | ||
|
||
# When set to True, current site's domain is prepended to the location URL. | ||
PREPEND_LOC_URL_WITH_SITE_URL = True | ||
|
||
# When set to True, current site's domain is prepended to the image location URL. | ||
# When set to True, current site's domain is prepended to the image location | ||
# URL. | ||
PREPEND_IMAGE_LOC_URL_WITH_SITE_URL = True | ||
|
||
# Valid changefreq values according to the specs http://www.sitemaps.org/protocol.html | ||
CHANGEFREQ = ['always', 'hourly', 'daily', 'weekly', 'monthly', 'yearly', 'never'] | ||
# Valid changefreq values according to the specs | ||
# http://www.sitemaps.org/protocol.html | ||
CHANGEFREQ = [ | ||
'always', 'hourly', 'daily', 'weekly', 'monthly', 'yearly', 'never' | ||
] | ||
|
||
DEBUG = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,32 @@ | ||
""" | ||
Override the following values in your global ``settings`` module by adding `QARTEZ_` prefix to the values. | ||
Override the following values in your global ``settings`` module by adding | ||
`QARTEZ_` prefix to the values. | ||
When it comes to importing the values, import them from ``qartez.settings`` module (without `QARTEZ_` prefix). | ||
When it comes to importing the values, import them from ``qartez.settings`` | ||
module (without `QARTEZ_` prefix). | ||
``PREPEND_LOC_URL_WITH_SITE_URL``: When set to True, current site's domain is prepended to the location URL. | ||
``PREPEND_LOC_URL_WITH_SITE_URL``: When set to True, current site's domain is | ||
prepended to the location URL. | ||
``PREPEND_IMAGE_LOC_URL_WITH_SITE_URL``: When set to True, current site's domain is prepended to the image location URL. | ||
``PREPEND_IMAGE_LOC_URL_WITH_SITE_URL``: When set to True, current site's | ||
domain is prepended to the image location URL. | ||
``CHANGEFREQ``: Valid changefreq values according to the specs http://www.sitemaps.org/protocol.html | ||
``CHANGEFREQ``: Valid changefreq values according to the specs | ||
http://www.sitemaps.org/protocol.html | ||
""" | ||
__title__ = 'qartez' | ||
__title__ = 'qartez.settings' | ||
__author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>' | ||
__all__ = ('PREPEND_LOC_URL_WITH_SITE_URL', 'PREPEND_IMAGE_LOC_URL_WITH_SITE_URL', 'CHANGEFREQ', 'DEBUG') | ||
__all__ = ( | ||
'PREPEND_LOC_URL_WITH_SITE_URL', 'PREPEND_IMAGE_LOC_URL_WITH_SITE_URL', | ||
'CHANGEFREQ', 'DEBUG', | ||
) | ||
|
||
from qartez.conf import get_setting | ||
|
||
PREPEND_LOC_URL_WITH_SITE_URL = get_setting('PREPEND_LOC_URL_WITH_SITE_URL') | ||
PREPEND_IMAGE_LOC_URL_WITH_SITE_URL = get_setting('PREPEND_IMAGE_LOC_URL_WITH_SITE_URL') | ||
PREPEND_IMAGE_LOC_URL_WITH_SITE_URL = get_setting( | ||
'PREPEND_IMAGE_LOC_URL_WITH_SITE_URL' | ||
) | ||
CHANGEFREQ = get_setting('CHANGEFREQ') | ||
|
||
DEBUG = get_setting('DEBUG') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters