Re: New to Python

2018-05-17 Thread Derek
In addition to Beautiful Soup, you probably need Requests (http://docs.python-requests.org/en/master/). Some examples of using these together: https://gist.github.com/bradmontgomery/1872970 https://www.digitalocean.com/community/tutorials/how-to-work-with-web-data-using-requests-and-beautiful-s

Django 2.0 MongoDB

2018-05-17 Thread Kadir Guloglu
Hi how to connection my django 2 project in MongoDB ? Thanks -- 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, send an email to django-users+unsubscr...@googlegroups.com. To post

Field.choices get all items as json

2018-05-17 Thread Majid Hojati
Hi, I have a Field.choices in my model. lets say it is: YEAR_IN_SCHOOL_CHOICES = ( > ('FR', 'Freshman'), > ('SO', 'Sophomore'), > ('JR', 'Junior'), > ('SR', 'Senior'), > ) I can access them using this method Model. YEAR_IN_SCHOOL_CHOICES but how can I convert it to a json then I can send them

Re: Field.choices get all items as json

2018-05-17 Thread C. Kirby
if you just want to put that into json do: import json YEAR_IN_SCHOOL_CHOICES = ( ('FR', 'Freshman'), ('SO', 'Sophomore'), ('JR', 'Junior'), ('SR', 'Senior'), ) serialized_year_choices = json.dumps(Model.YEAR_IN_SCHOOL_CHOICES) On Thursday, May 17, 2018 at 10:52:15 AM UTC-4,

ImportError : cannot import name include

2018-05-17 Thread Tristan Demot
Hello, I use docs.djangoproject.co/en/2.0 Python 2 7 13 Gjango 1.11.13 Creating the Polls app OK Write your first view OK But python manage runserver don't work With : python -Wall manage.py test ImportError : cannot import name include If you want to see something, ask me Many thanks --

Re: ImportError : cannot import name include

2018-05-17 Thread Fidel Leon
You are using the wrong combination of Django and tutorial: “include” is available in Django 2 and up, but you’re using Django 1.11. Fidel Leon fi...@flm.cat Phone: +34 622 26 44 92 GPG: 2585 30C2 E3C7 7151 0864 946B 7423 F94B 5753 5FC7 El 17 de mayo de 2018 a las 20:56:56, Tristan Demot ( cont

Re: ImportError : cannot import name include

2018-05-17 Thread Daniel Hepper
You are using Django 1.11 with the tutorial written for Django 2.0. Therr should be a version picker on the bottom right of the tutorial. You are seeing this error because the way to import ‚include’ has changed from 1.11 to 2.0 Hope that helps, Daniel > Am 17.05.2018 um 19:34 schrieb Tristan

Error Djongo MongoDB

2018-05-17 Thread Kadir Guloglu
Hi I am try to connect MongoDB and I am getting an exception *Thanks for help* *CMD* *c:\Proje\otomabakv2\otomabak\otomabak>python manage.py makemigrations* *Traceback (most recent call last):* * File "manage.py", line 15, in * *execute_from_command_line(sys.argv)* * File "C:\Users\Kadir

Django 2.1 alpha 1 released

2018-05-17 Thread Tim Graham
We've made the first release on the way to Django's next major release, Django 2.1! With about two and a half months until the final release (scheduled for August 1), we'll need timely testing from the community to ensure an on time, stable release. Check out the blog post: https://www.djangoprojec

Re: Django 2.1 alpha 1 released

2018-05-17 Thread Aditya Singh
Wow wow wow! My best and nost powerful framework in the world. Super excited for the new release! Kind Regards, Aditya On Fri, May 18, 2018, 6:45 AM Tim Graham wrote: > We've made the first release on the way to Django's next major > release, Django 2.1! With about two and a half months until th

Re: Django 2.0 MongoDB

2018-05-17 Thread Ryan Nowakowski
Django is typically used with a SQL database. There's a fork of Django called non-rel that works with mongo but it's not actively developed any longer. Instead you can access mongo from a Django view via the standard mongo python library but you won't be able to use Django's models or admin. Tho

Re: Error Djongo MongoDB

2018-05-17 Thread Ryan Nowakowski
Is your mongo host (IP) and port set correctly? On May 17, 2018 4:09:17 PM CDT, Kadir Guloglu wrote: >Hi > >I am try to connect MongoDB and I am getting an exception > >*Thanks for help* > >*CMD* > >*c:\Proje\otomabakv2\otomabak\otomabak>python manage.py makemigrations* >*Traceback (most recent c

Re: How to retrieve existing data of mongodb database in Django

2018-05-17 Thread Ryan Nowakowski
It looks like you're reusing the variable connone. Could that be the issue? On May 15, 2018 10:38:06 AM CDT, gomahe...@gmail.com wrote: >I am new to Django started developing the application but got a >problem in >retrieving the data from already existing data which looks like this >below. >

Re: Error Djongo MongoDB

2018-05-17 Thread Aditya Singh
Hi mate, This is the assured solution. This is because djongo looks for active mongo connection to connect. Download mongodb for your os and fire up mongod fron bin directory. Then create a folder named data/db in root disk drive. It should then work flawlessly. Kind Regards, Aditya On Fri, May 18

Re: ImportError : cannot import name include

2018-05-17 Thread Pranay reddy
From which package you have imported "include "

Re: Error Djongo MongoDB

2018-05-17 Thread Kadir Guloglu
Sorry I don't understand :( 18 Mayıs 2018 Cuma 07:10:28 UTC+3 tarihinde Aditya Singh yazdı: > > Hi mate, > This is the assured solution. This is because djongo looks for active > mongo connection to connect. Download mongodb for your os and fire up > mongod fron bin directory. Then create a fol