Commit ce180e5d authored by Rafal's avatar Rafal

Remove warnings

parent 447077a9
......@@ -24,8 +24,6 @@ SECRET_KEY = 'q_*t*k$7f(yukuma3rkii$its1n=g&@_*&%8x0_$wimk07#kh%'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
TEMPLATE_DEBUG = True
ALLOWED_HOSTS = []
......@@ -109,3 +107,27 @@ MEDIA_URL = '/media/'
ALLOWED_HOSTS = ['*']
ANONYMOUS_USER_ID = -1
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [
# insert your TEMPLATE_DIRS here
],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
# Insert your TEMPLATE_CONTEXT_PROCESSORS here or use this
# list if you haven't customized them:
'django.contrib.auth.context_processors.auth',
'django.template.context_processors.debug',
'django.template.context_processors.i18n',
'django.template.context_processors.media',
'django.template.context_processors.static',
'django.template.context_processors.tz',
'django.contrib.messages.context_processors.messages',
],
},
},
]
\ No newline at end of file
......@@ -31,11 +31,11 @@ router.register(r'tag_discussion', tag_views.TagDiscussionViewSet, base_name="ta
urlpatterns = patterns('',
urlpatterns = [
url(r'^api/api/(\d+)/(\w+)(|\/)$', api_views.APIViewSet.test),
url(r'^api/', include(router.urls)),
url(r'^api-auth/', include('rest_framework.urls',
namespace='rest_framework')),
url(r'^api-token-auth/', token_view.obtain_auth_token),
url(r'^admin/', include(admin.site.urls)),
)
]
......@@ -7,7 +7,7 @@ from app.Tag.models import Tag
class API(models.Model):
name = models.CharField(max_length=100)
tag = models.ManyToManyField(Tag, related_name='API_tags', blank=False, null=False, default=None)
tag = models.ManyToManyField(Tag, related_name='API_tags', blank=False, default=None)
def __str__(self):
return self.name
\ No newline at end of file
......@@ -17,7 +17,7 @@ class Discussion(models.Model):
user = models.ForeignKey(User, related_name='user_creator_of_discussion',
blank=False, null=False, default=None)
question = models.CharField(max_length=100)
message = models.ManyToManyField(TextMessage, blank=True, null=True, related_name="conversations_participant")
message = models.ManyToManyField(TextMessage, blank=True, related_name="conversations_participant")
tag = models.ForeignKey(Tag, related_name='place_of_discussion', blank=False, null=False, default=None)
def __str__(self):
......
......@@ -10,7 +10,7 @@ from app.Tag.models import Tag
class Event(models.Model):
name = models.CharField(max_length=100)
private = models.BooleanField(default=False)
tag = models.ManyToManyField(Tag, related_name='event_tag', blank=False, null=False, default=None)
tag = models.ManyToManyField(Tag, related_name='event_tag', blank=False, default=None)
localization = models.ForeignKey(Localization, related_name='event_tag',
blank=False, null=False, default=None)
user = models.ForeignKey(User, related_name='event_author',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment