Re: Trouble with Django Tutorial Part 2

2015-12-09 Thread Mario Gudelj
Did you mix up https://docs.djangoproject.com/en/1.8/intro/tutorial01/ and https://docs.djangoproject.com/en/1.9/intro/tutorial01/? 1.9 has apps.py inside polls directory and 1.8 tutorial doesn't. So, I think you have INSTALLED_APPS setting from 1.9 tutorial inside 1.8.7 project... On Thu, 10 Dec

Trouble with Django Tutorial Part 2

2015-12-09 Thread Ana Ng
I'm new to programming in general and am learning Django 1.8.7 for a new job. The polls tutorial on the official site was recommended, and everything goes smoothly until I attempt to migrate the new classes created in part 1. When asked to migrate the classes with *python manage.py

Re: i just tried django with microsft visual studio

2015-12-09 Thread Dheerendra Rathor
Pass view in url as url(r'^$', app.views.home, name='home'), URL with string view has been deprecated. On Thu, 10 Dec 2015 at 03:31 Emmanuel Olodun wrote: > hello > i just tried django with visual studio, on performing migration i got this > error report can some please

Re: What am I supposed to do if I want a Wizard?

2015-12-09 Thread Kristofer Pettijohn
If you just want something simple, stick with Form Wizard. If it doesn't do something you need, see if you can extend it by creating a new class and overriding methods that you need to change. Otherwise if you need more functionality, I would roll your own. From: "Martín Torre Castro"

Re: What will be the replacement for .extra()?

