Re: template rendering progress

2012-09-20 Thread Jani Tiainen
19.9.2012 16:13, Philippe Raoult kirjoitti: Hello all, I'm using django templates to generate pdf listings in my app. After running render() on the template, reportlab is called to create the pdf. My issue is that those listings can get quite big (hundreds of pages, with images) and thus take

Re: GeoDjango and shapefiles

2012-09-20 Thread Jani Tiainen
20.9.2012 17:36, Coulson Thabo Kgathi kirjoitti: Hi guys i want to use geodjango for an application that gives map locations but offline using shapefiles and geodjango, any information that i can be refered to would be appreciated. I dont want to use google maps because its wil be used offline

Re: How to extend the TextField in Django?

2012-09-20 Thread Scarl
Thanks Lachlan ! 在 2012年9月21日星期五UTC+8上午10时19分44秒,Scarl写道: > > > > > I want to extend the textfield like this, could anyone help me? thx! > > -- You received this message because you are

Re: How to extend the TextField in Django?

2012-09-20 Thread Lachlan Musicman
What you are looking for is called a WYSIWYG editor widget - there are a couple of extentions/plugins lying around: http://djangosnippets.org/snippets/1705/ or http://blog.bixly.com/post/22376374604/django-tinymce-a-wysiwyg-editor-for-django or https://github.com/pydanny/django-wysiwyg/ or

How to extend the TextField in Django?

2012-09-20 Thread Scarl
I want to extend the textfield like this, could anyone help me? thx! -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this

Re: Strange rendering behaviour in template/user/auth

2012-09-20 Thread Lachlan Musicman
On Fri, Sep 21, 2012 at 11:18 AM, hevok wrote: > Hiya L, > Your are welcome! > > It is not obvious from the tutorial, but RequestContext as its name suggests > also passes the request context to the template. The context_instance uses > the auth middleware context processor

Re: My "Contributors" page Conundrum

2012-09-20 Thread Thomas Lockhart
On 9/20/12 5:28 PM, JJ Zolper wrote: Anyone have any ideas? Yes, Melvyn did. hth - Tom Thanks! JJ Zolper On Tuesday, August 28, 2012 2:24:03 AM UTC-4, Melvyn Sopacua wrote: On 28-8-2012 6:58, JJ Zolper wrote: > My problem is that I want each

Re: My "Contributors" page Conundrum

2012-09-20 Thread JJ Zolper
Anyone have any ideas? Thanks! JJ Zolper On Tuesday, August 28, 2012 2:24:03 AM UTC-4, Melvyn Sopacua wrote: > > On 28-8-2012 6:58, JJ Zolper wrote: > > > My problem is that I want each contributor to have their own separate > page. > > So if the first guys name for some example is Mike

Re: Django Unobtrusive Ajax

2012-09-20 Thread Russell Keith-Magee
On Fri, Sep 21, 2012 at 1:10 AM, Kurt Pruhs wrote: > @Russell > I understand what you are saying, as far as making AJAX a part of Django's > core. It's a server-side framework. On the other hand, I was just in D.C. > for DjangoCon and listened to Adrian Holovaty talk about

Re: Strange rendering behaviour in template/user/auth

