Re: failing to pass model objects to template for some reason....

2011-05-21 Thread Gath
Chris, Try to print out the entire list object in the template, see if it has anything i.e. {{ messages }} This should tell you if data is been transfered from your view to the template. Gath On May 21, 7:51 am, Chris Seberino wrote: > I have a model class called Message with an attribute cal

Re: Update a user profile after LInkedin Oauth

2011-05-21 Thread Mike Ryan
Are you able to specify a dynamic return URL with LinkedIn's API? If so, you can: Generate a unique ID for each user (maybe even user.pk) Use this data in the return URL (e.g. example.com/oauth_return/ /) Attach that URL to a view which looks up the unique ID - you can now associate the user with

XUL template

2011-05-21 Thread Alagu Madhu
Hi, from django.shortcuts import render_to_response def login(request): return render_to_response('login.xul', mimetype="application/ vnd.mozilla.xul+xml") and def login(request): response = render_to_response('login.xul') response['Content-Type'] = "application/vnd.mozilla.xul+xml"

Re: XUL template

2011-05-21 Thread Alagu Madhu
Firefox 4 - Remote XUL support removed On May 21, 12:09 pm, Alagu Madhu wrote: > Hi, > > from django.shortcuts import render_to_response > > def login(request): >     return render_to_response('login.xul', mimetype="application/ > vnd.mozilla.xul+xml") > > and > > def login(request): >     resp

[ask for help] how to solve this issue: "DatabaseError at /admin/myapp, no such column: myapp.myvar"

2011-05-21 Thread enqing
This weird issue hanpped when I used the django admin site. I have set the database with sqlite3, and creat a number of my classes in app model.py, all others classes can work as expectation. only a class have this "DatabaseError at /admin/myapp, no such column: myapp.myvar" error apper in web

urlpatterns

