Re: Looking for a Learning Buddy

2023-09-12 Thread Ben Sidney Matiko
Would be happy to join you as well On Tue, 12 Sep 2023, 19:24 Shrimad Mishra, wrote: > I am too in IST > > On Tue, 12 Sept 2023, 21:53 Sakshi, wrote: > >> Which timezone are you in? >> I'm interested IST timezone >> >> On Sat, 17 Jun, 2023, 3:30 am John Ayodele, >> wrote: >> >>> Hi! It's

Re: Problem with my website

2023-07-12 Thread Ben Sidney Matiko
Is the website in development stage? On Wed, 12 Jul 2023, 18:47 Théodore KOSSI, wrote: > Hello everyone, > I have a problem with my website. When I put DEBUG = False, my website > appears in white page but when it is in True, my website works normally. > Please, anyone can help me ?? > > -- >

Re: Unpaid Internship

2023-05-01 Thread Ben Indangasy
Beninda Group Ltd needs some interns - i...@beninda.com On Mon, May 1, 2023, 12:43 AM Each1Teach1 Tech Inc < pcintegral.pcintegr...@gmail.com> wrote: > let's talk > > > On Monday, April 24, 2023, John Diginee wrote: > >> Dear Sir/Ma'am, >> >> I hope this message finds you well. I am a

Re:

2022-09-27 Thread Ben Indangasy
Add me too +254722342103Sent from my iPhoneOn 27 Sep 2022, at 04:27, A Mufti - HcH wrote:Please add me ... +62 811801250 / MuftiPada tanggal Sen, 26 Sep 2022 pukul 19.53 Abdulfarid Olakunle menulis:Hello fellow developers, I will be creating a WhatsApp group chat later in

Re: intermittent migration error

2022-01-26 Thread Ben Cail
Thanks - https://code.djangoproject.com/ticket/33462. On 1/26/22 09:19, Jason wrote: nice find!  I would open a django issue, repeating what you have here, so Mariusz can see and triage. On Tuesday, January 25, 2022 at 2:10:18 PM UTC-5 Ben wrote: Hello, I ran into an intermittent

intermittent migration error

2022-01-25 Thread Ben Cail
SQL statements. I also ran git bisect on the Django code, and it looks like the problem starts showing up with this commit: https://github.com/django/django/commit/3d9040a50b160f8b4bb580e09f4120d4979fe29e. Should I open a Django issue, or is there something else going on here? Thanks, -

Re: Django and PostgreSQL update

2020-09-17 Thread Oussama Ben Rejeb
u can do a data dump before, but i think that there is no problem to update it On Thursday, September 17, 2020 at 2:29:46 PM UTC+2 dupakoo...@gmail.com wrote: > Hello everyone, > > I have a small database. Django version currently 2.2, postgres 9.2.24. I > forgot to note the psycopg2 older

Re: email": [ "Enter a valid email address." ]

2020-03-27 Thread Ben Magnelli
> AUTH_USER_MODEL = 'users.User Yep, I have that in settings.py In serializers.py if I change EmailField to CharField, it does serialize. However, then it’s not really checking if it’s a email. And EmailField should work. class User(AbstractBaseUser, PermissionsMixin): email =

From and Template in Django

2020-02-25 Thread ben aziz zizah
Is that possible to use the same form in more than one template -- 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

Re: Inventory management system

2019-11-22 Thread Ben Indangasy
Peter this already running? Sent from my iPhone > On Nov 22, 2019, at 7:23 AM, Peter Mudoko wrote: > >  > > > > if you want i can show you its ready made > > > Systems developer > ANQAD SYSTEMS LTD > Email p.mud...@anqad.co.ke > Mobile: +254 721449067/+255716282017/+254721491491 >

Re: use of migrate command and how to see the tables

2019-07-19 Thread Afotro Ben
in my opinion migrate is the command that saves your code for django to run or tells django that an application has been installed. On Friday, 19 July 2019 08:22:33 UTC, yasar arafath Kajamydeen wrote: > > Hi all, > > can some one tell me what is the use of migrate command ? > > when i enter

NEWBIE

2019-07-09 Thread Afotro Ben
Hello,i am new to programming and want to take learn and master web development with Gjango.Can anyone here tell me what it takes to doing it in 2 months? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Having problem with first page of first tutorial

