Re: Issue with manage.py runserver

2016-12-04 Thread pradam programming
Hi, 1.Check any other file in directory by same name. 2.check __init__.py file is their in Root Project folder.. On 4 Dec 2016 8:04 pm, wrote: > I started a new project in Django today (actually my first django > project). Strangely when I run python manage.py runserver it does > absolutely noth

Re: Migrations and multiple databases

2016-11-24 Thread pradam programming
Yes do the same. On Thu, Nov 24, 2016 at 11:16 PM, odd hogstad wrote: > db1 holds the auth stuff already. Do I need to also have it in db2 for the > migrations to work? > > torsdag 24. november 2016 12.22.14 UTC+1 skrev pradam.programming følgende: >> >> hi Hogstad, >> Before doing app migrate p

Re: Migrations and multiple databases

2016-11-24 Thread pradam programming
hi Hogstad, Before doing app migrate please python manage.py migrate auth ==>I hope this will solve the issue On Thu, Nov 24, 2016 at 3:54 PM, odd hogstad wrote: > I have two databases in my project, db1, which changes quite frequently, > and db2, which seldom changes. The app was original writt

Re: help for creating relationship between User model an another model !!

2016-11-23 Thread pradam programming
Hi, Please refer this link. http://stackoverflow.com/questions/34473323/typeerror-int-argument-must-be-a-string-a-bytes-like-object-or-a-number-not On 23 Nov 2016 9:55 pm, "adonis simo" wrote: > Thanks for looking > This is the whole stack trace : > Operations to perform: > Apply all migration

Re: Upload Images from Remote Server

2016-11-22 Thread pradam programming
e an error, like no such file, django should > print a stacktrace in the log. It's a list of all the function that > django called before getting the error. That help a lot when dealing > with error. > > 2016-11-22 12:15 GMT+01:00 pradam programming < > pradam.progra

Re: Upload Images from Remote Server

2016-11-22 Thread pradam programming
gt; 2016-11-21 14:09 GMT+01:00 pradam programming < > pradam.programm...@gmail.com>: > > hi Guys, > > 1.I have Created an API which store images into database just giving > image > > path but issue is when i remotely upload image using API i will get the > &

Upload Images from Remote Server

2016-11-21 Thread pradam programming
hi Guys, 1.I have Created an API which store images into database just giving image path but issue is when i remotely upload image using API i will get the following error show no such file or Directory eg: [ {'name':'foo','date':'2016-11-21','organization_name':'buzz','description':'Abhilash','im

Re: Rest Framework and Swagger

2016-11-07 Thread pradam programming
Hi Tom, I have Implemented Swagger for CBV but i dont know how to do it for FBV..? Please Help me out..!! On Mon, Nov 7, 2016 at 4:14 PM, Tom Christie wrote: > https://github.com/marcgibbons/django-rest-swagger > > > On Saturday, 5 November 2016 16:17:10 UTC, pradam.programming wrote: >> >> Hi G

Rest Framework and Swagger

2016-11-05 Thread pradam programming
Hi Guys, Please I need an advice on the best approach to take on the following issues. How can i Implement Swagger for CBV and FBV in rest framework ...? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop r

SQLAchemy

2016-11-02 Thread pradam programming
hi, I am new to SqlAchemy.My questions are as follows: 1.When i write tables in sql achemy format i can't able to do makemigrations and migrate..? 2.In SqlAchemy Explicitly i need to specify database whenever i do CRUD operations ? 3.Whats the main advantage over SQLAchemy vs Django OMR.? -- You

Re: Form Saving Related Issues

2016-11-01 Thread pradam programming
and send a > reply with yes or no. > > 2016-11-01 3:30 GMT+01:00 pradam programming >: > > Thank you sir for the reply.. > > But I am using HTML forms then what should I do...? I want error message > > should display instantly when user enter existing mail id..!

Re: Form Saving Related Issues

2016-10-31 Thread pradam programming
gt; success message that will get added to whatever page you're redirecting to > (as long as you make sure your template is rendering messages) -> > https://docs.djangoproject.com/en/1.10/ref/contrib/ > messages/#adding-a-message > > On Mon, Oct 31, 2016 at 1:55 AM, pradam prog

Form Saving Related Issues

2016-10-31 Thread pradam programming
Hi, Please I need an advice on the best approach to take on the following issues. I have create a form to save user details like first name,last name,email,mobile number etc... 1.Now I need to show error message (In Models i gave email and mobile no field as unique = True) when user enter a email

Re: Migrating custom mysql application to django orm

2016-10-30 Thread pradam programming
hi Yasar, create_dic_of_searchterm = {'searchabletext_id':1,'term':'this'} SearchTerm.objects.create(**create_dic_of_searchterm) you can do like above On Sat, Oct 29, 2016 at 9:33 PM, Yaşar Arabacı wrote: > Hi, > > I am trying to migrate my mysql application into django orm. I need help > co

Re: WOrking with checkbox Multiple Select FIeld - Django Admin

2016-10-30 Thread pradam programming
try to to get all the checked objects using getlist from request store it in a textfield.this is better when you have 20 check boxes then code become too complex and messy On Sun, Oct 30, 2016 at 10:55 AM, M Hashmi wrote: > Form ModelForm if you need to check a single field then you set it as >