Re: saving latitude and longitude values in django

2013-06-05 Thread Derek
Your question seems to be more about using javascript with Django; have a look at this Q&A: http://stackoverflow.com/questions/5735107/basic-django-and-javascript-question There is also a lonk to a downloadable sample app. The "getting the values from the map via javascript" is a different kind o

Re: Writing your first Django app - Tutorial Question

2013-06-05 Thread Sergiy Khohlov
you have missed from django.utils import timezone Also simple question : How are you adding this nice code formatting ? Many thanks, Serge +380 636150445 skype: skhohlov On Wed, Jun 5, 2013 at 7:48 AM, Mike Dewhirst wrote: > On 5/06/2013 9:10am, Tony Guilin wrote: > >> In the >> ht

Re: Using SQL or not

2013-06-05 Thread Carsten Reimer
Hi, although I have the same problem as Avraham with getting a close view on your schema I will try to add my 2 cents to your question. Alex Mandel schrieb: Unless you have a specific need of a NoSQL feature the fact that you have many related tables seems a better use case for SQL relational

Re: pattern validation in QueryDict.get()

2013-06-05 Thread Sergiy Khohlov
I have not seen any problem with this one >>> myurl = re.compile('\d{0,5}') >>> print myurl.match("1235") <_sre.SRE_Match object at 0xb73e0758> >>> print myurl.match("12356789") <_sre.SRE_Match object at 0xb73e0758> >>> print myurl.match("1235").group() 1235 >>> print myurl.match("12356789").group(

Re: saving latitude and longitude values in django

2013-06-05 Thread Derek
Also: just came across this mapping example, using Leaflet, and a standards-based approach (POST via WFS) to write point data from the map to a database: http://blog.georepublic.info/2012/leaflet-example-with-wfs-t/ https://github.com/Georepublic/leaflet-wfs/blob/master/index.html#L201 (POST c

django's database system

2013-06-05 Thread heni yemun
Hi, I'm starting to develop some python program to address some database needs- this is for desktop usage not on the web. So i was wondering if django's database system can be integrated to my program instead of writing the routing python database access api. I like django's easy interface. THAN

Add a file download link that work only after login

2013-06-05 Thread A T.Khan
Hello everyone, I am relatively new on Django, in fact I got to know about it through Openstack Dashboard which works using Django. anyway I got a question and I been looking for it for a month now without getting any good results, I finally decided to ask some of the experts here. If I am viol

Can´t get Django Administration page to show

2013-06-05 Thread Oliver Hilmarsson
I´m finished part 1 in django tutorial https://docs.djangoproject.com/en/dev/intro/tutorial01/ Everything worked great, but starting in part 2 I can´t get the admin page to show up. I always just get the initial "It worked! Congratulations on your first Django-powered page" page when I go to

Re: linux or windows

2013-06-05 Thread Fabiano Trentin
Hi everyone, I would recommend to install Django on Ubuntu 12.04.2 and with a Oracle VM Virtualbox in your Windows OS. Check this tutorial post: * http://faptrentin.blogspot.com.br/2013/06/geodjango-on-ubuntu-12042.html*

Re: django's database system

2013-06-05 Thread mulianto
Hi Heni, Do you mean django database system is refer to the ORM django provide? You can use and tie with your desktop APP by using django REST service . With the REST service provided by django, any APP can Benefit it like mobile APP, desktop APP, web APP, third party APP via your REST api .

Re: Is there any good tutorial on how to daemonize celery?

2013-06-05 Thread Mike
Have you tried supervisord? I installed supervisord from my linux distro on my server and put a config file in the conf.d directory. Its working fine. On Tuesday, June 4, 2013 12:17:16 PM UTC+2, Manu wrote: > > Hi all, > > I have had no success so far with daemonizing celery on my server. I

Re: Is there any good tutorial on how to daemonize celery?

2013-06-05 Thread manuga...@gmail.com
Thanks for the reply Mike. I've been trying to setup supervisord for 4 hours now. Just for this celery. I don't know where I'm going wrong. Looks like nobody else is having a problem. On 5 June 2013 19:13, Mike wrote: > Have you tried supervisord? I installed supervisord from my linux distro >

Re: Can´t get Django Administration page to show

2013-06-05 Thread Sithembewena Lloyd Dube
Hi Oliver, please provide more information. Did you follow all steps, such as: add your app/s to INSTALLED_APPS in your settings file, run the manage.py syncdb command, create an admin.py file where you register your model/s, comment out the lines that activate your admin site in urls.py? On Wed

Re: Best Pratice To Implement User Types

2013-06-05 Thread coded kid
Thanks! do you think Django group is the best for this? should I leave asssign a group to every user who signed up through django registration? On Tuesday, 4 June 2013 12:12:24 UTC+1, Frank Bieniek wrote: > > Hi, > the user stays the same, but he becomes member of the PaidMember Group, > (Acce

User Registration Tutorial

2013-06-05 Thread Nafiul Islam
Hi! Is there a good tutorial on how to make a user-registration system using django? Any tips would be highly appreciated. -- 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

Re: Add a file download link that work only after login

2013-06-05 Thread Bill Freeman
The easiest thing, which you may or may not find to be adequate, is to use an "if" tag in the template to do one of: Not render the button if you are not logged in, or Render a button that has the correct link if you are logged in but links to a "you must log in" page if you are not, or Rende

Re: Is there any good tutorial on how to daemonize celery?

2013-06-05 Thread Mike
Thats why I installed it using the package provided in my Ubuntu linux server. Then I used the template .conf file (I think from the celery documentation) and customized it for my project. I did have some trouble to get it running the first time but I think there is a delay between when you r

Re: User Registration Tutorial

2013-06-05 Thread Jonathan Baker
This isn't a formal tutorial of the django-registration app, but the documentation is great and integrating app is as simple as any other third-party Django app: Code: https://bitbucket.org/ubernostrum/django-registration Docs: https://django-registration.readthedocs.org/en/latest/ On Wed, Jun 5

Re: User Registration Tutorial

2013-06-05 Thread Nafiul Islam
Thanks Jon, I appreciate it. On Wednesday, June 5, 2013 9:09:16 PM UTC+6, jondbaker wrote: > > This isn't a formal tutorial of the django-registration app, but the > documentation is great and integrating app is as simple as any other > third-party Django app: > > Code: https://bitbucket.org/ube

Re: User Registration Tutorial

2013-06-05 Thread Jonathan Baker
You're welcome. Also of use are projects such as the following that include the templates you'll need for django-registration: https://github.com/macdhuibh/django-registration-templates On Wed, Jun 5, 2013 at 9:28 AM, Nafiul Islam wrote: > Thanks Jon, I appreciate it. > > > On Wednesday, June 5,

Re: Is there any good tutorial on how to daemonize celery?

2013-06-05 Thread manuga...@gmail.com
Mike, Please find my replies below. On 5 June 2013 20:27, Mike wrote: > Thats why I installed it using the package provided in my Ubuntu linux > server. Then I used the template .conf file (I think from the celery > documentation) and customized it for my project. I did have some trouble > to

Validation of generic relation from a GenericInlineModelAdmin

2013-06-05 Thread Calin Don
Hi, I don't know if this is a bug or expected behavior, but when I'm trying to create a new generic relation object from a GenericInlineModelAdmin form, the object's validation methods (eg. clean or validate_unique) don't have object_id and content_type fields set. When the generic relation objec

Re: Is there any good tutorial on how to daemonize celery?

2013-06-05 Thread Mike
On Wednesday, June 5, 2013 5:42:39 PM UTC+2, Manu wrote: > > Mike, > > Please find my replies below. > > On 5 June 2013 20:27, Mike > wrote: > >> Thats why I installed it using the package provided in my Ubuntu linux >> server. Then I used the template .conf file (I think from the celery >> do

Something similar to a WAMP stack for Django?

2013-06-05 Thread Nafiul Islam
Hi! Is there something similar to a WAMP stack for django and python development, like there is for PHP? It gives you a better way of emulating how a real server would work. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: Something similar to a WAMP stack for Django?

2013-06-05 Thread Jonas Geiregat
On 05 Jun 2013, at 18:07, Nafiul Islam wrote: > Hi! > > Is there something similar to a WAMP stack for django and python development, > like there is for PHP? It gives you a better way of emulating how a real > server would work. There is: http://bitnami.com/stack/django -- You received th

Re: Can´t get Django Administration page to show

2013-06-05 Thread Oliver Hilmarsson
Thanks, Sithu, I didn´t uncomment the lines in urls.py. It´s working now :o) Regards, Óliver On Wednesday, June 5, 2013 11:47:49 AM UTC, Oliver Hilmarsson wrote: > > I´m finished part 1 in django tutorial > https://docs.djangoproject.com/en/dev/intro/tutorial01/ > > Everything worked great, b

Javascript translation catalogs in the CDN

2013-06-05 Thread Daniel Izquierdo
Hi, I want to put my javascript translation catalogs in a CDN, considering the following points: * In all the calls my app does to javascript_catalog(), the only thing which can influence the result is the active language. So there is exactly one possible javascript catalog per language I supp

Re: django's database system

2013-06-05 Thread Nikolas Stevenson-Molnar
Have you had a look at SQLAlchemy? http://www.sqlalchemy.org/ _Nik On 6/5/2013 3:29 AM, heni yemun wrote: > Hi, > I'm starting to develop some python program to address some database > needs- this is for desktop usage not on the web. So i was wondering if > django's database system can be integra

Re: Add a file download link that work only after login

2013-06-05 Thread Avraham Serour
maybe you could use something like this: https://docs.djangoproject.com/en/1.1/howto/apache-auth/ On Wed, Jun 5, 2013 at 6:02 PM, Bill Freeman wrote: > The easiest thing, which you may or may not find to be adequate, is to use > an "if" tag in the template to do one of: > Not render the butto

Re: Add a file download link that work only after login

2013-06-05 Thread Mike Doroshenko II
Maybe a view with something like def priv_file(request): if request.user.is_anonymous: return render_to_response("goaway.html") else: path = "Path to file" data = open(path) type = "whatever" return HttpResonse(data, content_type=type) A T.Khan wr

Re: Can´t get Django Administration page to show

2013-06-05 Thread Sithembewena Lloyd Dube
You're welcome, Oliver :-) Regards, Sithu On Wed, Jun 5, 2013 at 6:51 PM, Oliver Hilmarsson < oliver.hilmars...@gmail.com> wrote: > Thanks, Sithu, I didn´t uncomment the lines in urls.py. It´s working now > :o) > > Regards, > Óliver > > > On Wednesday, June 5, 2013 11:47:49 AM UTC, Oliver Hilm

Django foreing keys joins

2013-06-05 Thread Àlex Pérez
Can someone tell me why the or in that query: print Counter.on_medicos.filter(loc__isnull=True).only("id").query ""SELECT `web_counter`.`id` FROM `web_counter` LEFT OUTER JOIN `locations_localidad` ON (`web_counter`.`loc` = `locations_localidad`.`id`) WHERE (`web_counter`.`mode` = 1 AND `location

Understanding an existing big web application written in Django

2013-06-05 Thread sidddd
I am a beginner in web dev and I built few small Django web apps like blogging application etc. Now I am in a fix as I need to understand a big web app written in Django and I dont know where to start. Can anyone suggest me how to understand an existing Django code, I mean where should I star

Re: Understanding an existing big web application written in Django

2013-06-05 Thread Siddharth Shah
I think you can definitely learn from:http://dangoldin.com/2013/05/07/eighteen-months-of-django/. Lots of pointers and tips. My suggestion would be pick up a popular site Hacker News, AirBnB, Kickstarter etc and try to write a clone. Thank you, Sidharth On Thursday, June 6, 2013 5:53:06 AM

Re: Understanding an existing big web application written in Django

2013-06-05 Thread Sergiy Khohlov
What is mean big application ? 1) Write an idea 2) Write a plan 3) Write requirements 4) Rewrite all above few times and you are PM and developer now. Many thanks, Serge +380 636150445 skype: skhohlov On Thu, Jun 6, 2013 at 5:17 AM, Siddharth Shah wrote: > I think you can definitely lear

Re: Understanding an existing big web application written in Django

2013-06-05 Thread Mario Gudelj
I always start from urls.py. Then proceed to views. Then inside views you can see which modules and templates are used and so on. But the URLs are the starting point... _M On 6 June 2013 14:50, Sergiy Khohlov wrote: > What is mean big application ? > 1) Write an idea > 2) Write a plan > 3) Wri

Re: Add a file download link that work only after login

2013-06-05 Thread Felipe Coelho
2013/6/5 A T.Khan > I have already a Django setup running (you guessed it devstack), and it > works fine. I have done plenty of editing already. But now I want to add a > download button on a page, and by clicking to it, a file should be > downloaded. Seems simple enough, but right now what I hav