Re: Issue in Django 1.7.1 with __unicode__ and admin site?

2014-11-11 Thread Krishnakant Mane
On 11/12/2014 03:21 AM, donarb wrote: On Tuesday, November 11, 2014 1:26:53 PM UTC-8, krmane wrote: That brings me to another related question. I had asked this before but let's put it in a different way. With the official Django tutorial for 1.7, they say it is ment for Python 3X. Do we have

Re: Swampdragon, the realtime framework for Django seems interesting. But will it scale ?

2014-11-11 Thread Kakar Nyori
Oooh! Nice one. But its very new though. I would also like to hear from the experts!!! Thanks for the post though On Wed, Nov 12, 2014 at 10:07 AM, Suren Sth wrote: > I recently came across Swampdragon ( Visit official site > ). I am curious can it be

Re: Django + Database Connections

2014-11-11 Thread Kakar Nyori
Very nicely explained. On Wed, Nov 12, 2014 at 2:55 AM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > Hi Edward, > > On Tue, Nov 11, 2014 at 12:30 AM, Edward Armes > wrote: > >> Hi there, >> >> I am currently looking at Django for a personal project. While I >>

Swampdragon, the realtime framework for Django seems interesting. But will it scale ?

2014-11-11 Thread Suren Sth
I recently came across Swampdragon ( Visit official site ). I am curious can it be used in production sites and will it scale ? If it can be, what is the best way? -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Loading fixtures in Django 1.7

2014-11-11 Thread André Manzano
Leonard, try that. http://stackoverflow.com/questions/25960850/loading-initial-data-with-django-1-7-and-data-migrations Att, Andre Manzano Em terça-feira, 11 de novembro de 2014 13h36min14s UTC-2, Leonard Wayne escreveu: > > Fred, > > Got it!! Thank you!! > > - Leonard > > On

Chrome Desktop Notification for Django

2014-11-11 Thread Max Nathaniel Ho
I found this excellent example on Chrome Desktop Notification - Chrome desktop notification example? I am able to create the Desktop Notification by clicking a button. However, that is pretty front-end. I

Re: Import Error Module

2014-11-11 Thread Niall
Hi Erik, yes it is installed but it comes up with the following error when I try to run the server again. I know that it is something simple like changing the PYTHONPATH so if you could advise on why it is happening and how I should proceed that would be great. Nialls-MBP-2:fest-api-master

Re: how to test an application that's using a legacy database

2014-11-11 Thread Carl Meyer
Hi David, On 11/11/2014 08:37 AM, dpalao.pyt...@gmail.com wrote: > Dear Carl, > > Thank you for the answer. > > On Tuesday, November 11, 2014 3:13:18 PM UTC+1, Carl Meyer wrote: > > Hi David, > > On 11/11/2014 07:01 AM, dpalao...@gmail.com wrote: > > I see your point. You might

Re: Issue in Django 1.7.1 with __unicode__ and admin site?

2014-11-11 Thread Mike Dewhirst
On 12/11/2014 7:26 AM, Jorge Andrés Vergara Ebratt wrote: When you are in Python3 you don't use __unicode__ you use __str__ You can leave __unicode__ in place for Python 2.x and add ... def __str__(self): return self.__unicode__() ... to satisfy Python 3.x at the same time On Tue, Nov

Re: Issue in Django 1.7.1 with __unicode__ and admin site?

2014-11-11 Thread donarb
On Tuesday, November 11, 2014 1:26:53 PM UTC-8, krmane wrote: > > > That brings me to another related question. > I had asked this before but let's put it in a different way. > With the official Django tutorial for 1.7, they say it is ment for > Python 3X. > Do we have any plan to have some

Looking for Django Python Developers to build Strong Application

2014-11-11 Thread Ankit Vats
Hi I am looking for serious Django Python Developers or a company who can make a very powerful ecommerce based site in django and create customized environment, We have a project which need to build in Django cmd & Django Oscar ecommerce platform need to be used. If there is any good Indian

Re: Issue in Django 1.7.1 with __unicode__ and admin site?

2014-11-11 Thread Krishnakant Mane
That brings me to another related question. I had asked this before but let's put it in a different way. With the official Django tutorial for 1.7, they say it is ment for Python 3X. Do we have any plan to have some appendix on using the same tutorial for Python 2.7x? Like to have this code

Re: Django + Database Connections

2014-11-11 Thread Russell Keith-Magee
Hi Edward, On Tue, Nov 11, 2014 at 12:30 AM, Edward Armes wrote: > Hi there, > > I am currently looking at Django for a personal project. While I > understand how a lot of it works I can't wrap my head around how the actual > DB querying is done specifically what part of

Re: Issue in Django 1.7.1 with __unicode__ and admin site?

2014-11-11 Thread Jorge Andrés Vergara Ebratt
When you are in Python3 you don't use __unicode__ you use __str__ On Tue, Nov 11, 2014, 3:14 PM Arjan de Knegt wrote: > I am using Django 1.7.1 with python 3.4.0 for my latest project. > I am working on a model called Song. In the admin site all object that I > add

Modifying a ModelAdmin instance at runtime

2014-11-11 Thread Peter Sagerson
The documentation of ModelAdmin.get_form()[1] demonstrates modifying self.exclude in order to modify the add/change form on a per-request basis. However, looking at django.contrib.admin, it seems clear that ModelAdmin is instantiated when it's installed, not for every request. It also doesn't

Issue in Django 1.7.1 with __unicode__ and admin site?

