Re: Django CSRF protection and AJAX calls

2020-06-09 Thread Allan Rafael
; !this.crossDomain) { xhr.setRequestHeader("X-CSRFToken", csrftoken); } }, ... É isso, espero ter ajudado Atenciosamente, *Allan Rafael Ferreira de Oliveira* *Bacharel em Ciência da Computação • Universidade Estadual da ParaíbaEstagiário de TI • PrestCon

Re: Looking for a Django Co-Founder.

2018-11-18 Thread ALLAN NJOROGE
://groups.google.com/d/msgid/django-users/CANG%3DrD%3Deq8m3%2BeJOcwB%3Du%3D407FesMo9rfCTofpPgUjszExwcTg%40mail.gmail.com >>> <https://groups.google.com/d/msgid/django-users/CANG%3DrD%3Deq8m3%2BeJOcwB%3Du%3D407FesMo9rfCTofpPgUjszExwcTg%40mail.gmail.com?utm_medium=email_source=footer>

Re: Error when I use python manage.py makemigrations polls

2018-11-01 Thread ALLAN NJOROGE
users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/0085fc2e-9d89-4a80-b2b8-5e642def5501%40googlegroups.com > . > For more options, visit https://groups.google.com/d/optout. > -- *Allan Njoroge Kinyanjui* *Email*: *njorogeall...@gmail

Pant builds with django

2018-04-05 Thread Allan Nava
Is possible use pant builds with django? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send

Re: ManyToMany widget in admin - the "user - permission way.."

2017-11-28 Thread Allan Nava
Il giorno venerdì 27 febbraio 2009 15:14:13 UTC+1, Daniel Roseman ha scritto: > > On Feb 27, 1:21 pm, Anders wrote: > > Hi. > > > > In the users admin of Django admin there is a nice way of selecting > > permissions for each user by adding and removing

Permission for specific object in AdminPanel

