On 3 April 2010 06:49, Enpaksh wrote:
> Thanks this was my understanding. It looks like i have to route the url to
> view and thn make a call urlopen().read() to fetch the file from different
> server.
I'm not too sure how to do it with apache2, but can't you just proxy
off
Hey All,
Im wondering if anyone has some good links to geodjango tutorials
(outside of the main one featured on geodjango.org)? Specifically any
related to Google Map integration (since that subsection appears to be
missing in the current doc's).
Thanks
Ben
--
You received this message
I've heard some reliability issues wth fcgi.
You might want to check out uWSGI. it's somewhat like mod_wsgi, but it
works on nginx too.
On Apr 2, 1:26 pm, John Handelaar wrote:
> Hola
>
> I'm having trouble with porting a Django site, which currently uses
> apache2 and
On Apr 2, 3:48 pm, Sam Lai wrote:
>
> And that should work. You need to make sure you have the right imports
> for the various classes. I tend to define my forms in a separate
> forms.py but that's up to you.
Sam, you're a genius - that worked perfectly. Thanks SO much. I
On 3 April 2010 08:44, Scot Hacker wrote:
> Sorry for long delay on this thread. Back at the problem now.
>
> On Mar 25, 1:22 am, Sam Lai wrote:
>> On 25 March 2010 09:25, Scot Hacker wrote:
>
> OK I've got something similar
Thanks this was my understanding. It looks like i have to route the
url to view and thn make a call urlopen().read() to fetch the file
from different server.
Enpaksh Airon
Sent from my iPhone
On Apr 2, 2010, at 3:20 PM, orokusaki wrote:
On Apr 2, 11:30 am,
How can show two different views in one admin view(change_form.html)?
I have a custom change_form.html for a model view. In that model's
view, I want to include another view
I tried the following but it shows same view again
{% for fieldset in adminform %}
{% include
Sorry for long delay on this thread. Back at the problem now.
On Mar 25, 1:22 am, Sam Lai wrote:
> On 25 March 2010 09:25, Scot Hacker wrote:
>
>
>
> >
> > It sounds like you're saying that the model method is not
> > attaching to an instance like it
I know that I used (some revision of) that snippet a while back.
Realize that what it stores is a string, containing digits and commas.
The to_python and get_db_prep_value methods are responsible for
converting between that database single string and a list of strings,
not integers. You can use
Hi,
I use simply {{zform.as_table}} for rendering my form...
Thanks.
02 Nisan 2010 20:43 tarihinde Bill Freeman yazdı:
> You are discarding the result of your first render_to_response and displaying
> the second, which is always an empty form (except when the form is valid,
>
Yes, select box 1 presents a list of choices. Based on the selected
choice, a select box 2 shows up. Select box 2's choices are foreign
keys of the choice the user selected in select box 1.
This process needs to loop until the user is done. So the user could
run through select box 1 --> select
On Apr 2, 4:21 pm, Media Server setup wrote:
> Hello,
>
> I have recently setup a Media server on a different box which I would
> like to use to serve static files to my django application. I
> personally find django documentation to be vague on this particular
> topic and I
Sorry. I pasted code that I was experimenting with. I thought maybe
the validation code was looking for strings because that is what the
error code said it was looking for. Before that I had been using
integers and that doesn't seem to work either. I am wondering if this
is a bug in Django 1.2. I
You can put a snippet in a separate template file and {% include %} it
twice from the
same pages specific template. I frequently do this in a for loop for rendering
more complex list items on more than one page, so I have one place to define
how a list item looks. But including it directly twice
You have to use ``auth.models.User`` if you want to enjoy all the
benefits of the auth system. Just create a model and make a onetoone
to User.
On Apr 2, 8:22 am, Heit wrote:
> Hello,
>
> I'm newbie in django, reading documentation i understood that django
>
On Apr 2, 11:30 am, Dexter wrote:
> Hi,
> > Can someone please
> > explicitly specify what needs to go in MEDIA_URL and MEDIA_ROOT and
> > how does urls.py routes to a cross domain media server. I am not
> > interested in any local directory structure to accomplish this task
The problem is that you're using '1' instead of 1. The comma
separated integer list is expecting integers not strings. The reason
you're seeing u'1' is because it's being turned from a string to a
unicode object.
Try this instead:
SOME_CHOICES = ((1, 'ch1'),(2, 'ch2'), (3, 'ch3'),(4, 'ch4'))
Hey Matt,
If you're trying to use the same template twice in the same request,
you might want to reconsider a few things about the design, such as:
You may want to use an include instead, or you may want to use a loop
inside your template. Either way, here's one way to achieve that if
I'm simply
On Fri, Apr 02, 2010 at 06:26:02PM +0100, John Handelaar wrote:
> Hola
>
> I'm having trouble with porting a Django site, which currently uses
> apache2 and mod_python with Wordpress running at /blog/, to nginx.
>
> I have several other sites which use a fastcgi process and Django as
> the root
So what your saying is that I'm not using CommaSeperatedIntegerField
for its intended purpose? I should think about writing a set of custom
fields? I just assumed support for this type of thing was built in. I
will keep hunting.
On Apr 2, 1:50 pm, Bill Freeman wrote:
> I once
Is there a way to use a template twice on the same page? We don't want
to have to create a duplicate template just for a different variable.
Thanks for the help
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email
Hi,
I don't have any experience with lighthttpd, but I guess you shouldn't use
django for serving your static files.
You should redirect your domain.tld/media folder to your box using
lighthttpd or apache.
Grtz, Dexter
On Fri, Apr 2, 2010 at 5:21 PM, Media Server setup wrote:
On Fri, Apr 2, 2010 at 12:52 PM, Oleg Oltar wrote:
> Someone is posting many bad comments to my site. Is there possibility to
> make all submitted comments private by default (so I will need to review
> them to enable)?
Looking for comment moderation?
I once saw something for this on djangosnippets. Search hard.
On Fri, Apr 2, 2010 at 1:09 PM, ben wrote:
> Hi, I am new to Django. I am currently using the latest Django 1.2
> from trunk. I am trying to store a list of values in a
> CommaSeperatedIntegerList. I would like to
3. If you're running under Apache rather than the deveolpment server, did
you restart apache? (The development server restarts the app when
you change the code, but the apache - mod_wsgi or apache - mod_python
scheme does not, and you are still running the old code.)
On Fri, Apr 2, 2010 at 1:30
You are discarding the result of your first render_to_response and displaying
the second, which is always an empty form (except when the form is valid,
when you are returning an HttpResponse. You probably meant to put a
return in front of that render_to_response as well. But there could also be
1. Refresh your browser cache.
2. Make sure you're executing the right code. Have you tried to put a
breakpoint?
import pdb; pdb.set_trace()
2010/4/2 Pablo Cubico :
> Hi Guys!
>
> I'm new to Django AND Python, but I do have a long experience in
> configuring Apache, and
Hello Daniel,
A quick look at the Django documentation < http://docs.djangoproject.com/en/dev/
> shows this section Form wizard <
http://docs.djangoproject.com/en/dev/ref/contrib/formtools/form-wizard/#ref-contrib-formtools-form-wizard
>.
Perhaps this will do what you need?
On Apr 2, 10:20 am,
Hola
I'm having trouble with porting a Django site, which currently uses
apache2 and mod_python with Wordpress running at /blog/, to nginx.
I have several other sites which use a fastcgi process and Django as
the root directory in a server {} configuration but adding a Location
directive to pass
Someone is posting many bad comments to my site. Is there possibility to
make all submitted comments private by default (so I will need to review
them to enable)?
(I am using http://docs.djangoproject.com/en/dev/ref/contrib/comments/)
--
You received this message because you are subscribed to
Hi,
I'm essentially trying to pass data from form to form, building up a
query string based on a series of user selections.
In PHP I could do this with superglobals, but how is this done in
Django? I imagine I'd want a global list or dictionary that I would
keep appending to. Are context
Hi, I am new to Django. I am currently using the latest Django 1.2
from trunk. I am trying to store a list of values in a
CommaSeperatedIntegerList. I would like to use a
CheckboxSelectMultiple widget to render and select the values in the
list. I have setup my code like so.
SOME_CHOICES =
Hi Guys!
I'm new to Django AND Python, but I do have a long experience in
configuring Apache, and PHP programming.
Now, I was testing this simple view:
---
def get_value(request):
return HttpResponse(3)
---
It worked, it printed "3", everything ok.
Now I changed
Hello,
I'm newbie in django, reading documentation i understood that django
authorization model is based on django.contrib.auth.models.User class
and without having an instance of it, it is impossible to maintain
authentication and maybe an authorization. Even if I'll write my own
authentication
Hello,
I have recently setup a Media server on a different box which I would
like to use to serve static files to my django application. I
personally find django documentation to be vague on this particular
topic and I was hoping if someone who has done this type of setup
before would be able to
Hi all,
Thanks it works! But, i have another question about my view. When i
use my view (as seen below) i can't get see the form.
Thanks!
@login_required
def ziyaret_ekle(request):
if request.POST:
zform = ZiyaretForm(request.POST)
if form.is_valid():
Hi all,
Thanks it works! But, i have another question about my view. When i
use my view (as seen below) i can't get see the form.
Thanks!
2010/4/2 Benjamin Welton :
> def __init__(temsilci = None, *args, **kwargs)
>
> should include self as the first argument.
>
> def
def __init__(temsilci = None, *args, **kwargs)
should include self as the first argument.
def __init__(self, temsilci = None, *args, **kwargs)
Ben
H.İbrahim Yılmaz wrote:
Hi all,
I get "global name 'self' is not defined" error what is the problem?
Thanks.
from django.db import models
from
You need to learn python. It isn't C++ or Java
Method definitions which are neither decorated with the classmethod
not staticmethod
decorators receive the instance as their first argument, and you must
explicitly specify
a parameter to receive it. This parameter is traditionally called
"self"
Hi,
On 04/02/2010 05:12 PM, H.İbrahim Yılmaz wrote:
> Hi all,
> I get "global name 'self' is not defined" error what is the problem?
> Thanks.
>
> from django.db import models
> from django.forms import *
> from yenicrm.musteri.models import *
> from django.contrib.auth.models import User
> from
Hi all,
I get "global name 'self' is not defined" error what is the problem?
Thanks.
from django.db import models
from django.forms import *
from yenicrm.musteri.models import *
from django.contrib.auth.models import User
from django.forms.extras.widgets import *
# Create your models here.
class
Thanks anyway :)
I could create my own view and update respective database records but this
would be my last resort.
I know this can be achieved as i am displaying my ExtendedUser form during
registration. I feel stupid, i am displaying it so i could have omit some
fields and use it. I`ll dig
The software used by the VA hospitals is free, and opensource, I think,
still. Why reinvent the system? I have a card here somewhere from a
consultant who helps people implement the software, but it doesn't read like
you would really need a consultant.
Wolf Halton, sourcefreedom.com
--
ok, so
Are you using the develoment server? Is your static media served by
django? If yes, I guess that your middleware might be called several
times each page load, for every image/js/css etc.
On Mar 31, 1:54 am, Wiiboy wrote:
> > - have you enabled the messages' context
On Apr 2, 12:26 pm, knight wrote:
> 1.) I get error: "'Query' object has no attribute 'all'" on line 59 in
> views.
> As I understand it's something to do with the fact that GAE queryset
> is different from django queryset.
> How can I fix that?
You've mixed two different
Ok, thanks.
Can this be done in regular view but not Admin?
Would it be necessery to use formset along with inline?
I`d appreciate if you shed some light on this.
Thank you
Dnia czwartek 01 kwietnia 2010 o 22:29:40 Carl Zmola napisał(a):
> The standard way to extend user is through the user
On Apr 2, 12:51 pm, dadapapa wrote:
> I managed to solve the problem. The solution is to explicitly state
> the applications (models) that you want to migrate, and leave out
> those that get initialized automatically when doing syncdb
> (contenttypes). Here's how it
In this case you should overwrite the auth class.
http://docs.djangoproject.com/en/dev/topics/auth/
On Apr 2, 1:40 pm, Derek wrote:
> I am running Django 1.1 and using the Admin framework with the "built-in"
> user registration functionality.
>
> I need to run some code
I managed to solve the problem. The solution is to explicitly state
the applications (models) that you want to migrate, and leave out
those that get initialized automatically when doing syncdb
(contenttypes). Here's how it worked for me:
production server:
$ python manage.py dumpdata auth
I am running Django 1.1 and using the Admin framework with the "built-in"
user registration functionality.
I need to run some code immediately after a user has logged in. How would I
do this?
Thanks
Derek
--
You received this message because you are subscribed to the Google Groups
"Django
On Fri, Apr 2, 2010 at 4:26 AM, knight wrote:
> 1.) I get error: "'Query' object has no attribute 'all'" on line 59 in
> views.
> As I understand it's something to do with the fact that GAE queryset
> is different from django queryset.
> How can I fix that?
By reading the
Hi,
I'm trying to add filter and search to my site.
It's exactly the same code as in another working django project. The
difference is that this time I do it with app engine.
my views: http://slexy.org/view/s21GMw2sh1
my forms: http://slexy.org/view/s21XX8bquM
my search function:
OK - Now I've actually read your code properly! Yes that is a
brilliant solution!
Thanks.
Phoebe.
On Apr 1, 7:01 pm, Nuno Maltez wrote:
> I think the form I sent, with ModelChoiceField, will validate with the
> returned values without any further code. Or am I missing
Hello,
I have add some additionnal fields in a class "Utilisateur" to my Users using
the classical method: a OneToOne relation field from Utilisateur to User and
the AUTH_PROFILE_MODULE in the setting.py
This is well working, and I want now manage my "Utilisateur" using a single
Form.
I
If your selectbox are corresponding to foreignkey in yours models, it
coult be very simple. It could be a sucession of urls , generic views
and simple templates.
Other thing: there is a lot of jquery plugins that don't need Ajax to
work. Lot of them could use elements already in the DOM.
55 matches
Mail list logo