2019-03-23 Thread Ben Edwards
Ive not done https://docs.djangoproject.com/en/2.1/intro/tutorial01/ 3 times and cant get past the first page. Its kind of dryving me nuts. Where I am at is in github https://github.com/ben-tvpp/site01 Ive added the view https://github.com/ben-tvpp/site01/blob/master/polls/views.py # Create

Re: Work from home opportunites

2019-02-23 Thread Ben Indangasy
inbox me i have a project: Workflow Management System that i would like implemented in Python and Django - b...@beninda.com > On Feb 22, 2019, at 11:45 PM, Vaibhav Kumar Chaudhary > wrote: > > Hi all, I am looking for work from home opportunities in Django. I have

Re: DJANGO QUORA LIKE APPLICATION

2019-02-07 Thread Ben Indangasy
yes On Thu, Feb 7, 2019 at 10:03 AM Peter Mudoko wrote: > I want a Django quora like application anybody who can do it hungout me > > > > Systems developer > > *Web Technologies Ltd* > > Email *p e...@webtechnologies.co.tz > * > > Mobile: *+254 7

Re: URL path not working with Django ver 2.1.2

2018-11-23 Thread Ben Hamlitsch
Excellent thank you very much for your help. Ben Hamlitsch > On Nov 23, 2018, at 2:20 AM, Jani Tiainen wrote: > > Hi, > > And if you want to still use old regular expressions you can use "re_path" > instead of "path". > >> On Fr

URL path not working with Django ver 2.1.2

2018-11-22 Thread Ben Hamlitsch
This is the message I get when I run python manage.py runserver [image: Screen Shot 2018-11-22 at 7.18.58 PM.png] This is my setup in Atom [image: Screen Shot 2018-11-22 at 7.22.10 PM.png] ANY help you can provide much appreciated. -- You received this message because you are subscribed

Re: Python Training in Chennai

2018-06-12 Thread Ben Indangasy
Cost? On Tue, 12 Jun 2018, 07:15 ijazz jazz, wrote: > we are focused on imparting a One-to-One Python Training in Chennai, our > trainees get to acquire a lot from the course. Our Fast-Track Python > Training in Chennai also ensures that they learn the most within the least > possible time.

Re: setup.py for Django project?

2017-09-07 Thread Ben Lopatin
I've seen this on a few projects before and each time transitioned the project away from it. As you note, for whatever advantages it seems like there may be, it's very much atypical and also unnecessary. I don't see how it makes writing Fabric tasks significantly easier (presumably you don't

Re: Unable to post to the bug tracker (Submission rejected as potential spam)

2016-09-20 Thread Ben Whale
omment until the filter accepts. > > On Tuesday, September 20, 2016 at 7:00:41 PM UTC-4, Ben Whale wrote: >> >> Hi all >> >> I'm unable to comment on a bug. When I attempt to comment on bug #27234 I >> receive the message, "Submission rejected as potential s

Unable to post to the bug tracker (Submission rejected as potential spam)

2016-09-20 Thread Ben Whale
Hi all I'm unable to comment on a bug. When I attempt to comment on bug #27234 I receive the message, "Submission rejected as potential spam SpamBayes determined spam probability of 97.12%". What do I need to do to allow me to comment? Ta -- You received this message because you are

Re: Access request body in the django.request logger

2016-09-15 Thread Ben Whale
jango code base, but I find this sort of behavior surprising and as a result... I suspect a bug. On Friday, 16 September 2016 15:09:13 UTC+10, Ben Whale wrote: > > Thanks for a link to the blob, that is very helpful. > > You might be right, but the more I look at this the more

Re: Access request body in the django.request logger

2016-09-15 Thread Ben Whale
documentation clarification. > > On Thursday, September 15, 2016 at 7:32:25 PM UTC-4, Ben Whale wrote: >> >> Well my last reply was preemptery. >> >> A minimal working example can be produced via the following commands. >> First navigate to a suitable directory

Re: Access request body in the django.request logger

2016-09-15 Thread Ben Whale
tember 2016 08:16:09 UTC+10, Ben Whale wrote: > > Thanks for the reply Tim > > Some testing seems to indicate that it is an issue with > django-rest-framework. When I contact the web server using urls managed by > django rest the issues occurs, when I do the same via url ma

