Re: URL lookup fails in apache/wsgi unless mapped to server root.

2014-05-22 Thread Spaceman Paul
Playing around some more, and inserting some trace statements in the django code, I can see (for the example ^times$ pattern): 1) When WSGIScriptAlias is the server root: The RegexURLResolver.resolve(self,path) method (in django.core.urlresolvers.py) is called three times, each time with

Re: Django Unit Test Case: Getting MultipleObjectsReturned: get() returned more than one "Model" -- it returned 2!

2014-05-22 Thread Jimish Parekh
Bug is resolved. I was trying to create another UserProfile object while there was already one created when I created User class object... I just needed to fire a get query to access UserProfile of that User class object and save those two attributes into that object. On Thursday, May 22,

Re: Using Sass and Sass Libraries with Django-Pipeline

2014-05-22 Thread Wellington Cordeiro
Missed my link to Jeet which is at http://jeet.gs On Thursday, May 22, 2014 10:25:47 PM UTC-6, Wellington Cordeiro wrote: > > Cal, > > I don't have it installed in my static folder, I have the gem installed > and I was under the impression that Sass could find the installed > libraries, which I

Re: Using Sass and Sass Libraries with Django-Pipeline

2014-05-22 Thread Wellington Cordeiro
Cal, I don't have it installed in my static folder, I have the gem installed and I was under the impression that Sass could find the installed libraries, which I guess I was mistaken. What would be your recommended tool? Django-Pipeline or Compressor? Or maybe another? I was trying Compressor

Documentation of javascript_catalog when packages parameter is None

2014-05-22 Thread Rafael S. Suguiura
Hello! I'm starting to use javascript_catalog, I use makemessages to collect all (few) strings from my whole project in one .po file located at project root. Documentation[1] states the following: Each string in packages should be in Python dotted-package syntax (the same > format as the

Re: URL lookup fails in apache/wsgi unless mapped to server root.

2014-05-22 Thread Spaceman Paul
I've worked around it by creating another A-record and pointing each application to the server root of the respective virtual host, but this should not be necessary. On Thursday, 22 May 2014 23:50:57 UTC+1, Spaceman Paul wrote: > > Nothing in wsgi.conf. > > Relevant bits of apache conf: > > >

Re: Any job offer for Junior Django Developer?

2014-05-22 Thread Russell Keith-Magee
On Thu, May 22, 2014 at 10:25 PM, Mariusz Dev wrote: > Hello, > > I'm looking for job for Junior Django Developer. > I have one year of experience in Django and more in technologies > frontendowych: HTML5/CSS3 (Bootstrap), JS. > > If anyone is interested, please

Re: URL lookup fails in apache/wsgi unless mapped to server root.

2014-05-22 Thread Spaceman Paul
Nothing in wsgi.conf. Relevant bits of apache conf: WSGIScriptAlias /awma /home/paul/src/awma-apache/internationalguidelines/wsgi.py Nothing in /var/log/apache2/error.log Access.log just says: 152.91.9.9 - - [23/May/2014:08:27:17 +1000] "GET /awma/ HTTP/1.1" 404 1476 "-"

Re: URL lookup fails in apache/wsgi unless mapped to server root.

2014-05-22 Thread Kelvin Wong
Maybe post your apache.conf or/and your wsgi file. Maybe check your Apache logs. K On Wednesday, May 21, 2014 11:01:29 PM UTC-7, Spaceman Paul wrote: > > No that's what I've got. > > P. > > >>> -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Traversing nested models is a mess. (or i don't get it right)

2014-05-22 Thread Adrian Scheffler
Okay, got it (at least i hope so :-) ): def article_child_gen(article): while True: try: article = Article.objects.get(parent_article=article) yield article except Article.DoesNotExist: return -- You received this message because you are

Re: BookMarker Project - Opening local files on localhost through Django generated pages

