Re: List of default Django tags that are "mid-block" like else

2014-02-15 Thread Ram Rachum
Thanks! On Fri, Feb 14, 2014 at 4:27 PM, Tom Evans wrote: > On Fri, Feb 14, 2014 at 1:08 PM, Ram Rachum wrote: > > Thanks! > > > > But empty and the various forloop don't concern me because they're {{ }} > > rather than {% %}, they don't start a block. > > > > Anything else? > > > > If you are

Re: Not pure Django. Chrome versus Safari discrepancy

2014-02-15 Thread Andrew Taylor
Thanks will experiment. On Friday, 14 February 2014 16:18:53 UTC, C. Kirby wrote: > > You can try using the @never_cache decorator on the view that captures the > page view > > from django.views.decorators.cache import never_cache > > That should instruct safari not to cache the page. > Sometimes

is this (online tutorial) code calling a view from a view?

2014-02-15 Thread Andrew Taylor
Hi, I've been following an online tutorial but been debugging. I've traced my issue to this line in the view function below: return category(request, category_name_url) Is this view effectively calling another view directly without going via the urls file (in the exception case)? If so can yo

Form that includes one2many relation

2014-02-15 Thread ctm7
Hello Users, I am currently developing my get to know django project an Invoicing application. I currently developing my forms and I'm trying to figure out how to make a form that allows you to create an invoice *and* at the same time make invoice lines. My invoice line model has a foreign key

Re: Django + PostgresSQL. I'm a newbie.

2014-02-15 Thread João Aparício
Витали, говорите по-русский? Именно с чем вам нужно помочь? On Friday, February 14, 2014 7:42:18 PM UTC, Віталій Лисенко wrote: > > As work in the Postgres Sql in Django. Give a link to the desired site or > explain in detail. > -- You received this message because you are subscribed to the Go

Как выложить проект на GitHub в Aptana Studio 3 / How to put a project on the GitHub in Aptana Studion 3.

2014-02-15 Thread Віталій Лисенко
Как я понимаю, сначала создаем репозиторий. Затем создаем проект на компьютере. Затем: git init git add * git commit "first commit" git remote orange "http:project_name.git" git push у меня все работает кроме последней. появляются ошибки -- You received this message because you are subscribed

Python-requests call within view hangs LiveServerTestCase

2014-02-15 Thread Ashwin Raju
I have implemented a REST api using django rest framework. I am now implementing a website to prove consumption of the rest api. So in my view code, I validate the form input then use python-requests to call the api. This is so that in the future, mobile clients can directly consume the api. I

Programmers that work in Aptana from GitHub answer me

2014-02-15 Thread Віталій Лисенко
I need your help. Please. -- 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 email to django-

Django TodayArchiveView showing the date for next day

2014-02-15 Thread rroyales
I just followed instructions on django website *https://docs.djangoproject.com/en/dev/ref/class-based-views/generic-date-based/*DayArchiveView was working and TodayArchiveView was showing the date for the next day

Re: Question about the send of file versus the django server

2014-02-15 Thread simone monteleone
Hi Russ, My goal is to load the csv file directly in the database. So my idea is define a script containing the follow pseudo-code: while(1) and receive_csv(): value1, value2 = read_csv() MyModel.objects.create(field1=value1, field2=value2) The script run on the server, ex http:/

help with GEOS and PROJ.4 in windows 7

2014-02-15 Thread Nicholas Perez
Hello i am trying to install these libraries *GEOS and PROJ.4*to use with geodjango(according to tutorial on the website). I am new to this so any help would be greatly appreciated. i have sqlite3 installed i

Re: Question about the send of file versus the django server

2014-02-15 Thread François Schiettecatte
Hi See this: https://docs.djangoproject.com/en/1.6/topics/http/file-uploads/ Cheers François On Feb 15, 2014, at 1:53 PM, simone monteleone wrote: > Hi Russ, > > My goal is to load the csv file directly in the database. > > So my idea is define a script containing the follow pseudo

