1

My django project has a local app named 'accounts' that manages User accounts. It has live and populated db tables that start with accounts_. It also has a urls.py entry:

(r'^accounts/', include('accounts.urls')),

Now, I want to use django-allauth to support OpenId. However, I noticed that there is an app name clash since allauth also uses accounts to create db tables starting with accounts_ and asks urls.py to contain:

(r'^accounts/', include('allauth.urls')),

What is the best way to solve this app name conflict?

4

1 回答 1

0

添加db_table到元

class Accounts(models.Model):
    # ...
    class Meta:
        db_table = 'my_accounts'

关于网址。不能两个都用吗?IE:

(r'^accounts/', include('accounts.urls')),
(r'^accounts/', include('allauth.urls')),
于 2013-08-07T03:09:26.627 回答