Model Error

2013-06-18 Thread Nigel Legg
I have been working through the tutorial, "Writing your first Django app, part 1", at https://docs.djangoproject.com/en/1.5/intro/tutorial01/. I have the following model code: from django.db import models import datetime from django.utils import timezone class TextFile(models.Model): tfile =

Re: looking for an apache/system admin master

2013-06-18 Thread Nick Apostolakis
Matt, setting up ssl with apache is no big deal. Most mainstream distributions offer detailed documentation on how to do that, with ready precompiled packages. You do not have to use a different OS or a different server. If you are using either a redhat/fedora/centos flavor or a debian flavor,

Re: looking for an apache/system admin master

2013-06-18 Thread Sergiy Khohlov
Hello, If you know this IP you can block it using firewall rules. It is possible to reject this traffic and next time attacker be blocked by router not you host. In this case stop traffic as early as possible is not bad strategy. Many thanks, Serge +380 636150445 skype: skhohlov On

Re: looking for an apache/system admin master

2013-06-18 Thread MattDale
Thanks for the reply. I had no idea things like munin or graphite existed. Graphite looks really interesting. I'm honestly worried because I feel that since I'm new to setting up Apache servers that I can make a mistake that may be detrimental to my company's network and information. Our

Re: Django tutorial part 1 (Using the api, p.choice_set.all() displays choices in reverse order)

2013-06-18 Thread Dandall Von
Thanks for succinctly educating me on this matter. I thought it was a quirk but now I know. On Tuesday, June 18, 2013 5:11:07 AM UTC-7, Jani Tiainen wrote: > > On Mon, 17 Jun 2013 21:34:00 -0700 (PDT) > Dandall Von wrote: > > > I have successfully setup Django with

Re: user authentication with extended (AbstractUser) user model

2013-06-18 Thread Russell Keith-Magee
On Tue, Jun 18, 2013 at 11:37 PM, Evan Stone wrote: > Russ, > > Thanks so much for getting back to me! I shouldn't have posted that > without my code in front of me... (was posting from my phone, in bed) > > It turns out that I did NOT have AUTH_USER_MODEL set. I had >

Re: looking for an apache/system admin master

2013-06-18 Thread Joseph Mutumi
If they are requesting urls that do not exist why are you worried? Just block that IP address in the vhost configuration and continuously monitor the server for strange or unexpected traffic. You can look into something like munin or graphite. On Tue, Jun 18, 2013 at 8:26 PM, MattDale

Re: Problem setting up django server

2013-06-18 Thread Rafael E. Ferrero
i'll recomend to you... to remove and reinstall (or upgrade) your python from 2.6 to 2.7, remove and reinstall django 1.5... so you can take a fresh start. https://docs.djangoproject.com/en/1.5/intro/install/ cheers 2013/6/18 Nick Dokos > smy28

Re: Problem setting up django server

2013-06-18 Thread Nick Dokos
smy28 writes: > Okay, so I ran python manage.py shell and I got the following error: > TypeError: Error when calling the metaclass bases > __init__() keywords must be strings > I'd suggest that you remove everything and start from scratch. Make sure that all the

Re: Problem setting up django server

2013-06-18 Thread Michael Anckaert
On 18/06/13 17:46, smy28 wrote: > No, I haven't edited anything yet. Okay, I attached a models.py file > from django/contrib/auth > > On Tuesday, June 18, 2013 11:39:09 AM UTC-4, Michael Anckaert wrote: > > On 18/06/13 17:37, smy28 wrote: >> Yes, I have attached the base.py file (which

Re: Problem setting up django server

2013-06-18 Thread Randy Baxley
Glad and sad that you are going through this. Sad in that the process seems too complicated. Glad in that I have failed miserably in trying to get virtualenv, vagrant, and other packages to install both in Windows and in Xubunto. I have run python27 and 33 without problems but even in the 27

looking for an apache/system admin master

2013-06-18 Thread MattDale
I've been using windows/django1.4/apache2.2 for a couple intranet apps and it has been working well. I recently had our admin open up a port in our firewall to deploy another app publicly. We weren't using the app and there were issues when testing, since both the admin and myself are newbies

Re: Problem setting up django server

2013-06-18 Thread smy28
Okay, so I ran python manage.py shell and I got the following error: TypeError: Error when calling the metaclass bases __init__() keywords must be strings On Tuesday, June 18, 2013 11:10:10 AM UTC-4, Roberto wrote: > > Are you in a virtualenv? Can you run $python manage.py shell? > > Which

Re: Problem setting up django server

2013-06-18 Thread smy28
No, I'm not in a virtualenv. This is my first time using python, so bear with me! I just installed the v2.7 dmg, but I'm not sure what else I need to do to get it running. On Tuesday, June 18, 2013 11:10:10 AM UTC-4, Roberto wrote: > > Are you in a virtualenv? Can you run $python manage.py

Django-filter Tastypie all fields

2013-06-18 Thread Hélio Miranda
Hi! I'm doing a project with django-tastypie and know how to set a field to filter by, thus: filtering = { 'nationality': ALL, } What I want to know is if there was some setting that would allow me to have all the fields available for filtering, without having to be set one by one as

Re: Problem setting up django server