Re: Programmers that work in Aptana from GitHub answer me

2014-02-15 Thread Alex Mandel
On 02/15/2014 11:59 AM, Dennis Lee Bieber wrote: > On Sat, 15 Feb 2014 09:30:53 -0800 (PST), ??? ??? > declaimed the following: > >> I need your help. Please. > > Then I suggest you find some group specific to Aptana... > > Based upon the Aptana web page, it is a product for

First tutorial - 404

2014-02-15 Thread Steve Booth
I've been Googling on this for several hours. Time to ask. I'm just trying to run through the very first tutorial, and frankly, it's been a nightmare. Running under Fedora 18, Python 2.7, Django version is 1.4.5. So, I got the 1.4 tutorial up, created the site.. all works fine. Fire up the s

Re: Newbie Question - Where to store application constants?

2014-02-15 Thread Camilo Torres
To round this, for the price of gold, and if you are using the django.contrib.admin interface, you can use Django Solo or similar singleton model. That way you can edit your "business properties" within the admin interface: https://pypi.python.org/pypi/django-solo On Friday, February 14, 2014

Re: Aptana Studio 3 + PyDev + Git

2014-02-15 Thread Camilo Torres
On Friday, February 14, 2014 12:28:42 PM UTC-4:30, Віталій Лисенко wrote: > > I badly speak and write English, but i have question: > > 1. describe the main advantages of development in Aptana Studio 3 > Django proects > 2.write a detailed ìnfstrukcìû of how to lay out a project on github,

Re: Creating database in windows

2014-02-15 Thread Camilo Torres
On Friday, February 14, 2014 1:20:09 PM UTC-4:30, Nicholas Perez wrote: > > Hello. I am currently using Django version 1.6.2 trying to learn to use > Geodjango on a windows machine. > My issue is that i have followed Geodjango installation for windows to the > letter(everything is installed in th

Re: or-ing to QuerySets turns INNER into LEFT OUTER joins?

2014-02-15 Thread Camilo Torres
On Friday, February 14, 2014 4:58:21 PM UTC-4:30, sha wrote: > > What I would like to know is: > 1. Is there a reason why mysql performance is so slow on left outer join? > (even with indexes) > >> >> That is not a MySQL issue with outher joins, nor any other RDBMS issue with outher join. That d

Re: persistent db connections and postgresql_psycopg2 InterfaceError

2014-02-15 Thread Connor23
I have a very similar configuration and I get the exact same error. Have you open a ticket? Thanks. On Wednesday, December 18, 2013 2:23:57 AM UTC-8, Pavel Lurye wrote: > > Hi, > CONN_MAX_AGE=None. > Of course, restarting will fix the problem, but that's not what I'm > expecting from django. > I

Re: Question about the send of file versus the django server

2014-02-15 Thread Russell Keith-Magee
Hi Simone, On Sun, Feb 16, 2014 at 2:53 AM, simone monteleone wrote: > Hi Russ, > > My goal is to load the csv file directly in the database. > > So my idea is define a script containing the follow pseudo-code: > > while(1) and receive_csv(): > > value1, value2 = read_csv() > > MyModel.o

Re: First tutorial - 404

2014-02-15 Thread yati sagade
The tutorial for 1.4 can be found here: https://docs.djangoproject.com/en/1.4/intro/tutorial01/ (For other versions, just change the 1.4 in that URL to the version you'd like). I am curious, is there a reason you want to continue learning with 1.4, like you are stuck with it for some reason? If not

Re: Python-requests call within view hangs LiveServerTestCase

2014-02-15 Thread Ashwin Raju
Ping. Anybody? On Saturday, February 15, 2014 8:31:05 AM UTC-8, Ashwin Raju wrote: > > I have implemented a REST api using django rest framework. I am now > implementing a website to prove consumption of the rest api. So in my view > code, I validate the form input then use python-requests to c