Re: Vancouver Python Day

2013-09-30 Thread Mike Doroshenko II
That sounds cool, I would consider going if I lived in Vancouver. On 09/30/2013 03:25 PM, Andy McKay wrote: The Vancouver Python User Group and the Vancouver Django Meetup Group are pleased to announce: Vancouver Python Day Saturday, November 16, 2013 SFU Harbour Centre Part of Vancouver

Re:

2013-08-21 Thread Mike Doroshenko II
How/Why am I getting this? Has anyone else received this? To: django-users+unsubscr...@googlegroups.com On 08/21/2013 02:44 AM, Shahmi Junoh wrote: Hi, I would like to unsubscribe from getting the updates. Thanks in advance. Regards, Shahmi -- You received this message because you are

Re: [Errno 13] Permission denied: '.cache' - where is the directory I need to change permission

2013-08-05 Thread Mike Doroshenko II
I am curious about this, is there a file called .cache in your project's directory? On 8/3/2013 9:28 AM, Frank He wrote: I am now deploying my django project using apache mod_wsgi, after a lot effort, it is near the end. But now when I run my project directly, I am stuck with a permission

Re: /admin redirects me to 127.0.0.1:8000/admin on nginx+gunicorn production server

2013-07-24 Thread Mike Doroshenko II
I think this is a bug in Django. I am not using Nginx or Gunicorn and am also experiencing the same issue. http://sandbox.junior.evandro.dev.tecknoquest.com/ On that page the "Customer Service Django App " link works with and without a

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

Insert variable into RequestContext?

2013-05-03 Thread Mike Doroshenko II
Hi all, I want to make all the pages for my project state whether it's running on my live server or a backup server and am already using RequestContext for all my views that call my templates. I was thinking I would write some code that uses if statements against the hostname to add a

Re: Date from DateTimeField vs date from model method: foreign key DateTimeField

2013-04-16 Thread Mike Doroshenko II
Gabriel [SGT] wrote: On Fri, Apr 12, 2013 at 2:47 PM, Mike Doroshenko II <mi...@tecknoquest.com> wrote: In my attached models.py Please, don't attach code, use a paste service or similar to view the code online. Ok, yeah I suppose that would save storage space and bandwidth consi

Re: Date from DateTimeField vs date from model method: foreign key DateTimeField

2013-04-16 Thread Mike Doroshenko II
Hello? Mike Doroshenko II wrote: In my attached models.py I have a class that has a model method to return the time last modified on the latest object that has a foreign key to it. So when I made a new document, in the admin interface I see April 11, 2013, 8:24 p.m. for the Created column

Date from DateTimeField vs date from model method: foreign key DateTimeField

2013-04-12 Thread Mike Doroshenko II
In my attached models.py I have a class that has a model method to return the time last modified on the latest object that has a foreign key to it. So when I made a new document, in the admin interface I see April 11, 2013, 8:24 p.m. for the Created column and 2013-04-11 20:24:36.799167 for

Re: Django 1.5 and url tag ( {% url 'django.contrib.auth.views.login' %})

2013-03-13 Thread Mike Doroshenko II
Django phpBB? I've used phpBB before, and am curious about importing a phpBB forum into Django. I am curious what that site is, but when I go there I get nothing :( VVilku wrote: Hello, I have problem with: Reverse for 'django.contrib.auth.views.login' with arguments '()' and keyword

Re: error- A server error occurred. Please contact the administrator.

2013-03-13 Thread Mike Doroshenko II
When I was talking error messages telling you to contact your system administrator, I was talking about the error messages in general, not just specific to Django, ex I had Windows give me such messages. Tom Evans wrote: On Tue, Mar 12, 2013 at 3:26 PM, Mike Doroshenko II <

Re: error- A server error occurred. Please contact the administrator.

2013-03-12 Thread Mike Doroshenko II
I thought the error was "A server error occurred. Please contact the administrator." I hate when errors say to contact your system administrator, I am my system administrator and am frustrated by invalid instructions. django-facebook? C. Kirby wrote: Nobody can really help you unless you

Re: Moving a Django website to another server

2013-01-31 Thread Mike Doroshenko II
I have scripts that use rsync for my backups, this is old hat for me lol :) John Robertson wrote: Hi there, thanks for all your very helpful responses. Its all a little out of my comfort zone so I might employ someone to do it for me. Any takers/quotes? cheers John On Friday, January 25,

Re: newbie confused about urls

2013-01-31 Thread Mike Doroshenko II
You mean mappings urls to views(pages?). Because if get_absolue_url is like request.get_full_path() then you would use that in the view itself and use urls.py to map urls to pages/views. And templates are are called from in views. frocco wrote: Hi All, I am trouble understanding how to use

Re: Kindly help for an interview with Google on python django

2013-01-31 Thread Mike Doroshenko II
Really? Since when, because Google Predates Django, doesn't it? @OP: Interview, like for a job? MichaƂ Nowotka wrote: Didn't you know that whole google search thing is actually just django + tastyPie + solr? -- Mike Doroshenko, Junior Sys Admin TecKnoQuest Inc. mi...@tecknoquest.com