Re: Use an external REST API in django admin

2018-07-17 Thread Derek
If you were accessing a third-party API you could have a ForeignDataWrapper table linked to it. I have never tried this, and not sure if this would conflict with Django's ORM expectations. On Monday, 16 July 2018 16:16:59 UTC+2, micka wrote: > > Hello, > > I wish I could use the data from an e

Re: Model formset not saving

2018-07-17 Thread cbparker
Yes, it is still returning None. On Wednesday, July 18, 2018 at 12:40:06 AM UTC-4, Glen D souza wrote: > > have you tried > > form.save(commit = True) ? > > > > On 18 July 2018 at 01:27, > wrote: > >> Is there a paid support option to get help? I've been trying to ask for >> help on IRC for a wh

Re: Model formset not saving

2018-07-17 Thread Glen D souza
have you tried form.save(commit = True) ? On 18 July 2018 at 01:27, wrote: > Is there a paid support option to get help? I've been trying to ask for > help on IRC for a while but all I've gotten is insults. > > On Monday, July 16, 2018 at 6:06:00 PM UTC-4, cbpa...@gmail.com wrote: >> >> I'm u

Re: problem with instaling django

2018-07-17 Thread mottaz hejaze
first install python 3.6 not 3.7 second install virtualenv third make a virtualenv and use pip inside it .. On Wed, 18 Jul 2018, 01:36 Gerardo Palazuelos Guerrero, < gerardo.palazue...@gmail.com> wrote: > Hi, > Is there any chance that you can use a Virtual Environment? > At least in my experienc

Help with reusing generic views in my little finance/budget application

2018-07-17 Thread rod termaat
I have a small checkbook application I am building as a hobby to replace my excel spreadsheets and learn Django and Python. I am using Django 2 and Python 3 dot something. I have 1 view (function) where your monthly income and expenses are displayed on an HTML Calendar. The navigation is b

Re: problem with instaling django

2018-07-17 Thread Gerardo Palazuelos Guerrero
Hi, Is there any chance that you can use a Virtual Environment? At least in my experience, many issues happened to me because due to issues resolving the proper python version in my computer, until I started using a virtual environment per django project. I suggest you to check the django girls tu

Re: problem with instaling django

2018-07-17 Thread Shay Hershko
> > I tried and this is what showes up > > -- You received this message because you are subscribed to the Google Groups "Django users" gr

Re: Django foreign-key cannot assign must be a instance

2018-07-17 Thread Sainath Bavugi
Thanks a lot. that worked On Tuesday, 17 July 2018 13:29:49 UTC+1, Sainath Bavugi wrote: > > I am developing a web app using Django. I have created the table in MySQL > database and then generated the models.py using inspectdb. I am able to > fetch details and connect to the database withou

Re: Having issues with dependencies and virtual environments when I run pipenv lock and when I try to install django using this command.

2018-07-17 Thread Demayne Collins
Got it. That looked like it worked. Thanks again... r, Demayne On Tue, Jul 17, 2018 at 12:04 PM MTS BOUR wrote: > Stackoverflow is your friend > > > https://stackoverflow.com/questions/51201018/pipenv-not-recognizing-pyenv-version > > Pipenv is doesn't automatically use the same Python version

Re: Model formset not saving

2018-07-17 Thread cbparker
Is there a paid support option to get help? I've been trying to ask for help on IRC for a while but all I've gotten is insults. On Monday, July 16, 2018 at 6:06:00 PM UTC-4, cbpa...@gmail.com wrote: > > I'm using Django 2.0.3 on Ubuntu 16.04. Any idea what would cause a model > formset to return

Re: Having issues with dependencies and virtual environments when I run pipenv lock and when I try to install django using this command.

2018-07-17 Thread MTS BOUR
Stackoverflow is your friend https://stackoverflow.com/questions/51201018/pipenv-not-recognizing-pyenv-version Pipenv is doesn't automatically use the same Python version unless you tell it to do that. You can either tell Pipenv to use a specific Python version, like pipenv install --python 3.7

Having issues with dependencies and virtual environments when I run pipenv lock and when I try to install django using this command.

2018-07-17 Thread Demayne Collins
I am basically trying to use this tutorial but I having issues with python 3.6 and 3.7 and the pipenv command in general. Any assistance would help. here is the error info below. (revdjangoenv) C:\Users\Demayne Collins\Desktop\pages\pages_project>pipenv lock Warning: Your Pipfile requires pytho

Re: Tutorial part 3 help: bulleted-list

2018-07-17 Thread premalatha balan
Hi all, I was doing ok until https://docs.djangoproject.com/en/1.11/intro/tutorial03/#namespacing-url-names part. Not sure what happened. The error is NoReverseMatch at /poll "Reverse for 'detail' not found. 'detail' is not a valid view function or pattern name." "Error during template ren

Re: trying to learn custom validators

2018-07-17 Thread clavierplayer
Oh, this is perfect! Works exactly the way I need it. Thank you so much for your help! On Monday, July 16, 2018 at 5:12:40 PM UTC-4, Matthew Pava wrote: > > What I would do in that situation is add a custom field to the model form > that holds the item number. Then, in the save method, convert

Re: Django foreign-key cannot assign must be a instance

2018-07-17 Thread Glen D souza
I would suggest you to try this code sav_list = List(id=4, item_name ='name1', item_desc='desc1', location='location', reason='rfp', pid=Order.objects.get(poid = 3)) Instead of passing integer 3 to pid, try to the pass the order Object which has the poid = 3 On 17 July 2018 at 17:33, Sainath B

Re: Django foreign-key cannot assign must be a instance

2018-07-17 Thread Gerald Brown
The way I do it is backwards from what you are doing.  I.E. I make the models first and then use ./manage.py makemigrations & ./manage.py migrate.  This way Django creates the tables AND the FK Indexes, which I think may be missing on your setup.  Now that you have the models try running the ab

Django foreign-key cannot assign must be a instance

2018-07-17 Thread Sainath Bavugi
I am developing a web app using Django. I have created the table in MySQL database and then generated the models.py using inspectdb. I am able to fetch details and connect to the database without any issues. But while saving the values to the particular table, below error is shown *Cannot assig

Fwd: Live Streaming Video With WebCam

2018-07-17 Thread Pravin Yadav
Hello Guys, I'm developing the website using the *Python 3.6 and Django 2.0. *I want to integrated the *Live Streaming Video* through *WebCam*. If anyone know about this functionality kindly help me. *Thanks, in Advance.* Pravin Kumar -- You received this message because you are subscribed to

Re: I can't see my models in MySQL db

2018-07-17 Thread rajib ghosh
First check if Django is installed Try Python manage.py makemigrations ython manage.py migrate On Tue, 17 Jul 2018, 08:32 A. Azimzadeh, wrote: > Greetings! > > Dears, please help me. > > Thanks a lot > > On Sun, Jul 15, 2018, 21:09 A. Azimzadeh > wrote: > >> Any help !? >> >> >> On Sat, Jul

Re: problem with instaling django

2018-07-17 Thread rajib ghosh
First install Anaconda Try Pip install Django Or Easy install django On Mon, 16 Jul 2018, 20:32 Ashok Ramesh, wrote: > sys.setdefaultencoding('latin-1') try this in settings instead > of sys.setdefaultencoding('utf-8') > > On Mon, Jul 16, 2018 at 7:47 PM Shay Hershko > wrote: > >> i tried to i