2017-11-28 Thread Allan Nava
I have this admin.py and models.py ``` from django.contrib import admin from bootcamp.groups_manager.models import Group, Member, GroupType, GroupEntity, GroupMember, GroupMemberRole from guardian.admin import GuardedModelAdmin class GroupAdmin(GuardedModelAdmin): pass

Django Group with specific permission

2017-11-17 Thread Allan Nava
Hi, I need to add a specific permission for users of group such as add new member, but only for the group users. I have installed the django-permission -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: POST method on localhost

2017-09-26 Thread Allan
Would you have any recommendations on where to get started with this? We were originally making a desktop application, but plans have shifted and I'm not very knowledgeable about everything web. Allan On Tuesday, 26 September 2017 13:35:08 UTC-7, Andréas Kühne wrote: > > Hi

Re: POST method on localhost

2017-09-26 Thread Allan
e connection would > time out - unless you do a bit of magic on the connections. > > So, my question to you is what are you trying to accomplish? What is the > purpose of your test? > > Regards, > > Andréas > > 2017-09-25 22:42 GMT+02:00 Allan <allanei...@gmail.com &

POST method on localhost

2017-09-25 Thread Allan
I've created a simple form for data upload. I'm testing it through localhost and was wondering if this is realistic. Web development is a new area for me so bare with me please if this is a laughable question. I uploaded a 1GB file and it was uploaded and moved to a folder in my project in

How to achieve a construction similar to clean_?

2011-09-09 Thread Allan James Vestal
looking at the relevant parts of the Django source, but can't seem to find where those get created. Can someone steer me in the right direction? Thanks in advance. ~Allan -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

How to override the model validation on server start?

2011-03-15 Thread Allan
hi Everyone I have a model that i exported from a legacy database. when i start the server it tells me that some of the fields cannot have unique=true with a string CharField with a length over 255. Is there a way to override the model validation that runs on server start? Thanks, Allan -- You

RE: 1.0 tutorial Pt. 4, Poll Detail form appends action to redirect URL

2009-05-26 Thread Allan Ripley
] Sent: Tuesday, May 26, 2009 4:04 AM To: django-users@googlegroups.com Subject: Re: 1.0 tutorial Pt. 4, Poll Detail form appends action to redirect URL On 26 May 00:28, Allan wrote: > > I'm completely around the axle on this. >

1.0 tutorial Pt. 4, Poll Detail form appends action to redirect URL

2009-05-26 Thread Allan
raised. This is my first trip with Django and little Python so I'm still chasing the easy stuff. Sorry for the bother and thanks for taking the time. Allan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: Admin redirecting to wrong URL?

2008-09-25 Thread Allan
really scratching my head on this one Allan On Sep 24, 8:07 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Sep 24, 11:37 pm, Allan <[EMAIL PROTECTED]> wrote: > > > Hi Graham, > > > Thanks for responding.  I'm using Django 1.0, hosted at Webfaction on

Re: Admin redirecting to wrong URL?

2008-09-24 Thread Allan
Hi Graham, Thanks for responding. I'm using Django 1.0, hosted at Webfaction on Apache using mod_python. What special configuration or hacks would you suggest to get admin properly working at a sub URL of this configuration? Allan -- Atlanta On Sep 23, 8:04 pm, Graham Dumpleton <[EM

Admin redirecting to wrong URL?

2008-09-23 Thread Allan
excerpt from urls.py appears below. Allan import os from django.conf.urls.defaults import * from django.conf import settings from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', (r'^contact/$', 'careers_contact.views.contact'), (r'^careers

Adding a field in admin form of another class

2008-08-19 Thread Allan
Hi all! I have 3 classes in model.py class Category(models.Model): category = models.CharField(max_length=130) def __unicode__(self): return self.category class Subcategory(models.Model): category = models.ForeignKey('Category') subcategory =

Re: Pre-processing and preparing data in a separate thread or process?

2008-04-15 Thread Christopher Allan Webber
just provide a page that provides a status, >> where your user can refresh as they like. > > I'll have the daemon include a datetime value in the pickled data > which can be displayed in the page, and add a refresh button that will > trigger the signal I describe above. > > T

Re: Pre-processing and preparing data in a separate thread or process?

2008-04-15 Thread Christopher Allan Webber
on that page when the import is completed (possibly through some ajax-y interface either by polling or using a Comet system) or, the easy way out, just provide a page that provides a status, where your user can refresh as they like. All depends on your situation. Hope that helps, Christopher Allan Webber

Re: How to display if a user is logged in? Do I develop a custom template tag?

2007-11-26 Thread Christopher Allan Webber
Why not use django's builtin Authentication models? It handles most of this for you. from django.contrib import auth authenticate with: user = auth.authenticate(username=username, password=password) then log the user in: auth.login(request, user) and

Re: Adding a custom admin view to the admin app listing

2007-09-19 Thread Christopher Allan Webber
Sure, we can do this, but this doesn't provide a nice application-level way of adding this to the admin listing. At the company I work for, we have over 100 websites we deploy for (and we are just starting to transition to Django). We deploy each application individually depending on a client's

Adding a custom admin view to the admin app listing

2007-09-19 Thread Christopher Allan Webber
Hello, For a project we're working on, we need a custom view that's available only to administrators. It's not the traditional add/edit/delete stuff, and the generic admin interface doesn't cut it. That's fine, I can write my own view. (They need to upload a CSV file, which adds and updates

filers into generic views

2006-09-22 Thread Allan Henderson
I wonder is there a simple fix to my code or even a way to handle multiple query sets so that the list template can output the correct heading and description. Any help would be appreciated, Many Thanks Allan --~--~-~--~~~---~--~~ You received this message b

Re: serving static images

2006-09-11 Thread Allan Henderson
That's so obvious now that you point that out, I don't know how I could have missed that. Really thanks a million Jay! it all works perfectly now. Allan On 11 Sep 2006, at 18:14, Jay Parlar wrote: > > On 9/11/06, Allan Henderson <[EMAIL PROTECTED]> wrote: >> >> i'

Re: Re: serving static images

2006-09-11 Thread Allan Henderson
.contrib.admin', 'myproject.products' ) /////// On 11/09/06, Jay Parlar <[EMAIL PROTECTED]> wrote: > > On 9/11/06, Allan Henderson <[EMAIL PROTECTED]> wrote: > > > > Removed the path bit, navigating to http://localhostL:8000/static > &g

Re: serving static images

2006-09-11 Thread Allan Henderson
Removed the path bit, navigating to http://localhostL:8000/static gets me: ViewDoesNotExist at /static/ Could not import janeraven.products.views.django.views.static. Error was: No module named django.views.static Allan On 11 Sep 2006, at 14:57, Jay Parlar wrote: > > On 9/12/06,

Re: Re: serving static images

2006-09-11 Thread Allan Henderson
Thanks Jay but that doesn't appear to make any difference. I wonder is it how i have settings.py set up but nothing jumps out at me when trying to find where I've gone wrong. Don't know if its important but I'm on a mac and I'm trying to accomplish this through the built-in dev server. Not

serving static images

2006-09-10 Thread Allan Henderson
Complete newbie problem here but i can't seem to get django to show any images or stylesheets etc. In urls.py: (r'^images/(?P.*)$', 'django.views.static.serve', {'document_root': '/Users/whitebook/django/django_projects/mysite/ media/images'}), In the template I have . So when

Django Development Position Available

2006-02-20 Thread Allan
AirSage Inc. is seeking energetic Web Application Developers to expand and enhance the company's unique product offering. AirSage creates software that allows road traffic speeds and other information to be determined from cellular network signalling data. The qualified candidate will possess