Re: Django rest framework

2022-11-25 Thread Devang
Follow this website https://www.cdrf.co/ It has all cheat sheet. If you you want to implement login and signup please use either rest-auth or dj-rest-auth package On Fri, 25 Nov 2022, 22:39 M Adnan, wrote: > Message in the group if no body will help than I will guide you in group I > am in

Re: migrations not created for foreign key when primary key type is changed

2022-09-03 Thread Devang
Hi Markus, I was thinking same. On Sat, 3 Sep 2022, 14:02 Markus Holtermann, wrote: > This is expected and by design. Because in the model where you define the > foreign key, you also don't define its type. The type is automatically > resolved through the column type from the target model. > >

Re: migrations not created for foreign key when primary key type is changed

2022-09-02 Thread Devang
I guess it might be changed by postgres. Have you checked postgres documentation ? On Fri, 2 Sep 2022, 18:45 Manasvi Dobariya, wrote: > I have default primary key in the model which is being referenced as > foreign key in another model. Now, when I change this primary key type from > AutoField

Re: Guys i have issue while loading sub module in django app

2022-09-02 Thread Devang
Sub-module mean file like views.py or models.py On Sun, 28 Aug 2022, 14:21 Paul serubombwe, wrote: > Elaborate more bro, what do you mean by sub model > > On Sat, Aug 27, 2022, 23:56 देव Hingu wrote: > >> Please check here for my problem >> >>

Re: "RuntimeError: Error creating new content types."

2015-06-22 Thread Devang Mundhra
t; > Where app is the django app name and listing is the model name. So that > sounds to me like I'm seeing what everyone else is, the migration is just > not applied on the database for some reason, but shows as being applied OK. > > // Chris > > > On Wednesday,

Re: "RuntimeError: Error creating new content types."

2015-06-10 Thread Devang Mundhra
es migration (0002_remove_content_type_name) is being > marked as applied but not actually run in the database, that will help > determine if this is a bug in Django or a problem elsewhere. > > > On Wednesday, June 10, 2015 at 7:11:48 AM UTC-4, Devang Mundhra wrote: >> >> I am gettin

Re: "RuntimeError: Error creating new content types."

2015-06-10 Thread Devang Mundhra
I am getting the same error on Django v1.8.2 after migrating from v1.7.7 The underlying error is this- django.db.utils.IntegrityError: null value in column "name" violates not- > null constraint > DETAIL: Failing row contains (39, null, app_name, model_name). > > On Friday, April 17, 2015 at

Django Problem

2010-02-26 Thread Devang
Hi Everyone, I m developiing a pastebin site for my LAN and i had follow all steps of following site: http://docs.djangoproject.com/en/dev/intro/tutorial01/ http://docs.djangoproject.com/en/dev/intro/tutorial02/#intro-tutorial02 But i m getting following Error after loading admin module in

Re: interaction of django with paypal

2009-08-29 Thread Devang Modi
THAT REDIRECT TO DOWNLOAD URL))): return HttpResponseRedirect(reverse(YOUR VIEW FUNCTION THAT REDIRECT TO DOWNLOAD URL)) elif (request.method == 'POST'): -Devang. On 8/29/09, orschiro <orsch...@googlemail.com> wrote: > > Hello guys, > > I've set up a Single-Pay-Button

Re: Template Inheritance - best solution

2009-08-29 Thread Devang Modi
You can include navigation base template code under djnago block and in your template make that block empty. example: base.html {% block navigation %} some code {% endblock navigtion%} child.html {% extends "base.html %} {% block navigation %}{% endblock navigation %} -Devang. On 8/