Re: Access request body in the django.request logger

2016-09-15 Thread Ben Whale
UTC+10, Tim Graham wrote: > > If true, it does seem like a bug. Could you provide a test for Django's > test suite or a sample project to reproduce it? > > On Thursday, September 15, 2016 at 6:53:55 AM UTC-4, Ben Whale wrote: >> >> Hi >> >> What I'd like

Access request body in the django.request logger

2016-09-15 Thread Ben Whale
Hi What I'd like to do is log the request body whenever the django.request logger logs something. I had assumed that the extra context referred to as request in https://docs.djangoproject.com/en/1.10/topics/logging/#django-request was something like an HTTPRequest object. It is, however, an

Re: sub accounts in django

2016-05-19 Thread Ben Lopatin
This is the scenario I wrote django-organizations to handle (http://django-organizations.readthedocs.io/en/latest/). On Wednesday, May 18, 2016 at 12:04:02 PM UTC-4, Mehdy M. Haghy wrote: > > Creating sub accounts is a pretty common scenario. > you have clients like (copmany1, company2, ...,

Re: Migrating old users into custom user model

2015-08-25 Thread Ben Wattie
"probably don't use a custom user model, even though its supported, use 1-1 profile instead" But then later on the track requirements can change and you need a custom model but its very difficult to migrate. On Wednesday, August 26, 2015 at 9:59:37 AM UTC+12, Carl Meyer wrote: > > Hi

Migrating old users into custom user model

2015-08-25 Thread Ben Wattie
Hello, I have an existing project with migrations, datamigrations and I need a custom user model now, not just 1-1 profile so I created one. However, when I switch the AUTH_USER_MODEL setting, I can't access the old auth.user model for my datamigration def transfer_users(apps, schema_editor):

Re: Regarding Learning Django with collaboration

2015-07-17 Thread Ben Thompson
I have a small group myself that I have been looking to expand. At the moment there is myself and two others with 4 years of Python experience and about a year and a bit of experience with Django under our belt. We are slowly working on a content management system in Django ourselves

Re: Django 1.8 feature in 1.7.9?

2015-07-09 Thread Ben Cail
I am seeing the same issue when I try to upgrade my project to 1.7.9... On Thursday, July 9, 2015 at 7:25:02 AM UTC-4, lois...@polyconseil.fr wrote: > > Hi, > > I updated one of my project to Django 1.7.9, and a migration was added in > `django/contrib/contenttypes/migrations/`, namely >

Need help creating a form

2015-03-07 Thread Ben Gorman
Note: I've also posted this question StackOverflow but sadly, it hasn't been answered yet. My setup consists of a League which can contains multiple Teams. I'm trying to build a form for setting up a (single

Re: Help a newb with authentication and registration

2015-01-20 Thread Ben Gorman
@Collin Thanks a ton! -- 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 email to

Help a newb with authentication and registration

2015-01-17 Thread Ben Gorman
I've spent the past few weeks trying to set up a custom (but not unreasonable) user registration and authentication flow using allauth for my site. - email instead of username - a (not necessarily unique) display name - email verification required (more details and a skeleton project here

Re: ANN: Django website redesign launched

2014-12-17 Thread Ben Gorman
Awesome job to everyone involved. I'm a fan of the (much needed) improvements to the website. On Tuesday, December 16, 2014 10:12:54 AM UTC-6, Jannis Leidel wrote: > > Hi everyone, > > We're incredibly proud to share with you the new design of the Django > website, the documentation and the

How to set up a junction table in Django

2014-12-17 Thread Ben Gorman
(I'm copying my question from Stack Overflow here because it didn't get any answers. Please let me know if it's confusing.) I'm trying to figure out the best way to model this data structure. I want to

Re: What is the purpose of the include function?

2014-10-29 Thread Ben Lopatin
Hi Daniel, in this case I would think the latter would fail - the `include` function loads a URL conf module and then finds the `urlpatterns` attribute, whereas `admin.site.urls` is a class method that dynamically builds a list of URL patterns based on your installed apps. There's nothing to

Re: Restricting file access to users who uploaded the file.

2014-10-21 Thread Ben Lopatin
What you want to do is first restrict access to the model instance to which the file is associated. Presumably this model has a foreign key to your User model which you'd associate with the uploading user. Then your view will return some non-200 response, like a 401 response if the requesting

Re: LIMIT 21 on primary key lookups

2014-09-14 Thread Ben Collier
So why 21, precisely? On 14 September 2014 16:45, Alex French wrote: > Okay, after looking through the source code and documentation it seems > that django uses the limit for primary key lookups as a cautionary measure > and also to support the MultipleObjectsReturned

geo data fixture with loaddata, YAML

2014-07-07 Thread Ben Dean
Hi, I wanted to cross post this here from the original on the geodjango group. I let the details stand there, but summarize here: Trying to use manage.py loaddata to get a YAML fixture containing a geoDjango "MultiPolygonField",

GeoDjango/PostGIS installation issues

2014-06-27 Thread Ben Dean
I'm stymied on installing GeoDjango with Postgres9.3 on Ubuntu. I've posted the details here , so any help would be appreciated and I can promise you all the internet points I'm capable of distributing!

Re: Multiple django web applications

2013-09-27 Thread Ben Lopatin
different vhosts. Using gunicorn just run each Django app on a different port. Ben On Friday, September 27, 2013 4:54:44 AM UTC-4, drakko wrote: > > Hello django gurus! > > I wanted to kindly ask if there is a way how to keep two django web > application on the same server?

Best way to make a view for a simple post-comment page?

2013-08-05 Thread Ben Spatafora
Beginner here looking for advice as to the simplest, best-practicey way to do this. Right now I'm just piping a generic, class-based DetailView to a template that displays an instance of a "Post" model and all of its ForeignKey "Comment" model instances. I'd like to keep things as simple,

New to django, trying to implement a comment system, and rather uncertain about how to go about it

2013-07-15 Thread Ben Spatafora
Okay, I'm pretty new to django (and coding in general), so please bear with me. I'm trying to create the most basic features of a forum, and I had a few questions about how to go about doing this. So far, I've set up a post-only (i.e., no way to comment) project that consists of a single app

Re: unit testing

2013-07-09 Thread ben
Also note that Django 1.6 will bring a better test discovery mechanism. See the full details at https://docs.djangoproject.com/en/dev/releases/1.6/#discovery-of-tests-in-any-test-module Django 1.6 ships with a new test runner that allows more flexibility in the > location of tests. The

Re: unit testing

2013-07-08 Thread ben
On Monday, July 8, 2013 7:49:53 AM UTC-4, larry@gmail.com wrote: > > > > Ah, I missed that in the docs. Thanks. When I renamed it to tests.py > it got picked up. > > But in the django/contrib dirs (e.g. django/contrib/auth) the tests > are in a tests sub dir and are not called tests.py

Geodjango OGRException when transforming SRID 900913 to SRID 28350 (UTM 50)

2013-04-12 Thread ben . khoo
Hi Everyone, I was wondering if anyone can shed any light on what I could be doing wrong here. I am trying to convert a wkt from SRID 900913 to a wkt in 28350 (UTM 50). Everything works fine if I go from 900913 -> 4326 but going from 900913 -> 28350 throws an OGR Exception. I'd be grateful

Re: How to change the {{ form.as_table }}

2013-04-07 Thread Ben Carleton
You can use the label attribute on your form fields to override the default labels: dn = forms.CharField(label="dn") cv = forms.CharField(label="cv") -- Ben On 4/7/2013 10:11 PM, lx wrote: hi, I'm using the forms,and*the code is:* from django import forms cla

IntegrityError after updating to custom user field: django_admin_log still has fk to auth_user

2013-02-28 Thread Ben Roberts
This ring any bells? I updated my existing site to utilize my new Django 1.5 custom user field, and now I can't update anything in Admin because i get the following error: (django_admin_log still has a fk to auth_user, apparently!) Any way to resolve this? Traceback (most recent call last):

Re: anybody using PhoneGap with Django

2013-02-20 Thread Ben Roberts
hink of another way to do a PhoneGap app besides Django-as-a-backend-and-API + a Javascript MVC (pick your framework, we went with Backbone) on the front end. Feel free to ping me privately if you have other questions Ben Roberts On Wednesday, February 20, 2013 10:10:45 AM UTC-7, Larry Sa

Migrating existing auth.User users to Django 1.5 Custom User table

2013-02-18 Thread Ben Roberts
I assume, when Django 1.5 hits the public in 2014 >;) that many will want to take advantage of some facet of the new pluggable User models. You may, like me, want to add an additional column (field) or two in your custom User. E.g.: class SiteUser(AbstractUser): site =

Re: Django admin

2013-01-07 Thread Ben Carleton
visit this group at > http://groups.google.com/group/django-users?hl=en. Hi Elton, In addition to the link Amirouche posted, take a look at the Django intro tutorial, specifically part 2 which is here: https://docs.djangoproject.com/en/1.4/intro/tutorial02/ - it talks about enabling the admin i

Re: Help implement CSS into Django!!!!

2013-01-06 Thread Ben Carleton
On Jan 5, 2013, at 9:12 PM, Czaro wrote: > I've been trying to get my CSS to work with my python powered site forever > but I have no luck. I read the djangobook and a massive load of other > resources but they all say a different thing and nothing worked for me. I >

Re: models.DecimalField with value 0 shows up as "0E-8" in admin forms by default. Is there a workaround?

2012-11-03 Thread Ben Roberts
If anyone down the road ends up looking for a solution to this, I worked it out via StackOverflow: http://stackoverflow.com/questions/13163167/how-to-get-a-django-admin-form-field-for-a-models-decimalfield-with-value-0-to-n/13210775#13210775 On Wednesday, October 31, 2012 12:37:26 PM UTC-6, Ben

models.DecimalField with value 0 shows up as "0E-8" in admin forms by default. Is there a workaround?

2012-10-31 Thread Ben Roberts
I created a ticket for this, since it really doesn't seem right for a Decimal field to be using E notation in forms, but just for zeros. We use django admin as a client-facing backend, so we need to make it user friendly. I have a model with

installing Django without translations

2012-08-16 Thread Ben Saylor
taking up more than 400 MB). Thanks, Ben -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/uT4emdOGF24J. To post to this group, send email to dj

