Hope you are asccessing via browser...
Few questions needs to be answered here :
- Is firewall enabled and you are blocked for the port you are tying
to access ?
- are you able to ping from the windows mahcine to the linux machine ?
On Dec 15, 12:13 pm, "'chiru'tha"
On Dec 15, 4:51 am, "thai.pham" wrote:
> Hello, I don't know if it is suitable to post such a question right
> here. Anyway, I have a simple model as below:
>
> def acct_data(models.Model):
> timestamp = models.DateTimeField();
> msg_type = models.IntegerField();
>
On Mon, 2009-12-14 at 17:44 -0800, Tracy Reed wrote:
> I have code which looks basically like this:
>
> now= datetime.today()
> beginning = datetime.fromtimestamp(0)
> end= now - timedelta(days=settings.DAYSTOKEEP)
>
> def purgedb():
> """Delete archivedEmail objects from
Hey i created a django project on linux read hat, and started the
server.. now i want to access the server from the windows browser. bt
it displays the diagnostic error, cont be able to connect to the
server. can any one help me what the actual problem is..
thank u.
--
You received this message
great. I just happened to finish reading the poll tutorial in
djangproject.com.
it will be really helpful.
On Dec 15, 6:31 am, Manu wrote:
> Hi all,
>
> Following the announce of some tools of mine (obviews)... I've just
> add a practical example, inspired from django
Hi timjdavey,
You have to replace spaces in your key
see: http://www.cppreference.com/wiki/c/string/isspace
try the same in the terminal with spaces ...
Seems to be bee a bug in cmemcache.
Hope i could help you or someone else,
Rene Jochum
On 9 Nov., 11:46, timjdavey
Hi, all.
Are there any way could keep a attribute new set to a item in QuerySet
object ?
For example:
>>> tcs = TestCase.objects.filter(case_id__in = [1123, 1124, 1125])
>>> tcs
[, , ]
>>> tc = tcs[1]
>>> setattr(tc, 'selected_param', [])
>>> tc.selected_param
[]
>>> tcs[1].selected_param
Try using a) queryset.iterator() to iterate through the results and b)
paginating the results. Otherwise you run the risk of loading all the
results into memory at once,
On Dec 15, 1:44 am, Tracy Reed wrote:
> I have code which looks basically like this:
>
> now =
On Tuesday 15 Dec 2009 9:07:38 am Kenneth Gonsalves wrote:
> > I tried another browser - same problem of erratic behaviour, at times
> > login works, at other times it does not - forms on site work, but forms
> > in admin do not work. Then I thought maybe my webserver was giving the
> >
Hello, I don't know if it is suitable to post such a question right
here. Anyway, I have a simple model as below:
def acct_data(models.Model):
timestamp = models.DateTimeField();
msg_type = models.IntegerField();
username = models.CharField();
session_id = models.CharField();
Now
Russ,
Yep your right, it worked
I was expecting to see something like this:
Password:***
Thanks for your quick response
Chris
On Dec 15, 2:56 pm, Russell Keith-Magee
wrote:
> On Tue, Dec 15, 2009 at 11:34 AM, Christopher Bird
>
>
On Tue, Dec 15, 2009 at 11:34 AM, Christopher Bird
wrote:
> has anyone else had trouble with creating a password with the
> manage.py createsuperuser
>
> I ran the command, then asks for my email and user name,
> then it when it gets the password it wont let me type
has anyone else had trouble with creating a password with the
manage.py createsuperuser
I ran the command, then asks for my email and user name,
then it when it gets the password it wont let me type anything.
All i can do is press enter, and then returns
"passwords cannot be blank"
I've got
On Tuesday 15 Dec 2009 7:13:04 am Kenneth Gonsalves wrote:
> > hmm, never happened to me there, I suggest trying another browser. If it
> > still continues, no clue, sorry.
> >
>
> I tried another browser - same problem of erratic behaviour, at times
> login works, at other times it does not
Using the prepopulate attritube in the admin section of Django you can
auto create a slug. Is adding to to forms.py planned at any time? For
example I am having users add something to a database and I want to
create slugs off the names so then they can go view them at /item/name
but in order to do
I deployed on on EC2 using apache + mod_wsgi and it worked.
My APS setup is as follow:
def start_notificator():
sched = Scheduler()
sched.add_interval_job(notificator.send_notification, seconds=10)
sched.daemonic = True
t = Thread(target=fire_scheduler,
On Mon, Dec 14, 2009 at 3:51 PM, tpwright wrote:
>
> Have I done something wrong? Can someone direct me as to where to look
> for my mistake?
>
>
No, you have not done anything wrong. The admin code has changed since
those screenshots were made. Specifically, the fix for
On Tuesday 15 Dec 2009 7:05:40 am Mike Ramirez wrote:
> On Monday 14 December 2009 17:19:02 Kenneth Gonsalves wrote:
> > I cleared all cookies - now all forms have stopped working with 'cookie
> > not set' csrf error.
> >
>
> hmm, never happened to me there, I suggest trying another browser. If
I have code which looks basically like this:
now= datetime.today()
beginning = datetime.fromtimestamp(0)
end= now - timedelta(days=settings.DAYSTOKEEP)
def purgedb():
"""Delete archivedEmail objects from the beginning of time until
daystokeep days in the past."""
On Monday 14 December 2009 17:19:02 Kenneth Gonsalves wrote:
> I cleared all cookies - now all forms have stopped working with 'cookie not
> set' csrf error.
>
hmm, never happened to me there, I suggest trying another browser. If it still
continues, no clue, sorry.
Mike
--
Excerpts From The
Using the 'django.contrib.sessions.backends.cached_db' and setting
SESSION_COOKIE_AGE to any number of seconds greater than 2592000 (i.e.
> 30 days) with memcached appears not to work as intended in that the
session info is never sent back from the cache.
Examples to illustrate:
Memcached
Have you consider the linux at command instead of cron?
Example:
echo "touch /home/mateusz/my.name.is.at" | at 02:30
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To
On Tuesday 15 Dec 2009 6:39:10 am Kenneth Gonsalves wrote:
> On Tuesday 15 Dec 2009 6:36:44 am Mike Ramirez wrote:
> > > problem has cropped up again - I can login, forms work on the website,
> > > but not in admin. Login works in admin, but all other forms in admin do
> > > not work - giving the
On Tuesday 15 Dec 2009 6:36:44 am Mike Ramirez wrote:
> > problem has cropped up again - I can login, forms work on the website,
> > but not in admin. Login works in admin, but all other forms in admin do
> > not work - giving the csrf error. I am stuck.
> >
>
> can you be more explicit with the
On Tuesday 15 Dec 2009 6:24:29 am Kenneth Gonsalves wrote:
> On Monday 14 Dec 2009 4:59:57 pm Kenneth Gonsalves wrote:
> > On Monday 14 Dec 2009 4:20:54 pm Kenneth Gonsalves wrote:
> > > I just upgraded to the latest trunk. I get csrf cookie not set error on
> > > attempting to log in - both on
On Monday 14 December 2009 16:54:29 Kenneth Gonsalves wrote:
> problem has cropped up again - I can login, forms work on the website, but
> not in admin. Login works in admin, but all other forms in admin do not
> work - giving the csrf error. I am stuck.
>
can you be more explicit with the
On Monday 14 Dec 2009 4:59:57 pm Kenneth Gonsalves wrote:
> On Monday 14 Dec 2009 4:20:54 pm Kenneth Gonsalves wrote:
> > I just upgraded to the latest trunk. I get csrf cookie not set error on
> > attempting to log in - both on site and in admin. I have added the
> > middleware as prescribed
Hello all,
On Dec 14, 3:57 pm, Brian Neal wrote:
> http://docs.djangoproject.com/en/dev/howto/custom-management-commands/
Thanks for answering Brian! Saved me having to do that part
myself! :-)
Tim, I did it the python script way at first but have been moving
over the the
On Monday 14 Dec 2009 4:51:19 pm Gopalasivam Palaniappan wrote:
> > I just upgraded to the latest trunk. I get csrf cookie not set error on
> > attempting to log in - both on site and in admin. I have added the
> > middleware as prescribed and also added the {% csrf_token %} within the
> > form in
On Dec 14, 12:27 pm, Tim Daniel wrote:
> ...
>
> Creecode what do you mean with "custom management commands"? I just
> wrote a simple python script that can be called from bash like this
> python myscript.py, inside it I set up the enviroment to be able to
> call my
2009/12/14 NMarcu :
> Hi all,
>
> How can I do, to not let the same user to be logged from 2
> different location, in the same time. I want, when a user admin is
> login, and another user try to login with the same user admin, to have
> a message, you are already login.
I wonder if it's possible to store flatpages outside the database? It would
be great if eg. the path to a title file and content file could be put into
the flatpage database table (instead of entering the title and content
directly). While I can simply copy files from a development computer to a
Create method on your model that generates anchor (html link tag)
which points to wanted URL and put that methods name in list_display
property of AdminModel object in your admin.py
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_display
--
You
Andy, I couldn't manage it. Could you (please) give me some example?
It looks like this case is NOT simple at all, googling through
multiple websites didn't bring anything even close to required
solution.
MODEL:
class Property(models.Model):
name = models.CharField(max_length=200)
On Dec 15, 4:13 am, Continuation wrote:
> When using get_or_create(), when created=True, is there any way to
> make it so that it creates an object without saving it to DB?
>
> I want to take the newly created object, do some validation tests, and
> only save it to DB if
Hi all,
Following the announce of some tools of mine (obviews)... I've just
add a practical example, inspired from django tutorial on polls.
The theory is on a standalone page describing the views used in this
simple poll application (http://www.obviews.com/polls/)... Anyhow,
somones need a few
On Mon, Dec 14, 2009 at 5:12 PM, Guilherme Cavalcanti
wrote:
> If are you going to choose A, take a look on Advanced Python Schedule
> (http://apscheduler.nextday.fi/). It's a python module that let you
> schedule some script to be executed periodically, it really makes
If are you going to choose A, take a look on Advanced Python Schedule
(http://apscheduler.nextday.fi/). It's a python module that let you
schedule some script to be executed periodically, it really makes the
job easier.
On Dec 14, 3:27 pm, Tim Daniel wrote:
> Thanks for
The first "Polls" is the app(folder within your project that contains
your models, views, etc) you are referring to, and the second "Polls"
is the specific Object you have registered to the Admin.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
On Mon, Dec 14, 2009 at 12:17:31PM -0800, Almost George wrote:
> An Attendee, being added to an Event, must already exist in the
> system. If the given Attendee doesn't exist, the user should be
> prompted to create it/them (validly) before continuing further.
>
> Likewise when selecting the
I am new to Django and, for that matter, pretty new to web
development. That said, I am working my way through the Django
tutorial and have gotten to the admin site and have (I thought)
meticulously followed the tutorial's instructions. When I select the
"Polls" frame on the home page, I am
On Dec 14, 3:04 pm, Shawn Milochik wrote:
> Okay, here are a few ideas:
>
> 1. If you hate pop-ups, but aren't opposed to a little AJAX, then you could
> do it that way.
>
> 2. You could do it with a multi-screen, 'wizard-like' set of templates.
>
> 3. You can keep state
Okay, here are a few ideas:
1. If you hate pop-ups, but aren't opposed to a little AJAX, then you could do
it that way.
2. You could do it with a multi-screen, 'wizard-like' set of templates.
3. You can keep state using session variables.
4. If you don't want to worry about keeping session
The PostgreSQL Conference East is looking for Django developers to speak
on using Django with PostgreSQL. This is an excellent opportunity for
Django developers so show their aptitude with PostgreSQL as well as
learn from PostgreSQL Experts on how to best optimize, configure and
administrate
On Dec 14, 2:23 pm, Shawn Milochik wrote:
> What you're trying to do is simple enough to write out in flowchart form on a
> sheet of paper. You should do that, then write some code, then ask for help
> with specifics when you get stuck, or are trying to decide between
Maybe everyone knews about this, but I didn't and searching across the
web I found many sophisticated and weird methods to handle html
entities.
But so far there is a module xml.sax.saxutils, which together with
urlib.quote*() and urlib.unquote*() provides every possible conversion/
What you're trying to do is simple enough to write out in flowchart form on a
sheet of paper. You should do that, then write some code, then ask for help
with specifics when you get stuck, or are trying to decide between different
approaches. What your e-mail sounds like, whether you intend it
I have a working site, and the admin works fine for what I'm doing. I
have 3 primary models: an Event, an Attendee, and a Venue.
In the admin, an Event created *must* have at least one Attendee, and
must, obviously, have a Venue (location).
I'd like to open up the site for user submissions
Hi all,
How can I do, to not let the same user to be logged from 2
different location, in the same time. I want, when a user admin is
login, and another user try to login with the same user admin, to have
a message, you are already login. How can I do something like this?
All the best,
Nicu
Could someone point me in the right direction on how to save a file
object to a FileField in a model? When I try assigning the file object
directly to the FileField field, I get an atrribute error:
myfile = open('/home/sample.txt', 'wb')
mymodelinstance.resultFile=myfile
mymodelinstance.save()
Hi,
I found out this one by myself. I noticed the curious linebreak in the
piece of code I had enclosed in my post. It turned out that this was
due to the text editor I used in the shell, called "Nano". When you
open a file in this editor you have to add the argument -w, otherwise
it will break
Hi,
What's the state of the art for using non-model Users with the admin
app? The documentation still says it's best to translate your remote
authentication into django.contrib.auth.models User instances when you
want to support the admin app [1], but I wonder if anyone has
experience to share
I posted this in StackOverflow but didnt get any helpful responses so
I'd like to ask the Django mailing list.
I have two questions:
1) Is it possible to associate different initial data for each form in
a Django formset?
(http://stackoverflow.com/questions/1897756/different-initial-data-
I found this thread:
http://groups.google.com/group/django-users/msg/11b034152c9dff1a
Does anyone have more details on urlize?
On Dec 14, 1:16 pm, Zeynel wrote:
> In my models I have this field
>
> firm_url = models.CharField('Bio', max_length=200)
>
> that should have a
Thanks for answering, I think I'm going to go with 'A' too.
Guilherme I've had already looked after django-cron but don't know why
but it doesn't seem to work well, I've tried to increment a simple
counter in the database every 30 seconds and it doesn't work(using the
development server with
In my models I have this field
firm_url = models.CharField('Bio', max_length=200)
that should have a link to the website where the lawyer bio is. This
is in the admin. I thought that
firm_url = models.URLField('Bio', max_length=200)
would make the url appear as a link; but it doesn't;
When using get_or_create(), when created=True, is there any way to
make it so that it creates an object without saving it to DB?
I want to take the newly created object, do some validation tests, and
only save it to DB if it passes all tests.
--
You received this message because you are
I've got a project named djangocart. I'm not releasing it to
production - it is just a personal project that I want to serve from
Apache on XAMPP rather than Django's server. I'm using mod_python
rather thjan mod_wsgi.
I place it at c:\xampp\htdocs
By adding the following to httpd.conf the site
Thanks Karen I was having this issue as well no need to ask! you
rock!
On Nov 8, 6:01 pm, Karen Tracey wrote:
> On Sun, Nov 8, 2009 at 11:58 AM, Zeynel wrote:
>
> > Hi again,
>
> > Thanks for the help so far.
>
> > I am now working on the part 2 of
2009/12/14 fredlab :
> Hey,
>
> I've looking for hours and I could not find what I am looking for. It
> is probably a basic question but I am a newcomer to Django (will
> probably forget PHP in a few days !!!).
>
> Imagine I have a blog post application but many users can
Thank you, I'm gonna try this way :)
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
Ah, thx for pointing this out.
-wes
On Mon, Dec 14, 2009 at 8:58 AM, David De La Harpe Golden
wrote:
> http://www.djangoproject.com/foundation/cla/
>
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
>
A filter can take a python dictionary. So all you have to do is:
Property.objects.filter(**some_dictionary)
All you have to do is populate that dictionary. You can do that by
accessing request.get, but the best way is to pass that into a django
form.
--
Andy McKay, @clearwind
http://www.djangoproject.com/foundation/cla/
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
As far as I know they can't, since the code was committed under a BSD
license, the only thing they could do is go after their employee, but I
may be wrong.
Gabriel
Wes James wrote:
> Say a user contributes code to the django project but they have
> already signed a contract at their company
Say a user contributes code to the django project but they have
already signed a contract at their company that says all code they
write at work belongs to the company. The company then finds out the
user has given this code to the django project. They come after the
django project. How does
Thank you very much, it is excactly what I'm searching.
Regards,
Mateusz
P.S. For other people which have this problem, to get rid with '+'
signs instead of spaces, there is a method called urllib.unquote_plus
():
>>> urllib.unquote_plus('%3Cp%3E+hello+world+%3C%2Fp%3E')
' hello world '
--
That post wasn't clear, my bad.
Again:
t=request.GET['city']
c=request.GET['category']
s=request.GET['status']
properties = Property.objects.filter( Q(city=t) | Q
(category=c ) | Q(status=s) ) #example filter
On the website I've implemented search engine with 3
Hi Kevin,
> I am using Jinja2 instead of the Django template system
>
I'm too. Django Templates is really slow and unhandily.
> Would it be a good idea suggest this in a ticket?
>
Yes. + create option "nocomments" because is bad to merge.
--
You received this message because you are
>>> urllib.unquote('%3Cp%3E+hello+world+%3C%2Fp%3E')
'+hello+world+'
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
OK, I think I've answered my own question, though I'll need to test
it.
Instead of overriding FooModelForm's __init__(), I'd just create
create a FooModelForm with "FooModelForm (initial = {'bar':
some_bar})". I also detected some naming errors since my last post.
On Dec 12, 11:03 am, Aaron
It sounds like, for auditing purposes, there should be a model for storing each
"hours worked" entry.
Also, the hours estimated should not be reduced in the database -- there should
be a method of your model which returns the remaining hours by subtracting the
sum of the worked hours from the
Hey,
I've looking for hours and I could not find what I am looking for. It
is probably a basic question but I am a newcomer to Django (will
probably forget PHP in a few days !!!).
Imagine I have a blog post application but many users can create
posts. A post is written by a user. In the admin
Tim, recently I've used the solution A too.
Take a look on these plugins:
http://code.google.com/p/django-cron/
http://code.google.com/p/django-jits/
http://github.com/jtauber/django-notification/blob/master/docs/usage.txt
Pay attention specially on django-jits, it uses a little different
hi,
I have the following project structure
/apps
/externals
/static
/templates
settings.py
manage.py
under the externals I have already translated applications that are
developed outside my system (e.g. django-registration), under apps, I
have some custom built applications (e.g. a custom
Hi,
at
http://git.debian.org/?p=iso-codes/iso-codes.git;a=tree;h=8e097c154f64de7d1ffaa7e0b4d9c459298766f2;hb=8e097c154f64de7d1ffaa7e0b4d9c459298766f2
there are po files on hundreds of languages with all the currency, country
and language names.
to me such a resource would be great to be easily
Hi,
I have a Model which tracks tasks for a project. This model should
have
- hours estimated
- hours worked
on it.
Everytime someone updates one of those fields, the hours worked should
be increased and should also be stored to be used for time reporting.
e.g. hours worked: 12.21.09 2 hours,
Hi,
I am using Jinja2 instead of the Django template system in a test
project. Everything is working fine, but I am running into a small
problem regarding i18n:
The command "django-admin makemessages" doesn't find the translation
strings, because the Jinja2 format differs from the Django format.
> I just upgraded to the latest trunk. I get csrf cookie not set error on
> attempting to log in - both on site and in admin. I have added the middleware
> as prescribed and also added the {% csrf_token %} within the form in my login
> form. I am not using a custom view as I am using the auth
Hi all,
I want to add the ability to tag objects, and then to vote on the
tags. So for example, users of certain groups will be able to add new
tags, while other users will only be able to vote up (if they agree
this tagging is correct) or down (if they disagree).
Anyone knows a pluggable app I
I have simple form:
When submitting " hello world ", browser (firefox) sends
something like
"%3Cp%3E+hello+world+%3C%2Fp%3E
What is the preffered way to decode this string in python/django
(maybe built in function or smth)?
--
You received this message because you are subscribed to the
On Monday 14 Dec 2009 4:20:54 pm Kenneth Gonsalves wrote:
> I just upgraded to the latest trunk. I get csrf cookie not set error on
> attempting to log in - both on site and in admin. I have added the
> middleware as prescribed and also added the {% csrf_token %} within the
> form in my login
when I use django admin create a new book auther ( order the django book
introduction )
but the "headshot" still is required
and, if give any img
the error as follows,
Attempted access to '/tmp/avatar_005.jpeg' denied.
Request Method: POST
Request URL:
hi,
I just upgraded to the latest trunk. I get csrf cookie not set error on
attempting to log in - both on site and in admin. I have added the middleware
as prescribed and also added the {% csrf_token %} within the form in my login
form. I am not using a custom view as I am using the auth
Suppose I have the following in app 'app'.
from django.db import models
class Test(models.Model):
"""
>>> v = "Hello, world!"
>>> import pdb; pdb.set_trace()
"""
Running manage.py test app will drop me to an interactive debugger
mode but no output. How to execute the usual p, j, s
On 12 déc, 18:15, Baurzhan Ismagulov wrote:
> Hello,
>
> Another named URL question. I have the following pattern:
>
> (r'^app/(?P\d+)/$', create_update.update_object,
> {'model': App}, 'app-edit'),
>
> Now, using {% url 'app-edit' object.pk %} in a form throws
>
On 12 déc, 21:25, Alex Rades wrote:
> Hi,
>
> I have a master template which defines two blocks:
>
> {% block account %}{% endblock %}
> {% block content %}{% endblock %}
>
> I have a templatetag which tells me the time of the last image upload
> (it's a photo sharing site).
>
87 matches
Mail list logo