Commit 8c480cf5 authored by Bruno Martin's avatar Bruno Martin
Browse files

fix users app imports

parent 74fa71fc
......@@ -2,5 +2,5 @@ from django.apps import AppConfig
class UsersConfig(AppConfig):
name = 'base_django_project.users'
name = 'users'
verbose_name = "Users"
......@@ -309,7 +309,7 @@ REST_FRAMEWORK = {
}
REST_AUTH_REGISTER_SERIALIZERS = {
'REGISTER_SERIALIZER': 'base_django_project.users.serializers.RegistrationSerializer'
'REGISTER_SERIALIZER': 'users.serializers.RegistrationSerializer'
}
# Some really nice defaults
......@@ -319,7 +319,7 @@ ACCOUNT_EMAIL_VERIFICATION = 'optional'
ACCOUNT_USERNAME_REQUIRED = False
ACCOUNT_ALLOW_REGISTRATION = env.bool('DJANGO_ACCOUNT_ALLOW_REGISTRATION', True)
SOCIALACCOUNT_ADAPTER = 'base_django_project.users.adapters.SocialAccountAdapter'
SOCIALACCOUNT_ADAPTER = 'users.adapters.SocialAccountAdapter'
SOCIALACCOUNT_QUERY_EMAIL = True
SOCIALACCOUNT_PROVIDERS = {
......
......@@ -6,7 +6,7 @@ from django.views import defaults as default_views
from django.views.generic import TemplateView
from rest_framework.documentation import include_docs_urls
from base_django_project.users.views import FacebookLogin, TwitterLogin, \
from users.views import FacebookLogin, TwitterLogin, \
FacebookConnect, TwitterRequestToken, TwitterAccessToken, TwitterConnect
urlpatterns = [
......@@ -25,7 +25,7 @@ urlpatterns = [
url(r'^api/pages/', include('base_django_project.pages.urls', namespace='pages')),
# User management
url(r'^api/profile/', include('base_django_project.users.urls', namespace='users')),
url(r'^api/profile/', include('users.urls', namespace='users')),
url(r'^rest-auth/facebook/$', FacebookLogin.as_view(), name='fb_login'),
url(r'^rest-auth/twitter/$', TwitterLogin.as_view(), name='tw_login'),
url(r'^rest-auth/facebook/connect/$', FacebookConnect.as_view(), name='fb_connect'),
......
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