Re: NullBooleanField default to unknown

2012-03-17 Thread Ben Racine
yes. On Mar 16, 2012 8:07 PM, "Mike Dewhirst" <mi...@dewhirst.com.au> wrote: > On 17/03/2012 11:02am, Ben wrote: > >> I have a NullBooleanField that I would like to show up in my admin >> interface as radio buttons with unknown selected by default. >> &g

NullBooleanField default to unknown

2012-03-16 Thread Ben
don't know what I could replace the False with in: presence = models.NullBooleanField(default=False) in order to make it behave as I would like. Thanks so much for your time, Ben R. -- You received this message because you are subscribed to the Google Groups "Django users" grou

password_reset_form_save() got an unexpected keyword argument 'request'

2011-09-26 Thread Ben O'Day
I recently upgraded to Django 1.3 (from 1.2) and noticed that our password reset functionality isn't working. I do have the templates customized, but am using the default view/form files for this. Looking at the django.contrib.auth.views file, I can't see the issue either (the parameters in the

Mise en place de la base de données

2011-05-23 Thread mehdi ben rejeb
Bonjour je suis novice pour django et l'environnement python cet environnement de travail me plaie je viens de suivre le tuto :http://docs.django-fr.org/intro/ tutorial01.html et j'ai eu un problème lors de la mise en place de la base de donnée j'ai voulu connecter avec postgressql 8.4 1-j'accede

Multiple text inputs into a string

2011-05-05 Thread Ben Walker
ll/%s/' % self.key() Yet it is only taking one input. Is there a way to change this in the django form or should I just hard code it into the HTML and then point to that? I thank anyone who takes the time to look over this question! -Ben -- You received this message because you are subscribed to the G

Re: Model.clean() ValidationError

2011-03-15 Thread Ben Dembroski
On Mar 15, 2:36 pm, Ben Dembroski <i...@ionraystudios.com> wrote: > On Mar 15, 2:22 pm, Tom Evans <tevans...@googlemail.com> wrote: > > > > > On Tue, Mar 15, 2011 at 2:14 PM, Ben Dembroski <i...@ionraystudios.com> > > wrote: > > > Hi all, >

Re: Model.clean() ValidationError

2011-03-15 Thread Ben Dembroski
On Mar 15, 2:22 pm, Tom Evans <tevans...@googlemail.com> wrote: > On Tue, Mar 15, 2011 at 2:14 PM, Ben Dembroski <i...@ionraystudios.com> wrote: > > Hi all, > > > I'm trying to pass a ValidationError as a string to a template, but I > > can't seem to dete

Model.clean() ValidationError

2011-03-15 Thread Ben Dembroski
Hi all, I'm trying to pass a ValidationError as a string to a template, but I can't seem to determine where to find the 'special key' that is referred to in the documentation here: http://docs.djangoproject.com/en/dev/ref/models/instances/ {quote} Any ValidationError raised by Model.clean()

Re: cleaned_data not behaving how I expect it to. (newbie confusion)

2011-02-07 Thread Ben Dembroski
My apologies to the list. I just noticed the commas at the end of the lines in the views.py file. Once I got rid of those, all was much better. On Feb 7, 11:33 pm, Ben Dembroski <i...@ionraystudios.com> wrote: > Hi all. > > Another silly question.  I'm hoping someone h

cleaned_data not behaving how I expect it to. (newbie confusion)

2011-02-07 Thread Ben Dembroski
s that represent a tuple? The other values seem to be just fine. Any explanation on why this is happening? Or pointers on where to look? I've re-read the documentation on forms, the usual googling, etc. This is using version 1.2 Many thanks! Ben -- You received this message because you are subscribe

Re: loading the external css file

2011-01-31 Thread Ben Dembroski
Aha !! Is there a notice of this somewhere obvious on the website that I missed? Thanks again! -- Ben On Jan 31, 11:38 am, Łukasz Rekucki <lreku...@gmail.com> wrote: > On 31 January 2011 12:17, Ben Dembroski <i...@ionraystudios.com> wrote: > > > Hi all, > > &

Re: loading the external css file

2011-01-31 Thread Ben Dembroski
the docs for version 1.1 ? Many thanks, Ben On Jan 3, 7:28 pm, Chris Lawlor <lawlor.ch...@gmail.com> wrote: > If you don't have astaticfilesmodule, you most likely aren't using > Django 1.3. Make sure you select the correct version of Django when > viewing the docs, as things

Re: copying sqlite database file between projects

2011-01-25 Thread Ben Dembroski
sql, params) File "/usr/local/lib/python2.6/dist-packages/django/db/backends/ sqlite3/base.py", line 200, in execute return Database.Cursor.execute(self, query, params) DatabaseError: no such column: sample_app_Person.dobestm Any ideas ? Thanks again! On Jan 25, 4:02 pm, Ben Dembroski &

