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.
This commit is contained in:
Adam Dobrawy 2015-04-25 00:02:18 +02:00
parent a4b8f64595
commit ddded31e62

View File

@ -12,7 +12,7 @@ from __future__ import absolute_import, unicode_literals
import environ
APPS_DIR = environ.Path(__file__) - 1 # one folder back (/a/b/ - 1 = /a/)
APPS_DIR = environ.Path(__file__) - 2 # one folder back (/a/b/ - 1 = /a/)
ROOT_DIR = APPS_DIR - 1
env = environ.Env()