2014-11-11 Thread Arjan de Knegt
I am using Django 1.7.1 with python 3.4.0 for my latest project. I am working on a model called Song. In the admin site all object that I add show as "Song object" where I would expect the title of the Song. I have added __unicode__ to the model. is there something I miss or are things changed

Re: how to test an application that's using a legacy database

2014-11-11 Thread dpalao . python
Dear Carl, Thank you for the answer. On Tuesday, November 11, 2014 3:13:18 PM UTC+1, Carl Meyer wrote: > > Hi David, > > On 11/11/2014 07:01 AM, dpalao...@gmail.com wrote: > > I see your point. You might be right, but it is not clear to me how to > > do it and if it would work: I have

Re: Loading fixtures in Django 1.7

2014-11-11 Thread Leonard Wayne
Fred, Got it!! Thank you!! - Leonard On Sunday, November 9, 2014 5:46:30 PM UTC-5, Leonard Wayne wrote: > > I am in the process of upgrading from > Django 1.6 to 1.7. > > I have three fixtures. I am trying to figure > out how I should load them. > > One fixture is `initial_data.json`, and I

Re: 求解答 说是找不到'hello', 我看Python的搜索path 也对啊 附件是程序 我是第一次接触Django

2014-11-11 Thread Ricardo L. Dani
actually, or use 'mysite.viess.hello' on the second argument of your url definition 2014-11-11 13:07 GMT-02:00 Ricardo L. Dani : > missing > > from .views import hello > > on urls.py > > or use 'hello' as string > > 2014-11-11 11:54 GMT-02:00 tkdchen : >

Re: 求解答 说是找不到'hello', 我看Python的搜索path 也对啊 附件是程序 我是第一次接触Django

2014-11-11 Thread Ricardo L. Dani
missing from .views import hello on urls.py or use 'hello' as string 2014-11-11 11:54 GMT-02:00 tkdchen : > 这不是Django的问题。你先把Python搞明白。 > > On Sunday, November 9, 2014 11:29:58 PM UTC+8, zhoumin...@gmail.com wrote: > >> NameError at / >> >> name 'hello' is not defined >> >>

Re: Import Error Module

2014-11-11 Thread Erik Cederstrand
> Den 11/11/2014 kl. 15.48 skrev Niall : > > Hello, I was hoping that anyone could please advise me on a very simple issue > which I am having regarding running the dev server (see attachments). I am > receiving the following import error when attempting to run. > >

Re: how to test an application that's using a legacy database

2014-11-11 Thread Carl Meyer
Hi David, On 11/11/2014 07:01 AM, dpalao.pyt...@gmail.com wrote: > I see your point. You might be right, but it is not clear to me how to > do it and if it would work: I have already tried to subclass > DiscoverRunner to modify its behaviour with little success. If there are specific aspects of

Re: how to test an application that's using a legacy database

2014-11-11 Thread dpalao . python
Dear Carl, I see your point. You might be right, but it is not clear to me how to do it and if it would work: I have already tried to subclass DiscoverRunner to modify its behaviour with little success. Another problem that I see: it is not an homogenous approach. I mean, the models are created

Re: 求解答 说是找不到'hello', 我看Python的搜索path 也对啊 附件是程序 我是第一次接触Django

2014-11-11 Thread tkdchen
这不是Django的问题。你先把Python搞明白。 On Sunday, November 9, 2014 11:29:58 PM UTC+8, zhoumin...@gmail.com wrote: > > NameError at / > > name 'hello' is not defined > > Request Method: GET Request URL: http://127.0.0.1:8000/ Django Version: > 1.7.1 Exception Type: NameError Exception Value: > > name

Re: 求解答 说是找不到'hello', 我看Python的搜索path 也对啊 附件是程序 我是第一次接触Django

2014-11-11 Thread tkdchen
这不是Django的问题,你先把Python搞明白。 On Sunday, November 9, 2014 11:29:58 PM UTC+8, zhoumin...@gmail.com wrote: > > NameError at / > > name 'hello' is not defined > > Request Method: GET Request URL: http://127.0.0.1:8000/ Django Version: > 1.7.1 Exception Type: NameError Exception Value: > > name

Re: how to test an application that's using a legacy database

2014-11-11 Thread dpalao . python
Dear Fred, Thanks a lot for the answer. Actually I got very happy when I saw it. But I sadly found out that it does not work in my case. I think the problem is related to the way Django-1.7 behaves with respect to databases, migrations and so on. Not 100% sure, though. I don't really know

Re: Django MPTT Admin

2014-11-11 Thread Neeraj Sharma
Thanx for your quick response Matthias Kestenholz, but i actually i want to use MPTT Admin as an inline form, code you have written will work as a normal admin form On Thursday, 26 February 2009 15:12:15 UTC+5:30, Matthias Kestenholz wrote: > > Hey, > > A topic which comes up on this list from

Re: Django MPTT Admin

2014-11-11 Thread Neeraj Sharma
Thanx for your quick response Matthias Kestenholz, but i actually i want to use MPTT Admin as an inline form, code you have written will work as a normal admin. On Thursday, 26 February 2009 15:12:15 UTC+5:30, Matthias Kestenholz wrote: > > Hey, > > A topic which comes up on this list from time

Re: Django MPTT Admin

2014-11-11 Thread Neeraj Sharma
*How to use Django Mttp Admin as an Inline in admin.py* *?* On Thursday, 26 February 2009 15:12:15 UTC+5:30, Matthias Kestenholz wrote: > > Hey, > > A topic which comes up on this list from time to time is an automatic > admin interface for django-mptt. I'd like to advertise a piece of code > we