Re: copying sqlite database file between projects

2011-01-25 Thread Ben Dembroski
; > > > > > On Tue, 2011-01-25 at 07:36 -0800, Ben Dembroski wrote: > > Hi all, > > > Afraid I've got another newbie question.   I've been doing some > > development on a project using sqlite3.  All is working well, and I'd > > like to use the same

copying sqlite database file between projects

2011-01-25 Thread Ben Dembroski
besides just copying the database file to keep my data, provided the models.py files are unchanged? Many thanks, Ben -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@google

Re: Dates BC

2011-01-18 Thread Ben Dembroski
Thanks. I do need to do some basic date arithmetic, but it doesn't really need to be super accurate. I might be able to get away with this approach. Thanks for the advice! Best, Ben On Jan 17, 10:52 pm, Christophe Pettus <x...@thebuild.com> wrote: > On Jan 17, 2011, at 2:0

Dates BC

2011-01-17 Thread Ben Dembroski
. Is this easily done in Django? I'm using sqlite3 for the database. Googling has revealed mxdatetime, but from what I understand Django doesn't like to play with it at all. Any suggestion on where to look? Many thanks! Ben -- You received this message because you are subscribed

Re: Generic views

2011-01-11 Thread Dorival Ben Molinari Martinez
Thank you. I am reading the tutorial 'Django - writing your first app'. version 1.2. 2011/1/11 Piotr Zalewa > On 01/11/11 14:02, martinez wrote: > > I would like to know if I could work without generic views. > > > Sure you can - simply define your own in

