When i try to submit filled form it redirects me to login page with my form
which perceives as incorrect.
What it may come from?
#views.py
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.decorators import login_required
from django.shortcuts import render,
ge
urls.py
---
url(r'^accounts/profile/$', create_profile, { 'profile_callback':
UserProfile.objects.create },name='profiles_create_profile'),
url(r'^accounts/editprofile/$', edit_profile,
name='profiles_edit_profile'),
url(r'^accounts/viewprofile/(?P\w+)/$', profile_detail,
name='profiles_profi
My app does not use south as it keeps me django.core.management Improperly
configured error. hence I have to syncdb everytime. I wanted to add the
image element to the user profile models.py already created. This gives me
a unknown element image in fieldlist error, How can I fix this ?
p.s. I a
you'll need to manually add the field to your database with something like:
alter table myapp_userprofile add image varchar(100);
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it,
Thanks !! That worked !
On Friday, August 8, 2014 6:12:19 PM UTC+5:30, Collin Anderson wrote:
>
> you'll need to manually add the field to your database with something like:
>
> alter table myapp_userprofile add image varchar(100);
>
--
You received this message because you are subscribed to t
5 matches
Mail list logo