2015-12-09 Thread Russell Keith-Magee
Hi Luis, On Thu, Dec 10, 2015 at 7:10 AM, Luis Masuelli wrote: > When I see the docs ( > https://docs.djangoproject.com/en/1.8/ref/models/querysets/#extra), I > notice .extra will be deprecated and removed. Is there a plan for the > replacement? As I see it, limiting

What will be the replacement for .extra()?

2015-12-09 Thread Luis Masuelli
When I see the docs (https://docs.djangoproject.com/en/1.8/ref/models/querysets/#extra), I notice .extra will be deprecated and removed. Is there a plan for the replacement? As I see it, limiting ourselves to using Manager.raw() is not a good idea, since you cannot work anymore on a

Re: Multiple databases in Django 1.7

2015-12-09 Thread Łukasz Pauszek
Hey, thank you for fast response. Yes, I'm aware that allow_migrate format from the one mentioned in link you provided because (as is mentioned in title) I'm using Django 1.7 and the code I provided is almost copy/paste of what you can find under the same link but for v. 1.7 Things I changed in

Re: What am I supposed to do if I want a Wizard?

2015-12-09 Thread Martín Torre Castro
Thank you, Kristofer. It's interesting. I'm looking right now. It seems complex, but I will investigate, although I would prefer a more generic way of doing this, because I suspect I will be using many wizards soon. Any other suggestions? El 9 dic. 2015 10:56 p. m., "Kristofer Pettijohn"

i just tried django with microsft visual studio

2015-12-09 Thread Emmanuel Olodun
hello i just tried django with visual studio, on performing migration i got this error report can some please help out? dont know how to get around it.. "c:\users\lenovo\documents\visual studio 2015\Projects\databasefun\databasefun>py thon manage.py makemigrations --name initia app

Re: What am I supposed to do if I want a Wizard?

2015-12-09 Thread Kristofer Pettijohn
I sdid my own form wizard for a project I worked on. For a good example, you can look at Oscar Ecommerce in github, and look at their checkout app within the code. That may inspire you with some ideas on how to implement such a behavior. From: "Martin Torre Castro" To:

Re: Multiple databases in Django 1.7

2015-12-09 Thread learn django
Hi LP. Your allow_migrate function differs in the format from what is mentioned in the link below. https://docs.djangoproject.com/en/dev/topics/db/multi-db/#topics-db-multi-db-routing I have tried this last week and it works fine. On Wednesday, December 9, 2015 at 2:47:42 AM UTC-8, Łukasz

Re: How to use Django for data scrapping

2015-12-09 Thread Ezequiel Bertti
You already try Scrapy? http://doc.scrapy.org/ They have some integration with django models to help. http://doc.scrapy.org/en/0.24/topics/djangoitem.html On Wed, Dec 9, 2015 at 5:16 PM, Algo Basket wrote: > I want some script to scrap via Django > > -- > You received

Re: Tests not passing in suite but pass individually

2015-12-09 Thread learn django
After making following change & pointing router to 'default' database test case is passing. 'default': { # 'ENGINE': 'django.db.backends.sqlite3', # 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'USER':

How to use Django for data scrapping

2015-12-09 Thread Algo Basket
I want some script to scrap via Django -- 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 to this group, send

Re: How to add myself as a developer for hire in the wiki?

2015-12-09 Thread Larry Martell
On Wed, Dec 9, 2015 at 7:41 AM, Tim Graham wrote: > You can login using a Trac or GitHub account, then click "Edit this page" at > the bottom of the page. > > On Wednesday, December 9, 2015 at 5:47:42 AM UTC-5, James Lin wrote: A lot of links on that page are bad, and give

Django for Data Tables to group by when coloumn hidden

2015-12-09 Thread Sid
*Question:* I have a Data table displaying on django , but now I like to group by when ever I will hide the column. *column1 column2 column3* AAACAD25 AAAUSD12 BBBCAD13 BBBUSD16 CCCCAD11 CCCUSD18 The above table

Re: get all current active connected users

2015-12-09 Thread Jon Ribbens
On Wednesday, 9 December 2015 12:55:22 UTC, Jani Tiainen wrote: > > This is really problematic domain since as you know, Django works on HTTP > request-response cycle. After cycle is finished there is absolutely no way > to know "who is logged on". > > So first you have to determine factors that

Re: get all current active connected users

2015-12-09 Thread Jani Tiainen
Hi, This is really problematic domain since as you know, Django works on HTTP request-response cycle. After cycle is finished there is absolutely no way to know "who is logged on". So first you have to determine factors that make up "currently active user". Then you have to track that

Re: Tests not passing in suite but pass individually

2015-12-09 Thread Tim Graham
It seems a bit suspicious that you're using the same database name for ['default']['NAME'] and ['default']['TEST']['NAME'] -- is that intentional? On Tuesday, December 8, 2015 at 8:30:05 PM UTC-5, learn django wrote: > > Hi Tim, > > My test case was working with new app in new project which was

get all current active connected users

2015-12-09 Thread Fabio C. Barrionuevo da Luz
hello, Django provide any API for get all users who are currently connected? I need to run some scheduled tasks for users who are not connected and did not understand how I can get the users with active login via Session -- Fábio C. Barrionuevo da Luz Palmas - Tocantins - Brasil - América do

Re: How to add myself as a developer for hire in the wiki?

2015-12-09 Thread Tim Graham
You can login using a Trac or GitHub account, then click "Edit this page" at the bottom of the page. On Wednesday, December 9, 2015 at 5:47:42 AM UTC-5, James Lin wrote: > > https://code.djangoproject.com/wiki/DevelopersForHire > > Cheers. > -- You received this message because you are

Re: SyntaxError: invalid syntax when installing Django from pip

2015-12-09 Thread knbk
This is an issue with setuptools 5.5.x. It is safe to ignore, or you can upgrade setuptools by upgrading pip: pip install -U pip On Wednesday, December 9, 2015 at 11:47:42 AM UTC+1, Chethan Kumar R wrote: > > Hi, all > > Im new to django, just now installed django through pip and got below >

What am I supposed to do if I want a Wizard?

2015-12-09 Thread Martin Torre Castro
Hello, I was investigating about form wizards in Django, but I have seen that recently this has changed in the deprecation timeline doc: "The form wizard has been refactored to use class-based views with pluggable backends in 1.4. The previous implementation will be removed." I understand

SyntaxError: invalid syntax when installing Django from pip

2015-12-09 Thread Chethan Kumar R
Hi, all Im new to django, just now installed django through pip and got below syntax error, so can anyone tell me is that fine or need to correct that. Thanks in advance. sudo pip install Django Downloading/unpacking Django Downloading Django-1.9-py2.py3-none-any.whl (6.6MB): 6.6MB

Multiple databases in Django 1.7

2015-12-09 Thread Łukasz Pauszek
Hello, I'm trying to configure project in Django 1.7 to use multiple databases, for now I'm following official documentation to configure 2 dbs. Problem is that when I run: ./manage.py makemigrations myapp only changes in default database are detected. And ./manage.py migrate

How to add myself as a developer for hire in the wiki?

2015-12-09 Thread James Lin
https://code.djangoproject.com/wiki/DevelopersForHire Cheers. -- 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

Re: Model Meta option default_related_name not setting related_query_name

2015-12-09 Thread Simon Charette
Hi Alejandro, Did you get the reply to your previous similar question[1]? Simon [1] https://groups.google.com/d/topic/django-users/OGavpqJrw6g/discussion Le mercredi 9 décembre 2015 03:13:46 UTC-5, Alejandro Do Nascimento a écrit : > > Hello, > > I have a doubt, In a model I'm using the Meta

Regarding Forms : "ModelMultipleChoiceField"

2015-12-09 Thread Kishan Mehta
Hi All, I am generating admin interface form. I want to add search functionality and paginate my following "ModelMultipleChoiceField" field of django form. Is is possible to achieve this ? Because it contains around 5000 results. Here is my forms.py *class

Fwd: Model Meta option default_related_name not setting related_query_name

2015-12-09 Thread Alejandro Do Nascimiento
Hello, I have a doubt, In a model I'm using the Meta option * default_related_name*, this sets the related manager but it doesn't set the *related_query_name* as using related_name in a field would do, is this a bug or the intended functionality? Neither the new feature ticket