Conflict trying to save models when roles metaclass is applied.

2010-11-23 Thread Ben Scherrey
ew systems. I really want to be able to make this work cleanly with Django if at all possible. Appreciate any insights. -- Ben Scherrey -- 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

Re: Session issues in Internet Explorer

2010-10-19 Thread Ben Luedtke
Thanks Jonathan, Either way though, the solution is to set the cookie to allow the session to persist correct? Thanks, Ben On Oct 19, 9:51 am, Jonathan Barratt <jonathan.barr...@knifeict.com> wrote: > On 19 ต.ค. 2010, at 21:49, Jonathan Barratt wrote: > > You are runnin

{% url %} template and javascript Get with callback

2010-09-19 Thread Ben Kraft
manually add the full url to the request context, but it seems like everyone who uses django with JS callbacks would have this problem, and there should be a simpler way. -Ben (and I'm sure the sites are on the same domain -- if I hardcode the full url, the callback works fine). -- You received

Re: problem with syncing sqlite3.6.22

2010-07-19 Thread Ben Atkin
he quickest way to get started is to change it to something like "dev.sqlite3" and re-run it. Ben On Mon, Jul 19, 2010 at 6:53 PM, john <johnhitz...@msn.com> wrote: > When I run python manage.py syncdb I get the following error. I left > the name field blank expecting Django

Re: should i use django

2010-07-17 Thread Ben Atkin
, but to get as much done as you can in that timeframe. Ben Atkin On Fri, Jul 16, 2010 at 5:46 PM, uday <ukapa...@gmail.com> wrote: > Hi, > > I need to design a simple web app that would mostly display data > from an xml file in different forms(like graphs,charts etc) after s

Re: ordering a model on multiple fields?

2010-07-15 Thread Ben Atkin
by django.contrib.admin.ModelAdmin, but by django.contrib.admin.views.main.ChangeList. I subclassed ChangeList, and made the ModelAdmin use the subclassed ChangeList by overriding the get_changelist() method, and I'm pretty sure it's working now. http://github.com/benatkin/tuneage/blob/master/tunes/admin.py Ben On Thu, Jul

Re: ordering a model on multiple fields?

2010-07-15 Thread Ben Atkin
into any issues. Ben On Thu, Jul 15, 2010 at 7:15 AM, Scott Gould <zinck...@gmail.com> wrote: > The Django *admin* only uses one field, ever. > > Bit of an irritating limitation, I grant you, but with the use of date > hierarchies and list filters it's not too bad. > > On J

Re: How do I translate a naming convention to model/database access?

2010-07-15 Thread Ben Atkin
Oops - I should have copied and pasted from my repl. The first line should be: from django.contrib.contenttypes.models import ContentType Ben On Thu, Jul 15, 2010 at 10:52 AM, Ben Atkin <b...@benatkin.com> wrote: > You could use Django's content types, too.

Re: How do I translate a naming convention to model/database access?

2010-07-15 Thread Ben Atkin
) That way you could use get_object_or_404() in your view. Ben On Thu, Jul 15, 2010 at 10:21 AM, Jonathan Hayward < christos.jonathan.hayw...@gmail.com> wrote: > Thank you! Let me play with it. > > > On Thu, Jul 15, 2010 at 10:41 AM, Daniel Roseman <dan...@roseman.org.uk>wrote:

