Re: Taggit fragmentation

2012-05-29 Thread Simon Bächler
Hi Russ I understand that Alex is busy doing other things now. But he is the owner of the django-taggit repo. If someone is searching for django-taggit it's his repo that shows up. What you are suggesting, creating my own fork and fixing my issues there is not the solution. It would only

Re: My first troll

2012-05-29 Thread Kai Diefenbach
Hi, On 2012-05-28 22:31:35 +, Antoni Aloy said: The troll, lets call him Jim, as this is the nick he has chosen, complains about having a non English entry in what he thinks is a English only planet. +100 to Jim, if you publish on Django planet. Regards Kai -- You received this

Re: Is there are some id obfuscate libs in django?

2012-05-29 Thread forrest yang
Thanks, BFSchott I found a lib at last. https://github.com/JordanReiter/django-id-obfuscator Thanks On Sunday, May 27, 2012 11:56:41 PM UTC+8, BFSchott wrote: > > Keep in mind that obfuscation isn't security, so the answer really depend > on your goal. Are you concerned about

Re: Taggit fragmentation

2012-05-29 Thread Daniele Procida
On Tue, May 29, 2012, Simon Bächler wrote: >I believe that if you publish a repo and you are the main contributor >then it is your responsibility to maintain it. That seems to be asking a bit much, frankly. Don't forget that one way for Alex (or whoever) to meet the

Re: Struggling with formsets

2012-05-29 Thread David
Anyone else have any suggestions please? Thank you -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/-8zgkyBbFBoJ. To post to this group, send email to

Re: Struggling with formsets

2012-05-29 Thread akaariai
On May 29, 12:45 pm, David wrote: > Anyone else have any suggestions please? > > Thank you I don't think there is a way to create formsets, and then formsets related to the first formsets. So, something like this is what you likely need: for p in persons:

Re: Django Models Foreign Key Issue!

2012-05-29 Thread Eugène Ngontang
Hi all! The issue was not from Django side, but really from my models implementation. I made mistake when propagating my associative tables through other tables. And there was another unity constraint blocking the one i wanted to set. I don't think it's necessary to explain you all here,

How to implement WS Security with soapLib in Django

2012-05-29 Thread NNE Filip
Hi EveryBody, i'm newbie in django and i want to know if it's possible to implement WS Security concept in django with SoapLib Library. Thanks. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Is Django Right for Me?

2012-05-29 Thread KevinE
Thanks for all the posts - the more I look the more overwhelming web development is getting. Seems every sentence I read requires starting another search to found out WTF this term or that term means grr Just one question - why would django avoid an offline mode - is that a

Re: Is Django Right for Me?

2012-05-29 Thread Carsten Agger
Den 29-05-2012 14:33, KevinE skrev: Just one question - why would django avoid an offline mode - is that a completely unreasonable/undo-able extension? It seems to me that smartphones may eventually take over normal computers on the web but with the inherent distinction that on a smartphone

Re: Webservice return pdf

2012-05-29 Thread francescortiz
a search for python write file migh help On Monday, May 28, 2012 9:51:59 AM UTC+2, Madhu wrote: > > Hi! all > I create client & through client i call the web service. > which returns pdf file, i want to stored that file directly. > I use this > response['Content-Disposition'] = 'attachment;

Re: Taggit fragmentation

2012-05-29 Thread Javier Guerra Giraldez
On Tue, May 29, 2012 at 2:46 AM, Simon Bächler wrote: > I believe that if you publish a repo and you are the main contributor then it > is your responsibility to maintain it. that's not how it works, fortunately. if you (or anybody) write something, you're free to share it.

Re: Is Django Right for Me?

2012-05-29 Thread Javier Guerra Giraldez
On Tue, May 29, 2012 at 7:33 AM, KevinE wrote: > Just one question - why would django avoid an offline mode - is that a > completely unreasonable/undo-able extension? Django is a web server framework. when you're offline, you don't have a server. > It seems to me

Re: Taggit fragmentation

2012-05-29 Thread Marcin Tustin
That's not quite right. Once you build up a reputation as the package to have, if you don't at least hand over the project, you expose everyone to the pain of figuring out how to either use your code, or which is best place to get a forked version. It's certainly not hard to see that there are

how to tell apache to see my projects database file?

2012-05-29 Thread doniyor
hey guys, i need your help again, after successful deployment, i wanted to do something with database but it says: DatabaseError at /ajax/ unable to open database file because ajax is trying to write something to db. what can be the problem. in my settings.py the path is this:

Re: Is Django Right for Me?

2012-05-29 Thread Marcin Tustin
Django makes up one part of the web stack: the application server. It doesn't have a robust webserver. It doesn't have its own database. Likewise, it doesn't have its own client-side application toolkit. On Tue, May 29, 2012 at 1:33 PM, KevinE wrote: > Thanks for

