Commit Graph

149 Commits

Author SHA1 Message Date
Saurabh Kumar
932ec5dd44 Add meta x-ua-compatible in the rendered base.html
See more:
* https://github.com/h5bp/html5-boilerplate/blob/master/src/doc/html.md#x-ua-compatible
2015-05-09 23:51:48 +05:30
Saurabh Kumar
41faca3a54 Update Angularjs to 1.3.15 (latest stable) 2015-05-09 23:14:50 +05:30
Saurabh Kumar
353be64535 Deprecate protocol-relative URLs
Always use the HTTPS URL when it’s available.

See also:
* https://github.com/konklone/cdns-to-https#conclusion-cdns-should-redirect-to-https
* http://www.paulirish.com/2010/the-protocol-relative-url/
* 2de99b2ba3
2015-05-09 23:10:32 +05:30
Saurabh Kumar
2d81d61167 Make use of 'admin.register' decorator in admin.py 2015-05-09 22:23:36 +05:30
Saurabh Kumar
b60e13ed31 Use list, instead of 'patterns' for urlpatterns 2015-05-09 22:22:57 +05:30
Saurabh Kumar
49ab03e4cf Remove unnecessary account templates
closes #126
2015-05-01 00:29:11 +05:30
Saurabh Kumar
3abb87acbc Drop Support for django-avatar [not compatible with django 1.8]
- makes the whole cookie lighter and acceptable to wider community
- redues cookie maintainance buren
2015-04-26 16:45:21 +05:30
Saurabh Kumar
948200f4cf Update sites -> migrations 2015-04-26 16:45:21 +05:30
Saurabh Kumar
b6e5a995ef Update users -> migrations 2015-04-26 16:45:21 +05:30
Saurabh Kumar
5fa988b8de Minor update to make signup/login template better. 2015-04-26 16:44:41 +05:30
Saurabh Kumar
9f3116ba4c Major refractor to move PYTHON_PATH to top-level repo dir
- PYTHON_PATH now should point to `root_dir` instead of `apps_dir`
- `manage.py` now lives at the root dir
- `config` is moved out to root dir
2015-04-26 11:35:46 +05:30
Saurabh Kumar
0cc9958635 fix(settings/production): Use python2/3 compatible unicode->btye conversion 2015-04-26 11:15:48 +05:30
Saurabh Kumar
b60b01c4fe fix(settings/production): fix typo s/AWS_EXPIREY/AWS_EXPIRY/g 2015-04-26 10:43:34 +05:30
Saurabh Kumar
cdd0cc3a02 chore(settings/local): add some documentation and formating 2015-04-26 10:39:38 +05:30
Saurabh Kumar
0f8f564790 Merge pull request #217 from ka7eh/ka7eh
Fixed a bug with escaped spaces in Cache-Control.
2015-04-25 19:42:11 +05:30
Saurabh Kumar
581563fa35 Make SECRET_KEY required in production and not in development 2015-04-25 18:59:33 +05:30
Saurabh Kumar
47f89d9df1 Fixed local settings, SECRET_KEY setter and add TEST_RUNNER explicitly
Thanks @ad-m for reporting