2014-05-22 Thread François Schiettecatte
You are not going to get a work-around to a page being served by a web server not having access to the local file system, that would be a serious bug in the browser security model. What you can do is have the webpage be a file on your drive, open that with a browser (locally, not via a web

Re: BookMarker Project - Opening local files on localhost through Django generated pages

2014-05-22 Thread C. Kirby
If they are always going to be on the same machine then why don't you open the file on the view side and render it as text to the browser? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: Django-nested-inlines

2014-05-22 Thread Thiago borges dos reis
Joris, i agree with you! 2014-05-22 15:42 GMT-03:00 Joris : > > I didn't get it to work either. First I got an error from one of the > source files, which I fixed, and then it still didn't work. > I'm using Grappelli though, thought that could be a reason for the problem.

Re: BookMarker Project - Opening local files on localhost through Django generated pages

2014-05-22 Thread Aseem Bansal
This bookmarker that I want to make will be th repacement for my webbrowser's boomarks so I will be storing the bookmarks in sqlite DB. As per my understanding using html5 local storage is more of a temporary storage. A sqlite3 db will be portable hence keeping my bookmarks with me in case I

Re: Django-nested-inlines

2014-05-22 Thread Joris
I didn't get it to work either. First I got an error from one of the source files, which I fixed, and then it still didn't work. I'm using Grappelli though, thought that could be a reason for the problem. No Thiago it's not silver bullet but still it's pretty good :) and the existance of

Re: website statistics

2014-05-22 Thread chansonsyiddish
Thanks for all the answers! -- 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

Re: BookMarker Project - Opening local files on localhost through Django generated pages

2014-05-22 Thread C. Kirby
There are not really any workarounds, just different architecture - save your bookmarks to the django project instead of on the local filesystem. You can also look into using html5 local storage. Just note that either of these architecture changes would mean rolling your own bookmark system

Re: BookMarker Project - Opening local files on localhost through Django generated pages

2014-05-22 Thread Aseem Bansal
There has to be a workaround. Using webbrowser.open via a request to the server on clicking? That's hacky but I started working on Django for this project and if web browsers cannot do this then I made a wrong choice for the technology to use for this project. On Thursday, May 22, 2014

Re: BookMarker Project - Opening local files on localhost through Django generated pages

2014-05-22 Thread François Schiettecatte
See my previous email, you can get chrome to launch with securities turned off (and Chromium too with the same command line argument), but not Firefox or Safari, not sure about IE. Not even sure if the flag I mentioned will help in this specific case. And I am not sure about the wisdom of

Re: BookMarker Project - Opening local files on localhost through Django generated pages

2014-05-22 Thread Aseem Bansal
I had searched that but there should be a way to give permissions. The client can give the permissions. Can the client not? On Thursday, May 22, 2014 11:28:59 PM UTC+5:30, François Schiettecatte wrote: > > It would also help to know what is giving the error. > > I did a quick google search

Re: BookMarker Project - Opening local files on localhost through Django generated pages

2014-05-22 Thread François Schiettecatte
Well ok, this is not a django issue. Like I said in my previous email the browser is blocking this for security/sandboxing issue. You could start chrome with security ( see http://superuser.com/questions/593726/is-it-possible-to-run-chrome-with-and-without-web-security-at-the-same-time ) and

Re: BookMarker Project - Opening local files on localhost through Django generated pages

2014-05-22 Thread Aseem Bansal
The error is coming in Chrome's console not in Python/Django when I try to click on the link in my webbrowser. The HTML generated is below Python 3.4 Docs On Thursday, May 22, 2014 11:30:31 PM UTC+5:30, Aseem Bansal wrote: > > Here is the code so far. I have just kept Bootstrap and JQuery

Re: BookMarker Project - Opening local files on localhost through Django generated pages

2014-05-22 Thread Aseem Bansal
Here is the code so far. I have just kept Bootstrap and JQuery ignored in git. Rest is there https://github.com/anshbansal/Bookmarker On Thursday, May 22, 2014 11:09:09 PM UTC+5:30, C. Kirby wrote: > > Errors without code aren't very useful. If you provide the view and > template you are

Re: BookMarker Project - Opening local files on localhost through Django generated pages

2014-05-22 Thread François Schiettecatte
It would also help to know what is giving the error. I did a quick google search with the text of the error (which you could have done), it looks like browsers are not keen on accessing 'file://...' urls from a web page served by a web server, this for security reasons. For kicks, I embedded a

Traversing nested models is a mess. (or i don't get it right)

2014-05-22 Thread Adrian Scheffler
Hi there. supposed you've got a nested model like this: class Article(models.Model): parent_article = models.OneToOneField("self", blank=True, null=True, default=None, related_name="child_article") How would you traverse the related model chain ( aka linked list ) to one end? Maybe with a

Re: BookMarker Project - Opening local files on localhost through Django generated pages

2014-05-22 Thread C. Kirby
Errors without code aren't very useful. If you provide the view and template you are rendering it will give us something to latch onto and debug Kirby On Thursday, May 22, 2014 12:23:06 PM UTC-5, Aseem Bansal wrote: > > I understand the requirement of file protocol. That's how I keep bookmarks

Re: BookMarker Project - Opening local files on localhost through Django generated pages

2014-05-22 Thread Aseem Bansal
I understand the requirement of file protocol. That's how I keep bookmarks in Chrome currently. But when I served the same as a hyperlink I am getting Not allowed to load local resource: On Thursday, May 22, 2014 10:14:39 PM UTC+5:30, François Schiettecatte wrote: > > You can do this with a

Re: BookMarker Project - Opening local files on localhost through Django generated pages

2014-05-22 Thread François Schiettecatte
You can do this with a 'file://...' url, that will cause the browser to open a file on the local file system, the browser won't need to ask for permission, the only issue is that the files will need to be in a known path. François On May 22, 2014, at 12:34 PM, Aseem Bansal

Re: BookMarker Project - Opening local files on localhost through Django generated pages

2014-05-22 Thread Aseem Bansal
The server will not be able to open pages stored on client machine but the client user should be able to open html pages stored on client machine by clicking on a hyperlink manually. On Thursday, May 22, 2014 10:02:52 PM UTC+5:30, Aseem Bansal wrote: > > I want the the webpage served to the

Re: BookMarker Project - Opening local files on localhost through Django generated pages

2014-05-22 Thread Aseem Bansal
I want the the webpage served to the client machine from the server to have a hyperlink. The hyperlink will be for a html file stored on the client machine. After the webpage has been served to the client webbrowser then when the client user clicks on the hyperlink I want the html page to be

Re: Django-nested-inlines

2014-05-22 Thread Thiago borges dos reis
The truth is that django isn't the silver bullet. In the moment, i think it doesn't really work. I'm doing my own "admin". 2014-05-22 6:08 GMT-03:00 Vivi Blubb : > Hi, > > I do have the same problem. I'm using Python 2.7.5 and Django 1.6.5. I > followed the tutorials of

Any job offer for Junior Django Developer?

2014-05-22 Thread Mariusz Dev
Hello, I'm looking for job for Junior Django Developer. I have one year of experience in Django and more in technologies frontendowych: HTML5/CSS3 (Bootstrap), JS. If anyone is interested, please message - I'll send my resume and portfolio. My email: mariusz.developm...@gmail.com Best

Re: issues with django-organizations

2014-05-22 Thread Marcela Campo
Replying to my own question, django-organizations team fixed the package and now can be installed with pip. On Tuesday, May 20, 2014 5:53:22 PM UTC-3, Marcela Campo wrote: > > Hi, > Has anyone tried to use django-organizations? I am new to Django and > trying to use that egg but just having

Re: Using Sass and Sass Libraries with Django-Pipeline

2014-05-22 Thread Cal Leeming [Simplicity Media Ltd]
Hi Willy, Do you have Bourbon installed in your static folder? If not, you'll need to install the bourbon/compass/sass node packages (see below), or you can download a precompiled dist from the source of each, for example see [1]. If you go down the node packages route, be aware, not even the

Re: Django bug? FieldFile.save() accesses content.size after self.storage.save() has closed content; ValueError is raised when file is BytesIO

2014-05-22 Thread Hodza Nassredin
Hi, I have the same problem with django 1.7b4. It is defenitely a bug. среда, 14 мая 2014 г., 8:18:44 UTC+4 пользователь James Boyden написал: > > Hi all, > > Can anyone confirm that the following is a bug in Django (and that I'm not > simply missing the correct way to do this)? > > I'm using

Re: Django-nested-inlines

2014-05-22 Thread Vivi Blubb
Hi, I do have the same problem. I'm using Python 2.7.5 and Django 1.6.5. I followed the tutorials of nested inlines, but it doesn't work. There is no error message, but it does not show the third inline. Actually there was a bug, because many did have the same problem, but still I couldnt find

Re: website statistics

2014-05-22 Thread Timothy W. Cook
On Wed, May 21, 2014 at 4:46 PM, chansonsyiddish wrote: > > Thanks for the suggestion anyway... other ideas? > You can import your logfile data into R and do any analysis you want. Timothy Cook LinkedIn

Re: BookMarker Project - Opening local files on localhost through Django generated pages

2014-05-22 Thread Daniel Roseman
On Tuesday, 20 May 2014 19:29:06 UTC+1, Aseem Bansal wrote: > > I am working on a BookMarker project for managing my bookmarks. I was > creating the search page for lisitng bookmarks as per categories. I hit a > snag while testing it. I am unable to open locally stored webpages. I > understand

Django Unit Test Case: Getting MultipleObjectsReturned: get() returned more than one "Model" -- it returned 2!

2014-05-22 Thread Jimish Parekh
Hey Guys, I am trying to write some unit test cases for web application I am working on. This unit test needs authentication so in my unit test I need to create a user and pass two extra parameters to get object of new model "UserProfile" which is using relation to django User class. Here is

RE: [] website statistics

2014-05-22 Thread Henrik Genssen
Hi, you could try graphite / carbon (and diamond) to do so, if you do not want to rely on javascript frameworks lil Piwik or GA and want to track special actions. http://graphite.wikidot.com and add you custom stats by something like this using UDP: sock = socket.socket(socket.AF_INET,

Using Sass and Sass Libraries with Django-Pipeline

2014-05-22 Thread Willy
I'm trying to use Sass and Sass Libraries with Django-Pipeline but my @import directives always error out saying they can't find the libraries I have installed. Here is my settings file https://gist.github.com/43b0e4d5c93b943d9760 Then I have my scss file trying to do @import 'bourbon';

Re: URL lookup fails in apache/wsgi unless mapped to server root.

2014-05-22 Thread Spaceman Paul
No that's what I've got. P. On Thursday, 22 May 2014 15:14:01 UTC+10, WongoBongo wrote: > > Maybe > > WSGIScriptAlias /awma /var/www/djangoapp/djangoapp/wsgi.py > > K > > On Wednesday, May 21, 2014 9:27:14 PM UTC-7, Spaceman Paul wrote: >> >> My application works fine in runserver and in