Re: Taggit fragmentation

2012-05-29 Thread Daniele Procida
On Tue, May 29, 2012, Marcin Tustin wrote: >That's not quite right. Once you build up a reputation as the package to >have, if you don't at least hand over the project, you expose everyone to >the pain of figuring out how to either use your code, or which is best >place

Re: Taggit fragmentation

2012-05-29 Thread Marcin Tustin
It does if anyone wants to be able to find the code. On Tue, May 29, 2012 at 4:01 PM, Daniele Procida wrote: > On Tue, May 29, 2012, Marcin Tustin wrote: > > >That's not quite right. Once you build up a reputation as the package to > >have, if you

How to use an optional ForeignKey to sites.Site and admin's "View on site"?

2012-05-29 Thread Dirk van Oosterbosch, IR labs
Hi, I have a model which has a ForeignKey to the Django contrib sites.Site model. This field should be optional. class MyModel(models.Model): optional_domain = models.ForeignKey('sites.Site', related_name='optional_site', null=True, blank=True) ... However, I'm running into

Re: how to tell apache to see my projects database file?

2012-05-29 Thread Rafael Durán Castañeda
El 29/05/12 16:56, doniyor escribió: hey guys, i need your help again, after successful deployment, i wanted to do something with database but it says: DatabaseError at /ajax/ |unable to open database file| because ajax is trying to write something to db. what can be the problem. in my

What is Django's behavior when a request is interrupted?

2012-05-29 Thread John Boxall
Consider the following code: def view(request): > import pdb;pdb.set_trace() > # Make a bunch of databases updates > return HttpResponse('OKAY') I boot up the Django devserver and make a request from my browser. It is routed by Django to `view`. When the debugger

uploading images via API

2012-05-29 Thread Bastian
Hi, I have a view where a user can upload an image via the web interface. Now I would like to play with uploading the images via an API from phones and such. I use Tastypie for other endpoints but it looks like it does not really support images yet. So I'm looking for advices as to the road to

Re: how to tell apache to see my projects database file?

2012-05-29 Thread doniyor
i did 'top', and then " ps aux | grep apache " to see. the root is running the apache. what should i do now? chown root folder/dbfile , right ? Am Dienstag, 29. Mai 2012 17:57:03 UTC+2 schrieb Rafael Durán Castañeda: > > El 29/05/12 16:56, doniyor escribió: > > hey guys, i need your help

Re: How to use an optional ForeignKey to sites.Site and admin's "View on site"?

2012-05-29 Thread Thomas Lockhart
... Hi, I have a model which has a ForeignKey to the Django contrib sites.Site model. This field should be optional. If it is optional it is not a foreign key. You can put a constraint on the field to have a non-null value be present in the other table, and perhaps there is a way to do this

Inverting URL security diligence - suggestions?