closes #223
2015-04-25 18:36:35 +05:30
Adam Dobrawy
ddded31e62 Fix APPS_DIR to move up to config
```In [2]: environ.Path('/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/common.py')
Out[2]: <Path:/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/common.py>

In [3]: environ.Path('/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/common.py') -1
Out[3]: <Path:/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config>

In [4]: environ.Path('/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/common.py') - 2
Out[4]: <Path:/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}>
```
I believe we don't want store data (see STATICFILES_DIRS) in config directory.
2015-04-25 00:02:18 +02:00
Kaveh
a2947ecc73 Added a note as a reminder to revert the last commit after this issue is
fixed: https://github.com/jschneier/django-storages/issues/47
2015-04-24 13:32:37 -05:00
Lin Xianyi
9c758e40e5 Typo for DATABASES in config/production.py 2015-04-24 11:37:50 +08:00
Kaveh
ccbcd6cd6a Fixed a bug with escaped spaces in Cache-Control.
see: https://github.com/boto/boto/issues/2536
2015-04-20 13:05:01 -05:00
Saurabh Kumar
ec8283dbe7 Make all the PEP8 failure pass 2015-04-20 18:03:58 +05:30
Saurabh Kumar
a289d98a49 Fix minor typo in comment section 2015-04-20 10:19:07 +05:30
Saurabh Kumar
89c0fb3ff8 Replace django-configuration with django-environ
- makes it compatible with django 1.8
- removes magic
2015-04-20 03:48:41 +05:30
Saurabh Kumar
4404122bda Merge pull request #201 from pydanny/fix-s3-calling-format
fix(settings): fix non-existing import of s3
2015-04-06 20:26:48 +05:30
Saurabh Kumar
0c7eaff6a8 Merge pull request #202 from streeter/patch-1
Fix a typo
2015-04-06 20:26:28 +05:30
Kevin Ndung'u
f598ae19b8 Update jQuery and Bootstrap versions 2015-03-31 12:52:17 +03:00
Chris Streeter
70cbc12fbf Fix a typo 2015-03-17 20:02:55 -07:00
Saurabh Kumar
8566d4d0b0 fix(settings): fix non-existing import of s3
- `from S3 import CallingFormat` - the S3 module never existed.
- fixed the calling format accoroding to `STATIC_URL`
2015-03-17 17:35:07 +05:30
Saurabh Kumar
ba2bcf8190 Merge pull request #199 from ka7eh/ka7eh
Updated INSTALLED_APPS for 'collectfast'.
2015-03-13 12:20:08 +05:30
Kaveh
431f7a69a3 Removed django version check for collectfast. 2015-03-12 08:58:01 -05:00
Saurabh Kumar
91c3ff00ed fix(setup.py): do not import package in setup.py
- adds `__version_info__` meta for package
- update django requirement to 1.7.6

closes #98
2015-03-12 13:58:11 +05:30
Kaveh
abd0883b61 Updated INSTALLED_APPS for 'collectfast'. 2015-03-09 14:44:43 -05:00
Philippe Luickx
2580dad42d Middleware security placed in production configuration 2015-02-26 17:15:47 +02:00
Saurabh Kumar
a9a729e500 feat(templating): make TIMEZONE default to UTC and configurable
Thanks @burhan for reportings this.

closes #109
2015-02-24 19:06:31 +05:30
Kevin Ndung'u
59487ba542 Fix small typo in wsgi.py
Add missing `cookiecutter`  reference in wsgi.py
2015-02-12 12:49:33 +03:00
Fabio C. Barrionuevo da Luz
34afcbb453 ignore pep8 on django-configurations import in wsgi.py file 2015-02-10 12:55:33 -03:00
Daniel Greenfeld
32bee30d6a Corrected 'repo_name' so it's not on my personal branch 2015-01-13 08:39:10 -08:00
Daniel Greenfeld
b54309c48f Switched to using cookiecutter 0.9.0 Jinjafied cookiecutter.json 2015-01-13 08:37:28 -08:00
zcho
a3ceb4c9f5 Fix lost import
Return lost import for 
raise forms.ValidationError(self.error_messages['duplicate_username'])
2015-01-04 13:59:38 +03:00
Andy
bdb2147590 Fixed typo 2015-01-03 16:56:01 -06:00
Andy
a81ffdc87d Fixed typo 2015-01-03 16:54:35 -06:00
Martin Blech
a362c4041a Added django-extensions to local configuration
It's one of the recommended apps in Two Scoops of Django. `runserver_plus` and
`shell_plus` are real time-savers!
2014-12-18 18:29:02 -03:00
Daniel Greenfeld
ec3a480595 Merge pull request #158 from martinblech/atomic-requests
Added ATOMIC_REQUESTS=True to default DB setup
2014-12-18 09:12:34 -08:00
Chris Franklin
e0cf4337d2 Fix quote marks in common config to be consistent. 2014-12-03 15:07:22 +00:00
Chris Franklin
9ee47dab78 Fix quote marks 2014-12-03 15:04:52 +00:00
Chris Franklin
7e048c8942 Fix spelling mistakes in production config 2014-12-03 15:02:52 +00:00
Martin Blech
96d053c866 Added ATOMIC_REQUESTS=True to default DB setup
Quoting Two Scoops of Django:
> Use `ATOMIC_REQUESTS` as long as the performance overhead is bearable. That
> means "forever" on most sites.
2014-12-02 17:30:46 -03:00
Martin Blech
48a1ddd48c Added default Vagrant gateway to INTERNAL_IPS
Makes Django Debug Toolbar show up too when running inside the Vagrant VM.
2014-12-01 20:54:48 -03:00
Matt Warren
e29879d813 addresses issue mentioned here: https://code.djangoproject.com/ticket/19353
adding users in admin resulted in reference to auth.User
2014-11-26 00:21:25 +05:30