Re: Look up model instance by id

2010-07-14 Thread Ben Atkin
] except IndexError: print 'Not found!' # ...handle error here... try: Location.objects.get(pk=id) except Location.DoesNotExist: print 'Not found!' # ...handle error here... Ben On Wed, Jul 14, 2010 at 1:41 PM, Jonathan Hayward < christos.jonathan.hayw...@gmail.com> wrote: >

Deploying Django on a server with mod_userdir

2010-05-21 Thread Ben
Hi everyone, I'm just starting out with Django and really enjoying it. For a project I am trying to install it on an Apache server at school with multiple users. The userdir module is enabled such that users can create their own websites. I'd like to allow some of these users to tinker with

hyperlinks within admin interface

2010-05-21 Thread Ben
). I'd like to be able to create links directly to the questions... Any suggestions much appreciated. Ben -- 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 unsubs

Re: Module loading error in django trunk.

2010-05-20 Thread ben
On May 18, 9:35 pm, Russell Keith-Magee <russ...@keith-magee.com> wrote: > On Tue, May 18, 2010 at 6:12 PM, ben <mr.benw...@gmail.com> wrote: > > Hi All, > > > After a recent svn update to my copy of Django/trunk I’ve been getting > > a persistent error relat

Module loading error in django trunk.

2010-05-18 Thread ben
(at Rev. 13079) I don’t get these errors. Is this a bug, or have I missed some backwards incompatible change? I’ve searched around and came up with nothing? Any insights or suggestions much appreciated. kindly, Ben. Example Error: TypeError at /admin/auth/user/1787/ find_module() takes exactly 3