2013-06-18 Thread smy28
No, I haven't edited anything yet. Okay, I attached a models.py file from django/contrib/auth On Tuesday, June 18, 2013 11:39:09 AM UTC-4, Michael Anckaert wrote: > > On 18/06/13 17:37, smy28 wrote: > > Yes, I have attached the base.py file (which seems to be the one with the > error,

Re: Problem setting up django server

2013-06-18 Thread Michael Anckaert
On 18/06/13 17:37, smy28 wrote: > Yes, I have attached the base.py file (which seems to be the one with > the error, correct?) > > On Tuesday, June 18, 2013 11:11:52 AM UTC-4, Michael Anckaert wrote: > > On 18/06/13 17:00, smy28 wrote: > > I just installed Django and I'm trying to

Re: user authentication with extended (AbstractUser) user model

2013-06-18 Thread Evan Stone
Russ, Thanks so much for getting back to me! I shouldn't have posted that without my code in front of me... (was posting from my phone, in bed) It turns out that I did NOT have AUTH_USER_MODEL set. I had AUTH_PROFILE_MODULE set. I changed it to AUTH_USER_MODEL and followed the custom user

Re: Problem setting up django server

2013-06-18 Thread smy28
Yes, I have attached the base.py file (which seems to be the one with the error, correct?) On Tuesday, June 18, 2013 11:11:52 AM UTC-4, Michael Anckaert wrote: > > On 18/06/13 17:00, smy28 wrote: > > I just installed Django and I'm trying to initially set up the server, > > as detailed in the

Re: Problem setting up django server

2013-06-18 Thread Roberto
Are you in a virtualenv? Can you run $python manage.py shell? Which version of python have you installed? Django v1.5 requires python >= v2.6.5, and from your stacktrace it seems you just have v2.6. https://docs.djangoproject.com/en/1.5/faq/install/#what-are-django-s-prerequisites On Tuesday,

Re: Problem setting up django server

2013-06-18 Thread Michael Anckaert
On 18/06/13 17:00, smy28 wrote: > I just installed Django and I'm trying to initially set up the server, > as detailed in the 'Part 1' Tutorial. I haven't configured any > settings yet. Whenever I run the command "python manage.py runserver", > I get the following message: > > > > Validating

Problem setting up django server

2013-06-18 Thread smy28
I just installed Django and I'm trying to initially set up the server, as detailed in the 'Part 1' Tutorial. I haven't configured any settings yet. Whenever I run the command "python manage.py runserver", I get the following message: Validating models... Unhandled exception in thread

m2m_changed signal registration

2013-06-18 Thread Roberto López López
Hi, I am having trouble registering a function to the m2m_changed signal. My code is as follows: 1. from django.db.models.signals import m2m_changed 2. from django.db import models 3. from django.dispatch.dispatcher import receiver 4. 5. class Project(models.Model): 6. employees =

Re: Problem when creating a form for adding users to groups

2013-06-18 Thread Sergiy Khohlov
Which one error ? Many thanks, Serge +380 636150445 skype: skhohlov On Tue, Jun 18, 2013 at 1:56 PM, Lucas Lins wrote: > Hi. > I ran into a problem and have searched the group, in the official django > and the internet and could not solve the problem. > I created a

Re: Django tutorial part 1 (Using the api, p.choice_set.all() displays choices in reverse order)

2013-06-18 Thread Jani Tiainen
On Mon, 17 Jun 2013 21:34:00 -0700 (PDT) Dandall Von wrote: > I have successfully setup Django with postgreSQL and everything is fine > except for a minor problem. > > One the very last section of the the tutorial part 1 where we type > p.pchoice_set.all(), it displays

Problem when creating a form for adding users to groups

2013-06-18 Thread Lucas Lins
Hi. I ran into a problem and have searched the group, in the official django and the internet and could not solve the problem. I created a form that lists all the groups created and all user created and this adds form users within groups. Already tried two ways and both give error form.py

Django tutorial part 1 (Using the api, p.choice_set.all() displays choices in reverse order)

2013-06-18 Thread Dandall Von
I have successfully setup Django with postgreSQL and everything is fine except for a minor problem. One the very last section of the the tutorial part 1 where we type p.pchoice_set.all(), it displays the choices in the reverse order. For example I get: Just hacking again, The sky, Not much

save date in one format in Django

2013-06-18 Thread Sivaram R
forms.py DATE_INPUT_FORMAT = ( ('%d/%m/%Y','%m/%d/%Y') ) class ReportDatetimeForm(forms.ModelForm): manual_date = forms.DateField(input_formats = DATE_INPUT_FORMAT, widget=forms.DateInput(attrs={'size':'15','id':'datepicker','readonly':'readonly'})) class Meta: model = Report fields =

ANN: eGenix mxODBC Django Database Engine - Django ODBC Adapter 1.2.0

2013-06-18 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix.com mxODBC Django Database Engine MS SQL Server ORM and ODBC Adapter for the Django Web Framework Version 1.2.0 The

Re: How to create screen capture of website

2013-06-18 Thread codingdaddy
Thanks for your answer. I'll give it a try! On Monday, June 17, 2013 1:00:56 AM UTC+9, Brad Pitcher wrote: > > You could get a screenshot using selenium running in headless mode: > > #!/usr/bin/env python > from selenium import webdriver > from pyvirtualdisplay import Display > > display =