Bower stuff

This commit is contained in:
Tyrel Souza 2017-04-02 03:48:42 +00:00
parent 9257fbc5ab
commit 49cd11e1ab
3 changed files with 30 additions and 28 deletions

View File

@ -6,13 +6,6 @@ Python
~~~~~~
Model Mommy
-----------
Install: http://model-mommy.readthedocs.io/en/latest/index.html
Model-mommy offers you a smart way to create fixtures for testing in Django. With a simple and powerful API you can create many objects with a single line of code.
Django Nose
-----------
@ -20,6 +13,14 @@ https://django-nose.readthedocs.io/en/latest/usage.html
django-nose provides all the goodness of nose in your Django tests.
Model Mommy
-----------
Install: http://model-mommy.readthedocs.io/en/latest/index.html
Model-mommy offers you a smart way to create fixtures for testing in Django. With a simple and powerful API you can create many objects with a single line of code.
Sniffer
-------

View File

@ -10,4 +10,4 @@ mysql-python
djangorestframework
markdown # Markdown support for the browsable API.
django-filter # Filtering support
django-filter # Filtering support

View File

@ -4,7 +4,11 @@ import sys
# PATH vars
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
root = lambda *x: os.path.join(BASE_DIR, *x)
def root(*x):
return os.path.join(BASE_DIR, *x)
sys.path.insert(0, root('apps'))
@ -31,6 +35,7 @@ PROJECT_APPS = [
]
THIRD_PARTY_APPS = [
'django_nose',
'djangobower',
'rest_framework',
]
INSTALLED_APPS += PROJECT_APPS
@ -68,26 +73,26 @@ DATABASES = {
# Internationalization
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'EST'
USE_I18N = False
USE_L10N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
STATIC_URL = '/static/'
# Additional locations of static files
STATIC_ROOT = root('static')
STATICFILES_DIRS = (
root('assets'),
)
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
)
TEMPLATES = [
{
@ -112,20 +117,16 @@ TEMPLATES = [
]
# Password validation
_password_validators = (
'UserAttributeSimilarityValidator',
'MinimumLengthValidator',
'CommonPasswordValidator',
'NumericPasswordValidator',
)
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
{'NAME': 'django.contrib.auth.password_validation{}'.format(validator)}
for validator in _password_validators
]
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'