2011-05-21 Thread Dagon
I am a newbie to both Python and Django. Why does urlpatterns = patterns('', (r'^People/$', 'iFriends.People.views.index') get me the following error message: Using the URLconf defined in iFriends.urls, Django tried these URL patterns, in this order: ^People/$ The current URL, , didn't match an

Re: failing to pass model objects to template for some reason....

2011-05-21 Thread Duane Griffin
On 21 May 2011 05:51, Chris Seberino wrote: > I have a model class called Message with an attribute called text. > > ** When I pass a list of these objects called messages to my template, > it doesn't show up. > > ** When I instead create this derivative called fred, that *does* > work... >      

Re: uber weird access problem from windows

2011-05-21 Thread AJ
Just out of curiosity, is it firefox 4? Is it seen with some of the other web forms too? I have been having *same* trouble with various web forms while using FF4, and I use Mac. On Sat, May 21, 2011 at 1:07 AM, Kenneth Gonsalves wrote: > hi, > > I have a django app running on a lan. The server

Re: urlpatterns

2011-05-21 Thread Mateusz Marzantowicz
On Sat, May 21, 2011 at 4:50 AM, Dagon wrote: > I am a newbie to both Python and Django. > Why does urlpatterns = patterns('', (r'^People/$', > 'iFriends.People.views.index') get me the following error message: > > Using the URLconf defined in iFriends.urls, Django tried these URL > patterns, in

Re: urlpatterns

2011-05-21 Thread Mateusz Marzantowicz
On Sat, May 21, 2011 at 2:14 PM, Mateusz Marzantowicz < mmarzantow...@gmail.com> wrote: > On Sat, May 21, 2011 at 4:50 AM, Dagon wrote: > >> I am a newbie to both Python and Django. >> Why does urlpatterns = patterns('', (r'^People/$', >> 'iFriends.People.views.index') get me the following error

Re: [ask for help] how to solve this issue: "DatabaseError at /admin/myapp, no such column: myapp.myvar"

2011-05-21 Thread Gabriel Gunderson
On Fri, May 20, 2011 at 8:36 PM, enqing wrote: >  This weird issue hanpped when I used the django admin site. I have > set the database with sqlite3,  and creat a number of my classes in > app model.py, all others classes  can work as expectation. only a > class have this  "DatabaseError at /admin

Re: [ask for help] how to solve this issue: "DatabaseError at /admin/myapp, no such column: myapp.myvar"

2011-05-21 Thread brad
It sounds like you may have created your Models, run "mange.py syncdb", then added another field to your Model. Remember, syncdb doesn't add new columns in your table when you add a new field to an existing model. If this app is still in development, you can drop the whole table corresponding

Re: failing to pass model objects to template for some reason....

2011-05-21 Thread Chris Seberino
On May 21, 5:22 am, Duane Griffin wrote: > Is the messaging framework configured (note that it is by default)? Wow. I thanks so much! I never would have caught this! I renamed Message to Annoucement and now it works! cs -- You received this message because you are subscribed to the Google G

Why errors when restart but goes away after reload again! How fix?

2011-05-21 Thread Chris Seberino
When I restart my server, I get an error on the first page reload and then all is fine on the second page reload! The error is this... -- ViewDoesNotExist at /blog Tried blog in module mvc.controllers.controllers. Error was: 'module' object has no attribute 'models' I get a similar err

Re: urlpatterns

2011-05-21 Thread Daniel Roseman
Op zaterdag 21 mei 2011 03:50:40 UTC+1 schreef Dagon het volgende: > > I am a newbie to both Python and Django. > Why does urlpatterns = patterns('', (r'^People/$', > 'iFriends.People.views.index') get me the following error message: > > Using the URLconf defined in iFriends.urls, Django tried

Re: Why errors when restart but goes away after reload again! How fix?

2011-05-21 Thread Mateusz Marzantowicz
On Sat, May 21, 2011 at 7:49 PM, Chris Seberino wrote: > When I restart my server, I get an error on the first page reload and > then all is fine on the second page reload! > > The error is this... > > -- > ViewDoesNotExist at /blog > > Tried blog in module mvc.controllers.controllers. Error

forum and blog for developers

2011-05-21 Thread fei
I have been using Django for a while. The documentation for the Django official web page is great, plus the free online django book. There are enough documentations to get started using Django. However, I feel there is a missing blog for Django developers. Having a blog for developers is very usef

Re: forum and blog for developers

2011-05-21 Thread Russell Keith-Magee
On Sunday, May 22, 2011, fei wrote: > I have been using Django for a while. The documentation for the Django > official web page is great, plus the free online django book. There > are enough documentations to get started using Django. However, I feel > there is a missing blog for Django developer

Re: forum and blog for developers

2011-05-21 Thread AJ
Excellent suggestion Russ! On Sat, May 21, 2011 at 8:17 PM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > On Sunday, May 22, 2011, fei wrote: > > I have been using Django for a while. The documentation for the Django > > official web page is great, plus the free online django book. The

Re: forum and blog for developers

2011-05-21 Thread Casey Greene
I also feel that something of the sort would be helpful if someone else started it. djangoweek.ly had its inaugural issue fairly recently and I enjoy reading it each week, but it relies on other people to generate interesting blog posts, apps, etc: http://djangoweek.ly/ Casey On 05/21/2011

modwsgi Configuration

2011-05-21 Thread podio
I'm trying to configure django with mod wsgi. I put mysite in /home/mariano/mysite create with django 1.3, running the development server works ok. When I try it to configure with apache2 with mod_wsgi I get 500 error: Internal Server Error The server encountered an internal error or misconfigurat

Re: modwsgi Configuration

2011-05-21 Thread podio
apache log [Sat May 21 23:14:54 2011] [error] [client ::1] mod_wsgi (pid=14558): Exception occurred processing WSGI script '/home/mariano/mysite/apache/ django.wsgi'. [Sat May 21 23:14:54 2011] [error] [client ::1] Traceback (most recent call last): [Sat May 21 23:14:54 2011] [error] [client ::1]

Re: modwsgi Configuration

2011-05-21 Thread podio
Sorry, sorry I hurry in posting I change the path in the django.wsgi for /home/mariano and it's working, now I have to see how to install 2 django version :S SOLVE On 21 mayo, 23:18, podio wrote: > apache log > > [Sat May 21 23:14:54 2011] [error] [client ::1] mod_wsgi (pid=14558): > Exception o

help

2011-05-21 Thread Ram
hello everyone i want to learn how to insert text and image uri filename in single table of postgreSQL it will be very helpful if i will get to learn from code snippets as i am new to django pythan its very difficult to learn from djangoproject.com -- You received this message because you are sub

Re: help

2011-05-21 Thread Gabriel Gunderson
On Sat, May 21, 2011 at 8:34 PM, Ram wrote: > hello everyone i want to learn how to insert text and image uri > filename in single table of postgreSQL it will be very helpful if i > will get to learn from code snippets as i am new to django pythan its > very difficult to learn from djangoproject.c

django-linkedin & oauth2

2011-05-21 Thread CrabbyPete
I took the code below from django-linked in which is code from oauth2. It works but does not do the callback. How do you set the call back from oauth2 # from settings.py consumer = oauth.Consumer(settings.LINKEDIN_TOKEN, settings.LINKEDIN_SECRET) client = oauth.Client(consumer) request_token_url

My tool to generate django code

2011-05-21 Thread Brice Leroy
Hello guys, I posted a while ago about my project on this forum. Some liked it some kind of hated it (weird)... I though I would post here for updates. Django Generator is a tool to build django skeleton of your app (model, form, view, templates...). I tried to make sure it covers enough surface

Re: My tool to generate django code

2011-05-21 Thread sushanth Reddy
This is awesome Brice, Nice Work -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For m

Re: My tool to generate django code

2011-05-21 Thread John Griessen
On 05/21/2011 11:54 PM, Brice Leroy wrote: - Fields can now be collapsed (wow... this took a while I know) and displays their python transcription. - Help got included per field option Seems very helpful for planning any new app. And the help buttons are good for jogging memory to get to a r

Re: Why errors when restart but goes away after reload again! How fix?

2011-05-21 Thread Chris Seberino
On May 21, 6:35 pm, Mateusz Marzantowicz wrote: > What server are you using? What is your configuration? Do you have mod_wsgi, > mod_python or something else? What is your browser, OS, etc. Please do not > let us guess. I am using mod_wsgi which uses Apache 2.2.16 I use Firefox on Ubuntu Linux 10

Re: My tool to generate django code

2011-05-21 Thread leo
On 2011-5-22 12:54, Brice Leroy wrote: Hello guys, I posted a while ago about my project on this forum. Some liked it some kind of hated it (weird)... I though I would post here for updates. Django Generator is a tool to build django skeleton of your app (model, form, view, templates...). I