Re: Python Math and Physics problem solving

2014-05-21 Thread nishant kashyap
Hi, I am inetrested, could you please explain more about the work and project.. Thanks, Nishant Kashyap On Wednesday, 21 May 2014 18:31:04 UTC+5:30, Team UK wrote: > > Looking for a candidate who has experience in Django Python. > > You must have knowledge in Python Math and Physics problem

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

2014-05-21 Thread Kelvin Wong
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 apache/wsgi mapped to root, > but when I map wsgi to a directory, url lookups fail. > > E.g. > > Request URL:

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

2014-05-21 Thread Spaceman Paul
My application works fine in runserver and in apache/wsgi mapped to root, but when I map wsgi to a directory, url lookups fail. E.g. Request URL: http://server/awma/times ... ^times$ [name='times'] ... The current URL, times, didn't match any of these. Every single URL in the (full) list

Re: Django export the CSV file from database

2014-05-21 Thread hito koto
Sorry, It was my mistake This is correct This is my full views.py: from datetime import datetime, time, date, timedelta class workLog(object): def __init__(self, name, day, attTime, leaveTime): self.name = name self.day = day self.attTime = attTime

Re: Django export the CSV file from database

2014-05-21 Thread Andrew Farrell
So the error is somewhere here: for att in attendance: day = att[2].day But I can't see where `attendance` is defined. I suspect you'll have a similar error in for leav in leavework: day = leav[2].day But also can't see where `leavework` is defined. On Wed, May 21, 2014 at 10:24 PM, hito

Django export the CSV file from database

2014-05-21 Thread hito koto
Hello, I have the errors in the following: I don't know how can i to do ? Request Method: GET Request URL: http://articlet/export_excel/ Django Version: 1.6.2 Exception Type: AttributeError Exception Value: 'datetime.time' object has no attribute 'date' Exception Location:

Re: inspectdb and postgresql schemas support - ticket #22673

2014-05-21 Thread Russell Keith-Magee
On Thu, May 22, 2014 at 3:33 AM, Fabio Caritas Barrionuevo da Luz < bna...@gmail.com> wrote: > *Django not provides way to use inspectdb in a postgresql schema with name > different of "public"* > > If you think this is an important feature and should be included in > django, Please send your

Django - User custom field

2014-05-21 Thread Nikko Reyes
Hi I'm new to Django and I'd just like to ask what's the best way to add a custom profile field (e.g. companyid). I'm reading this: https://docs.djangoproject.com/en/1.6/topics/auth/ Should I just create 2 new apps? Company App and then User Profile app? I'm looking to use the CompanyID as a

Re: website statistics

2014-05-21 Thread chansonsyiddish
Yes, lots of! I've been using google analytics for another website for a few years, because it was easy to use, and didn't need any technical knowledge, and it works ok. But since I intend now to be more in control of what goes on, and have time to learn, I see no reason why I should go on

inspectdb and postgresql schemas support - ticket #22673

2014-05-21 Thread Fabio Caritas Barrionuevo da Luz
*Django not provides way to use inspectdb in a postgresql schema with name different of "public"* If you think this is an important feature and should be included in django, Please send your considerations and use cases to the topic:

Re: The installation instructions for Windows is based on Python 3.4 But The MySQL connectors for Python are only for 2.7, 3.2 and 3.3

2014-05-21 Thread llanitedave
On Wednesday, May 21, 2014 11:40:08 AM UTC-7, Tom Evans wrote: > > On Wed, May 21, 2014 at 12:05 AM, Varuna Seneviratna > wrote: > > The installation instructions for Windows is based on Python 3.4 But The > > MySQL connectors for Python are only for 2.7, 3.2 and 3.3

Re: The installation instructions for Windows is based on Python 3.4 But The MySQL connectors for Python are only for 2.7, 3.2 and 3.3

2014-05-21 Thread Tom Evans
On Wed, May 21, 2014 at 12:05 AM, Varuna Seneviratna wrote: > The installation instructions for Windows is based on Python 3.4 But The > MySQL connectors for Python are only for 2.7, 3.2 and 3.3 > What is the solution the problem? > PostgreSQL, sqlite or complain to

Re: website statistics

2014-05-21 Thread Andreas Kuhne
I would use google analytics for that. Any reason why you are not using google analytics? Regards, Andréas 2014-05-21 20:15 GMT+02:00 chansonsyiddish : > Thanks for your answer, Avraham, I will look into the logfile to see if I > can use that. I don't need any

Re: website statistics

2014-05-21 Thread chansonsyiddish
Thanks for your answer, Avraham, I will look into the logfile to see if I can use that. I don't need any "pretty" display, just plain visitors data, and their comportement while they visit the website. Is there someone else who'd have already done this sort of things, managing directly the

Re: function to create objects in a given model

2014-05-21 Thread chansonsyiddish
Thanks a lot, Tom, I think this is just what I need, I will try it asap and see which is better, between the two solutions. Regards, Hélène On 21/05/2014 19:35, Tom Lockhart wrote: On 2014-05-21, at 9:15 AM, chansonsyiddish >

Re: Many links to one function in url.py

2014-05-21 Thread Lucas Klassmann
Hi Jun, The diference is: With \w only one character is allowed and not allow null, like this: /link/a/ With \w+ one or more characters is allowed and not allow null, like this: /link/mypage/ With \w* zero or more is allowed and also null argument, like this: /link// (Note the double slash,

Re: function to create objects in a given model