Re: How to use CommaSeperatedIntegerList with CheckboxSelectMultiple

2010-04-03 Thread ben
of the choices tuple values, or the model field type. Can anyone point me to an example that demonstrates how to properly use these fields. Thanks, Ben On Apr 2, 5:19 pm, Bill Freeman <ke1g...@gmail.com> wrote: > I know that I used (some revision of) that snippet a while back. > > Re

Re: How to use CommaSeperatedIntegerList with CheckboxSelectMultiple

2010-04-02 Thread ben
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

Re: How to use CommaSeperatedIntegerList with CheckboxSelectMultiple

2010-04-02 Thread ben
t; I once saw something for this on djangosnippets.  Search hard. > > > > On Fri, Apr 2, 2010 at 1:09 PM, ben <ben.k...@gmail.com> 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

How to use CommaSeperatedIntegerList with CheckboxSelectMultiple

2010-04-02 Thread ben
. Can anyone tell me what I am doing wrong? I have googled about but have not been able to find anything describing how to handle this. Thanks, Ben -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, sen

Testing email with the testserver

2010-03-26 Thread Ben Gerdemann
? Would the behavior be different if I loaded the view using django.test.client instead of through the testserver? It would be nice of the testserver also used the dummy outbox, but at a minimum I think the documentation should be clearer and perhaps give a better example? Cheers, Ben -- You r

run single regression test from test suite

2010-03-14 Thread ben
these tests aren't in an app I'm not sure how to run them individually. Cheers, Ben -- 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,

Re: dynamic inlines (svn #12297) and older template logic breaking down

2010-03-04 Thread ben
Update - it seems that excluding the prefix elements can be done by excluding forloop.last in addition to formsets that are data bound. the stacked.html template in contrib mirrors this. While it doesn't seem to be the futureproof solution I'd hoped for, it does work. Perhaps the best move would

dynamic inlines (svn #12297) and older template logic breaking down

2010-03-04 Thread ben
gallery image add options - galleryimages-0-image and galleryimages- __prefix__-image Under current SVN is there a way to excude the __prefix__ instance within the template? If not, would it be worth submitting a feature request to enable the ability to discern between the two kinds of non- original in

Re: Problem with ForeignKey field

2010-02-28 Thread Ben Dowling
OK thanks. I didn't realise that was the implication of the related_name field. All working as expected now. Thanks, Ben On 28 Feb, 13:16, Daniel Roseman <dan...@roseman.org.uk> wrote: > On Feb 28, 11:46 am, Ben Dowling <ben.m.dowl...@googlemail.com> wrote: > >

Problem with ForeignKey field

2010-02-28 Thread Ben Dowling
, **kwargs) I'd expect to be able all the messages for a given thread with thread.message_set, but I get the following AttributeError when i try that: 'Thread' object has no attribute 'message_set'. Any suggestions on why? Thanks, Ben -- You received this message because you are subscribed

Generic Many-To-Many without GenericRelations

2010-02-11 Thread ben
Generic Many-To-Many Relationships I have a collection class which contains arbitrary objects using a Generic Many-To-Many relationship. class Collection(models.Model): name = models.CharField(max_length=VERBOSE_NAME_MAX_LENGTH) def member_objects(self, klass): """Returns a

Why oh why are my cache settings being ignored?!?!?

2010-01-20 Thread Ben Scherrey
a few seconds but no caching occurs. Appreciate any advice. I know this isn't strictly a django question but I need my solution to be a django one. :-) -- Ben GET /musician/scherrey/details/ HTTP/1.1 Host: musician.ejaminone.proteus-tech.com Connection: keep-alive User-Agent: Mozilla/5.0 (Windows

  1   2   3   4   >