How to write Model.get_absolute_url()?

2015-12-05 Thread Jon Ribbens
I'm using Django 1.8. If I'm writing an app, and I want to add get_absolute_url() to a model, the question is: what do I put for the first argument to 'reverse'? The documentation at https://docs.djangoproject.com/en/1.8/topics/http/urls/#url-namespaces implies that I need to know two things:

Re: But I can not figure out how to write the code to add a page. Thank you so much.

2015-12-05 Thread Sergiy Khohlov
Two models book and page. Page has key field to book . page is attached to the book page as related object. 5 груд. 2015 17:42 "Валерий Бовсуновский" пише: > But I can not figure out how to write the code to add a page. > > Guys, please natolknite the idea. If possible, reset the reference to an

Re: Windows browser vs Django app running on Ubuntu in a VirtualBox

2015-12-05 Thread Remco Gerlich
He is running it with "./manage.py runserver", which listens to the local interface only (the 127.0.0.1 IP address). To get it to listen to the external address instead, use "./manage.py runserver 192.168.56.101:8000" and then it will work. Or "0.0.0.0:8000" to listen to all interfaces. Greetings

Windows browser vs Django app running on Ubuntu in a VirtualBox

2015-12-05 Thread bobhaugen
Our friend Chris Troutner installed our Django 1.4 app on Windows in a VirtualBox running Ubuntu. He could access the Django app from the browser in Ubuntu, but not from the Windows browser. He writes: - While you can access the front end in the Ubuntu VM, you can't access it from the

Re: Need a Tutorial

2015-12-05 Thread Rajesh Bhat
Andrew, can you help me develop some professional courses on Python, Cassandra and Django. Regards Rajesh On Saturday, December 5, 2015 at 10:13:58 PM UTC+5:30, Andrew Farrell wrote: > > Python tutorials: > The tutorial I first learned python from was Think Python >

Trainers for Django. Cassandra and Python

2015-12-05 Thread Rajesh Bhat
Folks, Can you refer me some star trainers (hands-on folks only) in Django, Cassandra and Python? Need their help in developing some professional certification courses. Thanks in advance for your help. Regards Rajesh BHat -- You received this message because you are subscribed to the Googl

SubfieldBase deprecation

2015-12-05 Thread matus moravcik
Hi, according to the docs, SubfieldBase is going to be removed in 1.10 and replaced by from_db_value() https://docs.djangoproject.com/en/1.9/releases/1.8/#subfieldbase What puzzles me is this: "Note that the new approach does not call the to_python()

Re: Need a Tutorial

2015-12-05 Thread Andrew Farrell
Python tutorials: The tutorial I first learned python from was Think Python , which is free to download. That was several years ago and better things have been written since. I am a fan of the approach that Learn Python the Hard Way

Re: Need a Tutorial

2015-12-05 Thread Mark Phillips
Try this - http://lmgtfy.com/?q=python+tutorial Mark On Sat, Dec 5, 2015 at 12:49 AM, Davron wrote: > HI! > Could any python's gurus give me a some links, > which leads to for a real comprehensive python-tutorial, Please. > Thanks in advance! > > -- > You received this message because you are s

testcase argument via manage.py

2015-12-05 Thread Ken
Is it possible to pass options or arguments to a testcase? The docs talk about subclassing DiscoverRunner and over-riding add_arguments but does not indicate how the arguments are retrieved in a test module. Thanks -- You received this message because you are subscribed to the Google Groups

Need a Tutorial

2015-12-05 Thread Davron
HI! Could any python's gurus give me a some links, which leads to for a real comprehensive python-tutorial, Please. Thanks in advance! -- 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

But I can not figure out how to write the code to add a page. Thank you so much.

2015-12-05 Thread Валерий Бовсуновский
But I can not figure out how to write the code to add a page. Guys, please natolknite the idea. If possible, reset the reference to an example or help section. I can not understand. I want to do a book on the website: What would each user can create a book. (unlimited number of pages) But I can n

Re: Problem renaming my application

2015-12-05 Thread Erfan Shokrollahi
I found it. I was renaming app to a word containin Persian alphabet I used u'PersianWord' and th problem solved. Thanks for viewing my post! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails