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 =
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,
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
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
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
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
>
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
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
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
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
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
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
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
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
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
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,
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
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
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
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,
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
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
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 =
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
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
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
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
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 =
ANNOUNCING
eGenix.com mxODBC Django Database Engine
MS SQL Server ORM and
ODBC Adapter for the Django Web Framework
Version 1.2.0
The
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 =
30 matches
Mail list logo