2012-05-29 Thread phill
I'm interested in inverting the diligence required to lock down URLs for my Django app. That is to say, today we put decorators that are some form of @login_required on view methods that require auth, and no decorators on views that are wide open. I'd like to invert that (or force decorators on

Re: Inverting URL security diligence - suggestions?

2012-05-29 Thread Marcin Tustin
At the end of your views.py, have a piece of code that iterates through the keys in the local namespace, testing which are functions and applying your decorator. This will make it inconvenient to have utilities defined there, and it will make it inconvenient to import individual functions

Re: What is Django's behavior when a request is interrupted?

2012-05-29 Thread Ian Clelland
On Tuesday, May 29, 2012, John Boxall wrote: > Consider the following code: > > def view(request): >> import pdb;pdb.set_trace() >> # Make a bunch of databases updates >> return HttpResponse('OKAY') > > > I boot up the Django devserver and make a request from my

Re: how to tell apache to see my projects database file?

2012-05-29 Thread Rafael Durán Castañeda
El 29/05/12 19:07, doniyor escribió: i did 'top', and then " ps aux | grep apache " to see. the root is running the apache. what should i do now? chown root folder/dbfile , right ? Am Dienstag, 29. Mai 2012 17:57:03 UTC+2 schrieb Rafael Durán Castañeda: El 29/05/12 16:56, doniyor

Re: how to tell apache to see my projects database file?

2012-05-29 Thread doniyor
hey thanks, but i still dont get the whole mass. look, i chown all folders untill db file to root. nothing changed, the same error. i did ls -l but i dont see any user named 'www-data', i see the user that i created as superuser when i created the django project. how can i add this superuser

A signal, or equivalent, for when all apps are loaded?

2012-05-29 Thread Bill Freeman
I continue to struggle with occasional circular import problems (caused by a combination of haystack, filebrowser, and a model which both has a search_indexes.py and a model that has a filebrowser field). I had thought that I had patched the issue by importing haystack in my root urlconf (the

Re: how to tell apache to see my projects database file?

2012-05-29 Thread Rafael Durán Castañeda
El 29/05/12 22:38, doniyor escribió: hey thanks, but i still dont get the whole mass. look, i chown all folders untill db file to root. nothing changed, the same error. i did ls -l but i dont see any user named 'www-data', i see the user that i created as superuser when i created the django

WSGI help required. Getting a 'No module named myFirstProject.wsgi' error.

2012-05-29 Thread Harvey
Setting up django for the first time Any ideas what i need to look at to get this error to go away. Not used "wsgi" before? ~/www/django/mySite.fcgi Traceback (most recent call last): File "./mySite.fcgi", line 19, in runfastcgi(method="threaded", daemonize="false") File

Re: WSGI help required. Getting a 'No module named myFirstProject.wsgi' error.

2012-05-29 Thread Marcin Tustin
Maybe you should actually show us the code, and tell us about your environment. On Tue, May 29, 2012 at 10:12 PM, Harvey wrote: > Setting up django for the first time > > Any ideas what i need to look at to get this error to go away. Not > used "wsgi" before? > > >

Using syncdb and sql server does not create dbo tables

2012-05-29 Thread Python_Junkie
I am creating tables in sql server for the first time. I usually use mysql. The tables are created with a domain prefix rather than dbo.table (domain\myname.table instead of dbo.table) How do I get django to creatte the tables the way I want them to be created -- You received this message

DjangoCon US Accepting Talk and Tutorial Proposals

2012-05-29 Thread Sean O'Connor
Hey Everybody, DjangoCon US is now accepting talk and tutorial proposals for this year's conference. Proposals are open now until Saturday 6/16. Check outDjangoCon.USfor all of the details. If you have any questions or run into

Re: A signal, or equivalent, for when all apps are loaded?

2012-05-29 Thread Russell Keith-Magee
On Wed, May 30, 2012 at 4:42 AM, Bill Freeman wrote: > I continue to struggle with occasional circular import problems > (caused by a combination of haystack, filebrowser, and a model which > both has a search_indexes.py and a model that has a filebrowser > field). > > I had

Re: Inverting URL security diligence - suggestions?

2012-05-29 Thread Mike Dewhirst
On 30/05/2012 4:25am, phill wrote: I'm interested in inverting the diligence required to lock down URLs for my Django app. That is to say, today we put decorators that are some form of @login_required on view methods that require auth, and no decorators on views that are wide open. I'd like to

Re: Is Django Right for Me?

2012-05-29 Thread Mike Dewhirst
On 29/05/2012 10:33pm, KevinE wrote: Thanks for all the posts - the more I look the more overwhelming web development is getting. Seems every sentence I read requires starting another search to found out WTF this term or that term means grr The most important part of the

Re: Taggit fragmentation

2012-05-29 Thread Kurtis Mullins
Open Letters scare me ... They remind me of the pseudo-beginning of mainstream, non-free software :) I'd say just do like Russ mentioned. Try to pull everything together in one repository. Then when it's mature and you still want to take over the project, contact the original author and see if

Re: Question object permission approach

2012-05-29 Thread Kurtis Mullins
Hey, I'm glad you got it all running! I just wanted to specify some of my exact code in case anybody references this in the future. It's a bit off from where I was. In my UpdateViews and DetailViews, I do something along the lines of this: # Limit Editing Access to User's Own Objects.

Re: Inverting URL security diligence - suggestions?

2012-05-29 Thread Kurtis Mullins
If you tend to use the standard Class Based Views, you could always add a mixin for that functionality. Or just start subclassing to make it even easier to read (e.g. AuthenticatedUpdateView, AuthenticateCreateView, etc...) On Tue, May 29, 2012 at 7:50 PM, Mike Dewhirst

Re: how to tell apache to see my projects database file?

2012-05-29 Thread doniyor
my browser isnot openning irc url, i dont know why. thing is, root is running the apache. it means, i should chown root to all my files right? Am Dienstag, 29. Mai 2012 23:17:19 UTC+2 schrieb Rafael Durán Castañeda: > > El 29/05/12 22:38, doniyor escribió: > > hey thanks, but i still dont

Re: Is Django Right for Me?

2012-05-29 Thread kenneth gonsalves
On Tue, 2012-05-29 at 09:05 -0500, Javier Guerra Giraldez wrote: > On Tue, May 29, 2012 at 7:33 AM, KevinE > wrote: > > Just one question - why would django avoid an offline mode - is that > a > > completely unreasonable/undo-able extension? > > Django is a web

Re: how to tell apache to see my projects database file?

2012-05-29 Thread kenneth gonsalves
On Tue, 2012-05-29 at 22:45 -0700, doniyor wrote: > my browser isnot openning irc url, i dont know why. > > thing is, root is running the apache. it means, i should chown root to > all > my files right? wrong - www-data is running apache, so you should give www-data write access to the db. --