2012-09-20 Thread hevok
Hiya L, Your are welcome! It is not obvious from the tutorial, but RequestContext as its name suggests also passes the request context to the template. The context_instance uses the auth middleware context processor and provides the user in the view. You could also refer to `{{ request.user

Re: Strange rendering behaviour in template/user/auth

2012-09-20 Thread Lachlan Musicman
On Fri, Sep 21, 2012 at 10:29 AM, hevok wrote: > Hola Lachlan, > Are you passing the `context_instance=RequestContext(request)` to all > templates? It should provide the user tag. Hi Hevok, Thanks for the reply. I did attempt to merely pass the request: @login_required

Re: syncdb is not creating auth tables

2012-09-20 Thread Mario Gudelj
I worked it out. I had another settings.py file inside one of the apps which had auth inside INSTALLED APPS and it was being imported into the main settings file. -m On 21 September 2012 08:14, Mario Gudelj wrote: > Thanks Amyth, but that doesn't work. I delete the

Re: Strange rendering behaviour in template/user/auth

2012-09-20 Thread hevok
Hola Lachlan, Are you passing the `context_instance=RequestContext(request)` to all templates? It should provide the user tag. Bests, Hevok On Friday, September 21, 2012 12:20:04 AM UTC+2, Lachlan Musicman wrote: > > Hola, > > I've noticed for a while that my home/index page wasn't registering

Strange rendering behaviour in template/user/auth

2012-09-20 Thread Lachlan Musicman
Hola, I've noticed for a while that my home/index page wasn't registering the {{ user }} tag when rendering the page: there was no "Welcome Username. Change password / Log out" in the top right corner, and the link to the admin interface that I'd put in the breadcrumbs for logged in users

Re: problem with html select box values

2012-09-20 Thread Mario Gudelj
There's no way this can be answered without code examples On Sep 20, 2012 1:54 PM, "Navnath Gadakh" wrote: > i have project for online shoping in that i use product category and and > product names. >i have taken product name in select dropdown box. > now i want to

Re: syncdb is not creating auth tables

2012-09-20 Thread Mario Gudelj
Thanks Amyth, but that doesn't work. I delete the sqlite file that gets created with syncdb and i still get the same error. The new db file gets created with some tables in it, but no auth tables. On Sep 20, 2012 5:44 PM, "Amyth Arora" wrote: > You've changed the

How to define a different Max-Age than the set @cache_control / @cache_page?

2012-09-20 Thread jicks83
I'd like to cache my view as follows: @cache_page(10) def myview: return HttpResponse('content') This automatically caches my view for 10 seconds and automatically sets Cache-Control/Expire header as well. I'd like to cache my view for only 10 seconds but have a max-age of 3600 seconds.

Re: tree.io installation with django

2012-09-20 Thread Nick Apostolakis
On 20/09/2012 10:36 μμ, Fabian Weiss wrote: And YES again! :) That solved it! No alomost everything works! :) Just when I go to /calendar/settings/integration I see: "available resources: loading.." Is it normal? Greetings and THX :) You are welcome. The calendar app as far as I

Re: tree.io installation with django

2012-09-20 Thread Fabian Weiss
And YES again! :) That solved it! No alomost everything works! :) Just when I go to /calendar/settings/integration I see: "available resources: loading.." Is it normal? Greetings and THX :) Am Donnerstag, 20. September 2012 20:34:17 UTC+2 schrieb Nick Apostolakis: > > On 20/09/2012 08:31 πμ,

Re: tree.io installation with django

2012-09-20 Thread Nick Apostolakis
On 20/09/2012 08:31 πμ, Fabian Weiss wrote: The trouble is still not over :( :( When I click on Calendar or Projects I get the error in the top: "Something went wrong..." Exactly because of these two features I installed the software.. :/ So I remove the # in the link to activate the debug

Multi-level list (another ... I think)

2012-09-20 Thread refreegrata
Hello list I have a question. I need to build a multi-level MultipleChoiceField. Something like this: --- Heavy Rain KOF XIII Halo 3 Watchmen Swamp thing Spiderman

Re: Django Unobtrusive Ajax

2012-09-20 Thread Kurt Pruhs
@Russell I understand what you are saying, as far as making AJAX a part of Django's core. It's a server-side framework. On the other hand, I was just in D.C. for DjangoCon and listened to Adrian Holovaty talk about making Django deliver real-time content. Did I misunderstand what he was saying?

calculated fields with foreign keys

2012-09-20 Thread kloetpatra
Hi! I have the following models: class Player(models.Model): name = models.CharField('Name', max_length=40) pub_date = models.DateTimeField('date added', default=datetime.datetime.now) def __unicode__(self): return self.name def goals(self): g = 0 ms1 =

Decorate 3rd party app's views

2012-09-20 Thread Garry Polley
Currently I am having to choose between two ways to decorate 3rd party apps views: 1) Use a middleware (http://stackoverflow.com/questions/2164069/best-way-to-make-djangos-login-required-the-default) 2) Use some url 'magic' to apply the decorator

Re: Beginer: Need Help in setting up goflow, could you please elaborate initial Gflow setup

2012-09-20 Thread Stephen Anto
I think it may be a import error. pls check 'goflow' which is available on your project. On Thu, Sep 20, 2012 at 5:02 PM, Enator24 wrote: > After editing settings.py I am getting error > > > C:\wf\mysite>python manage.py runserver > Error: *No module named

Re: Django + mod_wsgi url rewriting issue

2012-09-20 Thread Sebastiaan Snoeckx
> I use something like that... i mean, for example if /foo/bar must to > execute with django the url must to be example.com/site.wsgi/foo/bar > (continue with the example of serverfault)... if you follow > example.com/foo/bar apache use your statics files. > > (this part of my production

Re: Beginer: Need Help in setting up goflow, could you please elaborate initial Gflow setup

2012-09-20 Thread Enator24
Any other advise for a workflow applications. On Thursday, 20 September 2012 20:05:06 UTC+5:30, guettli wrote: > > Hello > > the last update on goFlow is some years ago (sept 2008). This projects > looks dead. If you are new to django, I guess > you will get a lot of errors > > Thomas

Re: Issues with validation

2012-09-20 Thread Tom Evans
On Tue, Sep 18, 2012 at 11:12 AM, neeraj dhiman wrote: > I am using two models in my app and different form for each model, when I > tried to validate these two forms , one model is validated but other is not. > You need to be a bit more selective about what code you show,

Re: ANN: Maymyo Business Application Infrastructre Beta 0.3.3

2012-09-20 Thread bobhaugen
Gaah! I just re-read my message about Maymyo and if it was from somebody else, I would think they were related to the project and shilling, or else trying to selling the OP something. I'm not, really. This is the first time I heard of the project. And I don't have anything to sell. But I am

Re: Issues with validation

2012-09-20 Thread Stephen Anto
Hi me too get the same problem... anyone help us.. On Tue, Sep 18, 2012 at 3:42 PM, neeraj dhiman wrote: > I am using two models in my app and different form for each model, when I > tried to validate these two forms , one model is validated but other is not. > > model.py >

Re: GeoDjango and shapefiles

2012-09-20 Thread George Silva
Hi Coulson, GeoDjango is just Django. You can write an application that checks upon initialization which type of environment it's located and then you can set the DATABASES property on settings.py. Using the technique I've told you above, you can store GIS data in two databases (for web

GeoDjango and shapefiles

2012-09-20 Thread Coulson Thabo Kgathi
Hi guys i want to use geodjango for an application that gives map locations but offline using shapefiles and geodjango, any information that i can be refered to would be appreciated. I dont want to use google maps because its wil be used offline thank you -- You received this message because

Re: Beginer: Need Help in setting up goflow, could you please elaborate initial Gflow setup

2012-09-20 Thread Thomas Guettler
Hello the last update on goFlow is some years ago (sept 2008). This projects looks dead. If you are new to django, I guess you will get a lot of errors Thomas Güttler Am 19.09.2012 18:23, schrieb Enator24: Need Help in setting up goflow, could you please elaborate initial Gflow setup

Re: Browser get closed when clicked on others links

2012-09-20 Thread Stephen Anto
pls check browser settings. On Tue, Sep 18, 2012 at 5:20 PM, Pervez Mulla wrote: > Hi, > > I have developed simple website with Django framework. > > When i want to switch to other page, the browser getting closed..:( > > What the problem for this ? > > Thank You > Pervez

Re: Beginer: Need Help in setting up goflow, could you please elaborate initial Gflow setup

2012-09-20 Thread Enator24
After editing settings.py I am getting error C:\wf\mysite>python manage.py runserver Error: *No module named goflow.instances* Thanks. On Thursday, 20 September 2012 09:43:48 UTC+5:30, Stephen Anto wrote: > > Yes there are lot of necessary settings in settings.py based on the > requirement.

Re: SyntaxError Creating New Project

2012-09-20 Thread Stephen Anto
Hi Daniel, I am not spamming. just inform you that how to create django projects with initial steps. I just replied for your 'SyntaxError Creating New Project' title. I have prepared to make this answer for your questions. Is it related your query or not? On Thu, Sep 20, 2012 at 3:35 PM,

Re: Django confirm email. Change value from false to true

2012-09-20 Thread Stephen Anto
Hi, Just fllow bellow steps: In urls.py add bellow url urlpatterns = patterns('', url('^meeting/$', 'meeting', name='meeting'), url('^meeting/confirm/(\w+)/$','meeting_confirm', name='meeting_confirm'), ) In views.py add bellow methods def

Re: SyntaxError Creating New Project

2012-09-20 Thread Daniel Roseman
On Thursday, 20 September 2012 05:20:56 UTC+1, Stephen Anto wrote: > > Hi, > > Just follow these 7 steps to start new project > http://f2finterview.com/web/Django/17/ For more > http://f2finterview.com/web/Django > > > Stephen, please stop spamming this list by posting the same link to your

Site stealing content

2012-09-20 Thread Ilian Iliev
Hello, the site http://djangoblog.org/ is copying full articles from the community feed and presenting them as own(copyright at the website footer) without mentioning the original author/source. I send a complain to the email in the domain whois( pa...@sychrovnet.cz) but there was no response.

Re: ANN: Maymyo Business Application Infrastructre Beta 0.3.3

2012-09-20 Thread bobhaugen
This is a very ambitious project. I wish you great success. I did some browsing of the doc and code and am very impressed by what you have accomplished so far. Your "glacial speed" comment is too modest. I am working on business applications in Django, but they are not enterprise-oriented.

Re: syncdb is not creating auth tables

2012-09-20 Thread Amyth Arora
You've changed the models after the tables were initially created. Delete the current database and create a new one. Then ->> syncdb. On Thu, Sep 20, 2012 at 1:01 PM, Mario Gudelj wrote: > Hi Djangoers, > > I'm sure I'm missing something simple but for the life of me I

syncdb is not creating auth tables

2012-09-20 Thread Mario Gudelj
Hi Djangoers, I'm sure I'm missing something simple but for the life of me I can not figure this out. I'm trying to syncdb and I'm getting this error: File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py", line 337, in execute

is Django by Example still relevant resource

2012-09-20 Thread Gour
Hello, I'm starting to learn Django and considering that the present django is 1.4.1 and by the end of the year there will be 1.5 available, i wonder if Django by Example (http://lightbird.net/dbe/index.html) written for 1.2 is still good resource for learning? What about The Django Book V2.0?

Re: httplib exception in Django model

2012-09-20 Thread airween
Hello, On Wednesday, September 19, 2012 7:45:00 PM UTC+2, Alexis Roda wrote: > > Al 19/09/12 10:42, En/na airween ha escrit: > > >File "/usr/lib/python2.6/socket.py", line 547, in create_connection > > for res in getaddrinfo(host, port, 0, SOCK_STREAM): > > error: Int or String