2014-05-21 Thread Tom Lockhart
On 2014-05-21, at 9:15 AM, chansonsyiddish wrote: > Thanks, Tom, > > I'm not sure I need to use signals altogether, as I know when a Song is > added. If I make a method in the Song model, I suppose I can import the model > and run it in the shell? Or is there a way

Re: What happens when secret key is lost?

2014-05-21 Thread Tim Chase
On 2014-05-21 16:44, Erik Romijn wrote: > > Could you elaborate on how such remote-code execution would > > happen? > > If you use Django's cookie-based sessions[1], knowledge of the > SECRET_KEY allows an attacker to forge a cookie with session data. > Forging sessions is bad enough, but if

Re: Many links to one function in url.py

2014-05-21 Thread François Schiettecatte
You can also do something like this: (r'^link(?Pd+)/$', 'project.apps.main.get'), project.apps.main.get will be passed a parameter called linkID containing the number, and if you wanted to limit it to digits 1 through 4, you would use: (r'^link(?P[1-4])/$',

Re: Many links to one function in url.py

2014-05-21 Thread Tom Evans
On Wed, May 21, 2014 at 3:40 AM, Jun Tanaka wrote: > Hi there. > > > I hope to know the solution for the following: > say, there are several links to one function but I would like to identify > which link that come from. > > url.py looks > > (r'^link1/$',

Re: function to create objects in a given model

2014-05-21 Thread chansonsyiddish
Thanks, Tom, I'm not sure I need to use signals altogether, as I know when a Song is added. If I make a method in the Song model, I suppose I can import the model and run it in the shell? Or is there a way I could run it directly from the admin site? Hélène On 21/05/2014 17:15, Tom

Re: Many links to one function in url.py

2014-05-21 Thread Jun Tanaka
Hi Lucas, Thank you very much. It seems that I can use this. Hopefully, I can ask you one more question. \d+ is for a int. is \w+ for a string? What does \w* mean? I saw it. Jun 2014年5月21日水曜日 11時49分46秒 UTC+9 Lucas Klassmann: > > Hi Jun, > > Try this: > > Put only this line in urls.py > >

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

2014-05-21 Thread Aseem Bansal
I am running with DEBUG=TRUE so far On Wednesday, May 21, 2014 12:10:02 AM UTC+5:30, Adam wrote: > > On Tue, 2014-05-20 at 11:29 -0700, 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

Re: function to create objects in a given model

2014-05-21 Thread Chansons
Thanks a lot, I'll try that. Hélène Le mardi 20 mai 2014 20:50:34 UTC+2, Ilya Kazakevich a écrit : > > Hello, > > Try managers: https://docs.djangoproject.com/en/1.6/topics/db/managers/ > > Ilya Kazakevich, > JetBrains PyCharm (Best Python/Django IDE) > http://www.jetbrains.com/pycharm/ >

Re: website statistics

2014-05-21 Thread Avraham Serour
You'll need to know what information you need and how you want it to be displayed. Do you need to know how many times buttons were clicked on your website? how many times a specific page was opened, how many times a picture was downloaded? the average times some page was opened each day during

website statistics

2014-05-21 Thread Chansons
Hello, looking on the web, I didn't find any website statistics script written with python, or django. If some exist, where could I find them, and if not, what do I need to know to write my own? Thanks -- You received this message because you are subscribed to the Google Groups "Django

Re: What happens when secret key is lost?

2014-05-21 Thread Erik Romijn
On 20 May 2014, at 22:27, Tim Chase wrote: >> And yes, it is very important to keep it secret. The worst case >> scenario for secret key leakage, in particular configurations, is >> arbitrary remote code execution. > > Could you elaborate on how such remote-code

Re: What happens when secret key is lost?

2014-05-21 Thread Henning Sprang
Hi Erik, On Tue, May 20, 2014 at 8:34 PM, Erik Romijn wrote: > ... > If it were used for that, that would indeed be the scenario. Fortunately, > it's not. Good to know :) > There is a current ticket open on documenting exactly this question: >

Python Math and Physics problem solving

2014-05-21 Thread Team UK
Looking for a candidate who has experience in Django Python. You must have knowledge in Python Math and Physics problem solving, Linear algebra,nonlinear system modeling and ANN etc. -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: The Django 1.7 tees!

2014-05-21 Thread Sithembewena Lloyd Dube
Hi Russell, Thank you! I really appreciate you bringing the campaign back :) Kind regards, Sithu On Wed, May 21, 2014 at 1:35 PM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > Hi Sithu, > > Good news! It turns out you weren't the only person to have problems > placing an order, so

Re: The Django 1.7 tees!

2014-05-21 Thread Russell Keith-Magee
Hi Sithu, Good news! It turns out you weren't the only person to have problems placing an order, so we've re-opened the campaign for one last run to make sure everyone who wants a shirt can get one. You can place your order here: http://teespring.com/django17-v2 You have until the end of May.

Re: Django export the CSV file of objects form databas

2014-05-21 Thread hito koto
Ok, thank you! 2014年5月21日水曜日 15時04分09秒 UTC+9 Erik Cederstrand: > > Den 21/05/2014 kl. 05.21 skrev hito koto : > > > > Hello, > > > > I have the following errors: why append is not done? > > > > row = [[0 for i in range(5)] for i in range(31)] > > Here you are

Re: Django export the CSV file of objects form databas

2014-05-21 Thread Erik Cederstrand
Den 21/05/2014 kl. 05.21 skrev hito koto : > Hello, > > I have the following errors: why append is not done? > > row = [[0 for i in range(5)] for i in range(31)] Here you are creating a list of lists of 0's (a 2-dimensional matrix of ints). > for a in