Re: Looking for Django, React, and Next.js Developers - Internship Opportunity

2025-01-01 Thread Bryan Omweri
Resume attached On Sun, Dec 29, 2024 at 9:30 PM KING AMRUTH wrote: > Interested > > > On Sat, Dec 28, 2024 at 5:07 PM Adeyemi Deji > wrote: > >> Hi, >> >> I'm interested. Kindly find my attached resume >> >> On Sat, Dec 28, 2024 at 9:31 PM Ammar wrote: >> >>> Hi there >>> It’s Ammar Mohamed f

Re: attempt to write a readonly database

2020-12-23 Thread Bryan Anderson bautista garcia
hello, I don't know who you are, you're the wrong person El mié, 23 de dic. de 2020 a la(s) 11:19, Parul. (parul.281...@gmail.com) escribió: > OperationalError at /users/ > Request Method: POST > Request URL: http://localhost:8000/users/ > Django Version: 3.0.3 > Exception Type: OperationalError

Re: Python Django Training

2020-02-02 Thread Bryan Maxx
Hello, I am interested in learning Python with you. On Sat, Feb 1, 2020, 4:42 PM Srikanth K wrote: > Hi, > > I am from Hyderabad. I am Python Developer by Profession. I am eager take > up any Python , Django Training (online Preferrable or Weekends). Members > who require can contact me or share

Request for an internship

2020-01-08 Thread Bryan Maxx
I'm looking for an internship in the field of ICT,IT,MEDICINE, and PHYSICS. Incase you can offer or know of one, kindly inform me. Thank you. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving email

New to Django, Tutiorial01 not working,

2018-03-29 Thread Bryan Zimmer
Hello all, I managed to get Django and mod_wsgi installed OK. I then followed through with tutorial01, but even though I tried it twice, on two different machines, I have come up blank. This is the output I am getting for the first cut of Tutorial 01. I am using Django 2.0.3 with python3.6 and

Re: Sudden appearance of DatabaseWrapper Exception

2015-08-21 Thread Bryan Scott
I've come across a similar problem, and I'm pretty curious if you ever figured out what caused this for you. Any help is appreciated. Thanks Bryan On Sunday, April 6, 2014 at 1:02:20 AM UTC-4, Fraser Graham wrote: > > I have been running an Django 1.5.1 app under Apache for s

Django server serving cached template pages

2015-03-08 Thread Bryan Arguello
I am on the second page of the blog tutorial and am trying to change the base-site.html template. I make a few small changes, set the permissions to 755, put it in a subdirectory named 'admin' within a directory called 'template' inside of the project directory. I also add the template dire

Re: my mysite/templates/admin/base_site.html is ignored (tutorial unclear?)

2015-03-08 Thread Bryan Arguello
Have you solved this problem, Andreas? I am having the same issue and have done everything that the tutorial described as well as everything that people on this thread have suggested. On Sunday, November 16, 2014 at 12:15:59 PM UTC-6, Andreas Ka wrote: > > I am working through > https://docs.d

Apache with mod_wsgi not serving static files

2014-02-21 Thread Bryan P
Hello all, My Django application is not serving my static files (CSS, JS) and keeps returning a 404 error. I have set the STATIC_ROOT to the location where I collected all my static files with manage.py and set an alias in my VirtualHost. Here is my Settings.py Here

Re: New to Django

2013-10-15 Thread Bryan Kim Artificio
HI, good day! i would like to know id there's a way to connect the postgresSQL with django? regards, On Tuesday, October 15, 2013 1:55:01 PM UTC+8, Mahantesh U wrote: > > Hi All, > > I am new to Django framework. I worked on Flask framework using python. > Please share the sites to learn Dj

Re: How can Selenium see a record that I can't find from a debugger?

2012-07-02 Thread Bryan
I'm still stuck regarding how to delete a user from the database directly. On Tuesday, June 26, 2012 9:59:09 AM UTC-4, Bryan wrote: > > I am creating Selenium tests for my App. > I can create a new user, but I can't seem to figure out how to have it > deleted from the d

How can Selenium see a record that I can't find from a debugger?

2012-06-26 Thread Bryan
I am creating Selenium tests for my App. I can create a new user, but I can't seem to figure out how to have it deleted from the database. After the tests run successfully the first time, subsequent tests fail because the username already exists. **Why am I not able to query the newly created r

What is the simplest way to install MySQL-python on Lion 10.7 with Xcode 4.3?

2012-02-27 Thread Bryan
d to run the server, I got the following Traceback: Traceback (most recent call last): File "/Users/Bryan/work/osqa/forum_modules/mysqlfulltext/ __init__.py", line 8, in import MySQLdb File "build/bdist.macosx-10.7-intel/egg/MySQLdb/__init__.py", line 19, in File &q

Re: Alternatives to celery

2012-01-16 Thread bryan hunt
Gearman only supports a MySql backend for persistent queues - it doesn't support a real message queue like Rabbitmq. On Jan 16, 10:33 am, Cherian Thomas wrote: > Second Arun’s suggestion on gearman. Pretty solid too. > > Regards, > Cherian > > > > > > > > On Mon, Jan 16, 2012 at 3:52 PM, Alec T

Re: What server configuration should I use for a Django site like this?

2011-11-30 Thread bryan hunt
Build it on 512 Linode, upgrade to 1024 if necessary. Linode are so far ahead of the competition Price/Performance ratio, I wouldn't bother with anyone else (VPS). -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: How to use CreateView?

2011-05-09 Thread Bryan L
You need to specify "action"... what was the URI for the get form? The action should be the same. On Mar 11, 2:41 pm, hassan wrote: > Hi, > > I am testing django 1.3 class based generic views. I have a model like > this one: > > class Book(models.Model): >     name = models.CharField(max_leng

Re: Form with manytomany field

2011-05-03 Thread Bryan
"Maybe what I need is something like OneToMany relationship" You need a ManyToMany field: multiple people may have worked for the same company previously, correct? As for your original question, I would make a ModelForm for your Person model (or whatever it is) and another one for your Company mod

Upgrade to Django-1.3 seeing AttributeError: 'NoneType' object has no attribute '_info'

2011-04-27 Thread Bryan
I just downloaded and installed Django 1.3, I can't seem to run the console or server with this error: AttributeError: 'NoneType' object has no attribute '_inf $ python manage.py shell Traceback (most recent call last): File "manage.py", line 13, in execute_manager(settings) File "/usr/

Re: how does this not work????

2011-04-07 Thread Bryan Reed
ser_id=check.id) will return an empty queryset. So as you expect, your not finding anything with your query. It's returning and empty queryset and slicing it is causing the index out of range. -- Bryan K. Reed bkr...@hackboy.com 'And sanity is really just a one trick pony, anyw

Re: Authentication system

2011-04-04 Thread Bryan
http://docs.djangoproject.com/en/1.3/topics/auth/#limiting-access-to-logged-in-users You can either put the @log_required decorator on each of the views you want protected, or you can do it the raw way (see link), which may offer more flexibility. On Apr 4, 5:22 am, GOUTAM KUMAR RANA wrote: > Ho

Re: validate_unique not checking parents of parents' fields?

2011-04-02 Thread Bryan
Ah perfect thanks! I looked to see if something had been submitted, but couldn't find it. On Apr 2, 3:26 pm, Karen Tracey wrote: > On Sat, Apr 2, 2011 at 4:37 PM, Bryan wrote: > > Is this a bug? > > Yes:http://code.djangoproject.com/ticket/15321 > > Karen > --ht

validate_unique not checking parents of parents' fields?

2011-04-02 Thread Bryan
As far as I can tell, if one has three models, GrandparentModel, ParentModel, and ChildModel, in which GrandparentModel defines a unique field unique_field, Childmodel.validate_unique() will not check the uniqueness of unique_field. The fields to check are determined by ChildModel._get_unique_chec

Extending UserManager and PAM-based authentication

2010-11-04 Thread Bryan Bishop
_user & friends actually create_user via PAM as well. My first guess is that I should be extending UserManager or User. How do I go about doing this? I would prefer to make modifications that stay in my webapp's directory, instead of editing the actual UserManager class. Any ideas? Thank you,

Using all project URLs when using TestCase.urls?

2010-08-20 Thread Bryan
I've been trying to add the django-lean app to my project. I have not been able to get the tests to pass because of NoReverseMatch errors for named urls defined in other apps. It seems the issue is that the TestCase defines a value for urls: urls = 'django_lean.experiments.tests.urls' As b

URL template tags fail in Tests but work in Dev and Production ( Django 1.2.1 )

2010-08-17 Thread Bryan
I've been trying to add the django-lean app to my project. I have not been able to get the tests to pass. It took me a few days with a debugger to determine what the problem was. It seems that all the URL template tags fail in Test mode, but not in Production nor Developement. Failure happens is

How can reverse('opensearch') work in the shell, but fail in a Test?

2010-08-13 Thread Bryan
I'm trying to install django-lean into my application. Open search is used in my app App. I can reverse('opensearch') in the Python shell. However, in the test, reverse('opensearch') * NoReverseMatch: Reverse for 'opensearch' with arguments '()' and keyword arguments In [47]: reverse('opense

Help with Formset (I think it is formset I need)

2010-06-20 Thread Bryan A
Hello: I am trying to create a form with a check box list for Tags associated with an Appointment. Form: Please list tags for this Appoingmen _ Work _ School _ Other I need to design this so users can add additional ta

Re: Django v1.2 TestCase doesn't seem to load fixtures except 'initial_data'

2010-05-27 Thread Bryan
] $ python manage.py test Creating test database 'default'... <> No fixtures found. I don't know why this is happening, but it is. :-( Bryan On May 27, 8:33 am, Karen Tracey wrote: > On Wed, May 26, 2010 at 4:28 PM, Bryan wrote: > > I am using Django v1.2 >

Django v1.2 TestCase doesn't seem to load fixtures except 'initial_data'

2010-05-26 Thread Bryan
I am using Django v1.2 The fixture I defined "forum_fixtures.json" don't seem to be loading when I run tests. from django.test.client import Client from django.test import TestCase from utils import * from forum.models import * from forum import auth from django.contrib.contenttypes.models import

Sorting by a GenericRelation Causes Result Oddities

2010-02-08 Thread Bryan Veloso
filtering that I'm trying to do to it. Hopefully that makes some kind of sense. I don't know if there's a way around it, or if it's a bug that needs to be fixed. But any insight would be great. :) Cheers, Bryan -- You received this message because you are subscribed to the

Re: are django applications portable?

2009-09-26 Thread Bryan
It is definitely possible to "install" django-tagging on your project path if you really wanted to. I did this for a while and it worked just fine. You could export the latest version from source control or alternatively do the install and then move files from the python packages directory to yo

Re: is this a sane way to show total number of objects in pagination?

2009-09-25 Thread Bryan
I can't think of a reason, if nothing else its a matter or taste/ preference. He said "I would probably...", so he may have been implying that there was a technical reason but most likely he was just stating his preference. On Sep 25, 5:03 am, Chris Withers wrote: > Jani Tiainen wrote: > > Chri

Re: Custom User Model and the Django Admin Site

2009-08-29 Thread Bryan
le thought has been put into custom user models in regards to the admin site. Ideally all that I would have to do is inherit from UserAdmin and override the fieldsets, but maybe I'm asking too much. On Aug 28, 3:23 pm, Karen Tracey wrote: > On Fri, Aug 28, 2009 at 10:20 AM, Bryan wrote: &g

Custom User Model and the Django Admin Site

2009-08-28 Thread Bryan
Hi All, Just a quick query to see if anyone has any ideas on this one. I have a model in my application that inherits from the django User model. In the admin site, without any extra configuration (just using ModelAdmin), I get a standard edit form with the custom model's fields as well as the

Re: TypeError: execute() takes at most 3 arguments (4 given)

2009-08-23 Thread Bryan
Daniel is right on. And for future reference, it says "3 arguments" which may seem misleading, but keep in mind that the cursor object itself is the first argument. On Aug 22, 4:14 pm, kevin wrote: > cursor.execute("SELECT a,b,c FROM Table_Name WHERE a = %s AND b = %s ", > [string1],[string2])

Re: mod_python problem

2009-08-20 Thread Bryan Fordham
> Is the page truly blank? Ie., have you gone 'View Source' in the > browser to see what is returned. Are you sure you haven't stuffed up > something in global HTML template whereby missing a closing '>' for > HTML. Yup, view source shows it's blank, as in nothing is in the source at all. > Sinc

Re: mod_python problem

2009-08-20 Thread Bryan Fordham
Also tried switching to wsgi, just to see if it would make a difference. It didn't. I'm seriously stumped On Thu, Aug 20, 2009 at 3:56 PM, Bryan Fordham wrote: >> >> Don't forget the comma after the absolute path. For example, >> >> '/home/bf

Re: mod_python problem

2009-08-20 Thread Bryan Fordham
> > Don't forget the comma after the absolute path. For example, > > '/home/bfordham/websites/bfordham/trunk/bfordham/blog/templates', > < comma Tried that, no change. Changed the template path to an invalid path, same thing. Very weird -- Thanks --B --~--~-~--~~~--

Re: mod_python problem

2009-08-20 Thread Bryan Fordham
> The default template is not loading correctly. Check and verify your > settings.py and make sure it is pointing to the absolute path e.g., > TEMPLATE_DIRS ="/home/users/templates", You're right. Changed the index view to just return an HttpResponse, skipping the template, and it worked. So, go

Re: mod_python problem

2009-08-20 Thread Bryan Fordham
> The default template is not loading correctly. Check and verify your > settings.py and make sure it is pointing to the absolute path e.g., > TEMPLATE_DIRS ="/home/users/templates", It seems right >From settings.py: TEMPLATE_DIRS = ( # Put strings here, like "/home/html/django_templates"

Re: mod_python problem

2009-08-20 Thread Bryan Fordham
It's at http://bfordham.org/ The project runs from the root. It was set that way on the development server, too, with no problem On Thu, Aug 20, 2009 at 11:11 AM, Mario wrote: > > Bryan, > > Can you post your project url? Also try changing from > to > > _Mario >

mod_python problem

2009-08-20 Thread Bryan Fordham
I'm sure this is something simple, but I'm a bit stumped. It's been a while since i've don't this, and obviously I'm missing something I have my django app installed on server. When I go to any URL that matches something in the urls.py file, I get a blank page. As in the server is returning a 200

Problems with creating formsets with Dynamic initial values

2009-06-26 Thread Bryan Wheelock
expected. I started with the examples here: http://www.pointy-stick.com/blog/2009/01/23/advanced-formset-usage-django/ but now I'm at a loss for how to resolve this. thanks for any help, Bryan Django 1.1 beta 1 # # models.py class Product(models.Model): # manufacturer = models.Fo

conventions for adding pluggable apps to Django

2009-04-21 Thread Bryan Wheelock
several ways to do this; however, I guess I wanted to learn if there was a convention for adding pluggable apps. thanks, Bryan -- The best marketing related articles are at http://www.InstantDirectMarketing.com --~--~-~--~~~---~--~~ You received this message because

Re: problem enabling the admin interface

2008-11-19 Thread Bryan Oakley
ocs.djangoproject.com/en/dev/topics/http/sessions/#topics-htt... > > On 19 Nov 2008, at 19:42, Bryan Oakley wrote: > > > > > I inherited a django app and I'm trying to enable the admin interface > > without much luck. When I try to access the admin interface I see thi

problem enabling the admin interface

2008-11-19 Thread Bryan Oakley
I inherited a django app and I'm trying to enable the admin interface without much luck. When I try to access the admin interface I see this at the end of the error log: OperationalError: no such table: django_session Sure enough, it's not in my (sqlite) database. If I create a new database fro

Re: New Project : Django Sites Integration

2008-04-27 Thread Bryan Veloso
Hey Mike, I can add this to the Django Plugables directory if you'd like. Let me know. :) Cheers, Bryan On Apr 27, 10:36 am, Mike H <[EMAIL PROTECTED]> wrote: > Oh, and it automatically filters the model's querysets by the current   > site. Kinda important that it does

Re: get_or_create and DoesNotExist

2008-03-31 Thread Bryan Veloso
Sure thing Bruno, Model: http://dpaste.com/hold/42454/ Flickr Importer: http://dpaste.com/hold/42455/ I think that's all that's involved. Cheers, Bryan On Mar 31, 1:22 pm, "Bruno Tikami" <[EMAIL PROTECTED]> wrote: > Hi Bryan, > > would you post your mod

get_or_create and DoesNotExist

2008-03-31 Thread Bryan Veloso
houldn't it create it? I'm thinking that something is either preventing the instance from being created. The really odd thing is that it created one instance and then stopped, when I asked for it to import my photos from the last 7 days. All-in-all, I'm

Re: Django hosting website

2008-03-24 Thread Bryan Veloso
>Lots more flexibility, but when things break its your fault. Well at least you're able to rebuild instead of begging customer service to do it for you. I'll definitely submit my +1 for Slicehost. -Bryan --~--~-~--~~~---~--~~ You received this messag

more info when serializing

2007-11-17 Thread Bryan L. Fordham
So, say I have a model something like this: class Bar(models.Model): user = models.ForeignKey(User) name = models.CharField(maxlength=50) description = models.TextField() where user is tied to a django.contrib.auth.models.User entity. When I serialize this to json, I get: [{"pk": "1

Re: spam

2007-11-06 Thread Bryan L. Fordham
> About all you can do is mark it as spam and let that train Google's spam > filter. > > A mail client that doesn't automatically show images will help, too. --B --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Error loading MySQLdb module

2007-07-06 Thread Bryan L. Fordham
looks like you need to install MySQLdb: http://sourceforge.net/projects/mysql-python Jalil wrote: > I keep getting this below error when I try to sync my database. > I am using python2.3. Any ideas? > > > > [no job set:~/dev/mysite] 113% python2.3 manage.py syncdb > Traceback (most recent call

Re: Slug (w/o using SlugField) Problems

2007-07-06 Thread Bryan Veloso
> You might need to adopt a different approach to URL construction that is > reversible (writing your own version of slugify, possibly?). Thanks for the help Malcolm. Using Jeff Croft's "I'm not a programmer" excuse, would it be too much trouble to request a small example of a reversible slugify?

Slug (w/o using SlugField) Problems

2007-07-06 Thread Bryan Veloso
know I'm messing something up, but it's either way too late for me to think straight, or I just have no idea what to fix. The thing that bothers me is that `name` isn't really a `slug_field` as it hasn't been slugified, and th

Re: Cross Importing Model Problem

2007-07-05 Thread Bryan Veloso
Oh also, I thought OneToOneFields were discouraged in favor of ForeignKeys with unique=True as per http://www.b-list.org/weblog/2006/06/06/django-tips-extending-user-model --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Re: Cross Importing Model Problem

2007-07-05 Thread Bryan Veloso
Thanks for the help guys. Splitting the models up was mostly a cosmetic thing for the admin, but these problems quickly kicked me out of that state. Anyway, yes, the database design is really bad, mostly because that's not what the game developers are experts at unfortunately. --~--~-~--

Cross Importing Model Problem

2007-07-04 Thread Bryan Veloso
I don't know if this is even possible, since I've had so many errors thrown at me, but I wanted to ask here so I can get a clear picture. I have 2 models for an MMORPG control panel I'm building. Each set of data is within it's own app with related models, etc. So here's my example. It's run off

Re: Random string template tag

2007-07-03 Thread Bryan Veloso
> If you want to hardcode the availability of the 'classes' variable in > every context (so you don't have to remember to define it every time), > you could write a context processor. See > django.core.context_processors for examples. That's probably what I'll need since it'll always have to be t

Re: Random string template tag

2007-07-03 Thread Bryan Veloso
> One option is to use the 'random' filter; your context would need to > define the list of possible strings: > > Context({ >'classes': ['class1','class2','class3','class4'] > > }) > > but then your template could use: > > {{ classes|random }} Can you serve Context to the base template? I tho

Random string template tag

2007-07-03 Thread Bryan Veloso
I don't know if this exists or not, but I'd like to insert a tag (much like cycle) that allows the random selection of a string. I'm trying to randomly assign a class to a to simulate "random image rotator" type functionality. Something like... Any ideas? --~--~-~--~~

augmenting admin delete

2007-07-03 Thread Bryan
Is there an easy way to augment deleting from the admin page. Specifically, I'm uploading an image and as part of saving the image model I make a thumbnail (which isn't part of the model). The admin delete will remove the uploaded image but not the thumbnail, so I'd like to basically say, whenever

Re: Could you please share your django-based website source code with me?

2007-07-02 Thread Bryan L. Fordham
oh wow, I don't know how I managed to send that to this list. That was a reply to a private email, having nothing to do with Django. Obviously. Sincere apologies --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dj

Re: Could you please share your django-based website source code with me?

2007-07-02 Thread Bryan L. Fordham
I don't know that I ever listened to his message at the mormon tabernacle. http://www.rzim.org/radio/archives.php?p=JT&v=detail&id=784 is the first part --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users

Re: Password Logistics Help Needed

2007-06-27 Thread Bryan Veloso
> The original poster suggested adding a field called password_md5 to a > model that is an extension of User. It was never indicated that such a > field already existed. Ah, my bad. I misinterpreted. --~--~-~--~~~---~--~~ You received this message because you are

Re: Password Logistics Help Needed

2007-06-27 Thread Bryan Veloso
Alright. I tried looking in the actual source for any mention of password_md5... and it no longer exists. So I'm sure I just can't call the field. I'd have to recreate it or something correct? --~--~-~--~~~---~--~~ You received this message because you are subscri

Re: Password Logistics Help Needed

2007-06-27 Thread Bryan Veloso
> The usual route I go with when trying to extend on the User model is > to create a new model and link it to the User model. For example: > > class UserExt(models.Model): > user = models.ForeignKey(User) > # ... other fields that you need here > > def __init__(self, user): > s

Re: Password Logistics Help Needed

2007-06-27 Thread Bryan Veloso
Alright, I did about 2 hours of searching today and I'm beginning to think that the above is an impossibility. Which probably means that I'm going to have to bypass Django authentication and make my own, but I don't even know where to start on that, so I'm at quite a loss. :/ --~--~-~--~

Password Logistics Help Needed

2007-06-27 Thread Bryan Veloso
del that gets copied as md5 or plain-text to my accounts table? Thanks in advance, please let me know if I have to explain things a bit more. :) Cheers, Bryan V. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &q

Re: looking for calender and a message board

2007-06-23 Thread Bryan Veloso
I just found this a few minutes ago: http://code.google.com/p/beastly/ On Jun 23, 9:16 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > If by message board you mean a forum, a la VBulletin and the like, > Zyons is the only Django one I know of:http://zyons.com/ > > As for calendar, I wasn't a

Re: Ticket #3297 & Newforms Image Uploading

2007-06-23 Thread Bryan Veloso
On Jun 23, 2:41 pm, Bryan Veloso <[EMAIL PROTECTED]> wrote: > > for n in range(0, MAX_NUM_UPLOADS): > > img_manip = ImageAttachment.AddManipulator() > > img_obj = img_manip.save() > > uploaded = clean_data['img_fld%d' % n] > > obj.

Re: Ticket #3297 & Newforms Image Uploading

2007-06-23 Thread Bryan Veloso
> for n in range(0, MAX_NUM_UPLOADS): > img_manip = ImageAttachment.AddManipulator() > img_obj = img_manip.save() > uploaded = clean_data['img_fld%d' % n] > obj.save_image_file(uploaded['filename'], uploaded['content']) What library did you have to import to get ImageAttachment to

Re: Ticket #3297 & Newforms Image Uploading

2007-06-22 Thread Bryan Veloso
> Can't paste the code from the actual app (am under NDA) but the logic > in saving the image from form data is here: > > http://dpaste.com/12731/ The only problem with this, and probably why I'm looking to use #3297 (which actually didn't work too well anyway), is because I have as many as 15 fi

Re: Introducing DjangoSites.Org

2007-06-22 Thread Bryan L. Fordham
> still havent got the mail, but the login is working > > I created a login for bfordham the other day, never got an email, account isn't working. --B --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django use

Re: Ticket #3297 & Newforms Image Uploading

2007-06-21 Thread Bryan Veloso
> You can always write the code to process File/Image fields in the view > or just extend your form to handle them properly. I have managed to do > so either by processing in the view or extending the form. As of now, > all processing of all forms occur in the view and validation for file > and im

Ticket #3297 & Newforms Image Uploading

2007-06-21 Thread Bryan Veloso
taking the leap. Thanks! Bryan V. --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group,

Re: Pagination

2007-06-21 Thread Bryan L. Fordham
> I don't understand. If you're one /foo/bar/baz/page1/, then why can't > you write as the link? It will work, is a > well-formed URL and is independent of the prefix. Note that you must > ensure your URLs are canonicalised if you use this system, though: > always ending with a trailing slash, s

Re: Custom SQL query with LIKE statement

2007-06-21 Thread Bryan L. Fordham
> This should be writable in a slightly more Djangoic (I suppose if > Python code is Pythonic, Django code is Djangoic? Djanonic? > Djangonical? Djangoish?) fashion: > my vote would be to user "superfly," as in: This should be writable in a slightly more superfly fashion >entries = Jou

Re: Hypothetical: Customizable Member Pages

2007-06-20 Thread Bryan Veloso
> Not really sure if it's a good idea to > allow users to enter arbitrary HTML code. I mean, just look at what > happened to MySpace and Friendster :) It's better to just allow users > to select from a set of predesigned templates and then allow them to > customize the CSS stylesheets. Believe me

Hypothetical: Customizable Member Pages

2007-06-20 Thread Bryan Veloso
hat this can be done? Has anybody else attempted something like this yet? Thanks. :) ~ Bryan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to djan

Re: Development times

2007-06-20 Thread Bryan Veloso
I've only developed two sites, a blog and a dynamic scoreboard, having no prior python experience. The blog took about 4 weeks, with a lot of help, and it's still not done due to some limitations I've hit with the framework (or limitations in my own knowledge). The scoreboard I just finished an "

Re: Introducing DjangoSites.Org

2007-06-20 Thread Bryan L. Fordham
[EMAIL PROTECTED] wrote: > A week ago I posted about a project I was working on, Djangosites.org. > It's intended to be a showcase of what's out there in Django Land. > Very nice. A few minor things: One the register page, since the "Terms of Service" link is in the label for the checkbox, wh

Re: SelectDateWiget Problem

2007-06-20 Thread Bryan Veloso
I was looking through the code today and saw this: http://code.djangoproject.com/browser/django/trunk/django/newforms/extras/widgets.py def value_from_datadict(self, data, name): y, m, d = data.get(self.year_field % name), data.get(self.month_field % name), data.get(self.day_field

Re: SelectDateWiget Problem

2007-06-18 Thread Bryan Veloso
Yep, the other fields are populated correctly. My Form: class ProfileForm(forms.Form): name= forms.CharField(required=False) avatar = forms.Field(widget=forms.FileInput, required=False) photo = forms.Field(widget=forms.FileInput, required=False) city

SelectDateWiget Problem

2007-06-18 Thread Bryan Veloso
birthday= forms.DateField(widget=SelectDateWidget(years=range(today.year, 1900,-1)), required=False) I have this in my forms.py, and it defaults to January 1, 2007. So, I set my birthday, save, come back and it's back to that default, so if I were to save the form without changing that va

Re: Admin: Hiding fields from certain user groups

2007-06-15 Thread Bryan Chow
We have done this before by creating a second model with a different fields definition in the Admin class, and then assigning the model to the same database table by specifying db_table in the Meta class. This allowed us to specify separate access permissions on each model, even though both models

Help Wanted at CritterWatch.Org

2007-06-14 Thread Bryan L. Fordham
As I announced recently, I'm currently working on a project at www.critterwatch.org. The overall goal is to provide people with up-to-date information on how their state represenatives and senators are voting, as well as data on legislation. Long term goals include an API to make this informat

Re: new Django site: critterwatch.org

2007-06-13 Thread Bryan L. Fordham
Michael Trier wrote: > Nice work. You need someone to spice up the UI, but the content rocks. > Great job. > > Thanks And yeah, I'm not a UI design guy. Given a design I can code it, but I suck at coming up with the design from scratch. So if anyone on this list wants to donate a nice desig

Re: new Django site: critterwatch.org

2007-06-13 Thread Bryan L. Fordham
Jeremy Dunck wrote: > Nice. Screen-scraping the votes, or is there actually an API? > Screen scraping, I'm afraid. Georgia was easy, which is nice since it was the logical place for me to start (I'm near Savannah, Ga.). Some other states, for instance South Carolina, have their Senate/House

Re: new Django site: critterwatch.org

2007-06-13 Thread Bryan L. Fordham
Udi wrote: > If I were you I'd get my hands on pictures of all of the "critters" > and put them next to their names. It'd spice up the UI a bit. Good idea. I've considered it, but now I think I definitely will. Thanks --B --~--~-~--~~~---~--~~ You received this m

new Django site: critterwatch.org

2007-06-12 Thread Bryan L. Fordham
Not officially launched yet, but I'd appreciate some people banging on critterwatch.org and telling me what breaks. It's a site to track how you state senators and congressmen vote. Right now it only has information for Georgia, but I'm working on adding the next state (namely, South Carolina)

Re: Uploading Image, Marking a Field as True

2007-06-10 Thread Bryan Veloso
> I think you need to work on your workflow a little more. You will > definitely need to play with views; I'm not sure what you think > signals will acheive. > > You need to think in terms of "what HTML pages can I present to the > user, in what order; and what conditions must be met to move from

Uploading Image, Marking a Field as True

2007-06-06 Thread Bryan Veloso
Alright, example model: # Baseball baseball = models.PositiveIntegerField('Baseball Skill Level', blank=True, null=True, maxlength=4) baseball_approved = models.BooleanField('Approved', default=False) baseball_proof = models.ImageField('Proof', upload_to="/images/proof/ baseball", height_field='b

Re: QuerySet Question - Selecting a Single Field

2007-06-05 Thread Bryan Veloso
> This will grab _all_ score objects, and sort them by baseball score. > If there isn't a baseball score, then 'baseball' will have a value of > None, which is still a sortable value. Alright, so just to be safe, I really shouldn't be showing the values for all players, since that risks showing v

Re: QuerySet Question - Selecting a Single Field

2007-06-05 Thread Bryan Veloso
> Score.objects.order_by('-baseball') > > will return all the objects in reverse order. Does this only grab the baseball scores? Or grabs all of them and THEN sorts them by score? (Just for future reference.) > However, it looks like your table is intended to be at least partially > sparse (i.e.

QuerySet Question - Selecting a Single Field

2007-06-05 Thread Bryan Veloso
Alright, new problem for you guys. Here's an example model in an app called "scores", which contains all the scores for a particular player: # Baseball baseball= models.PositiveIntegerField('Baseball Skill Level', blank=True, null=True, maxlength=4) # Bowling bowling

Re: Case insensitive urls

2007-06-02 Thread Bryan Chow
mod_rewrite to map the "wrong case" URLs to the correct ones. For example, you could configure mod_rewrite to convert all URLs to lowercase. RewriteEngine on RewriteMap lowercase int:tolower RewriteRule ^/(.*)$ /${lowercase:$1} Hope this helps. Bryan On Jun 1, 6:35 pm, Ramashis

Re: MySQLdb Error

2007-05-15 Thread Bryan Veloso
It looks like you're using version 1.2.2. Try using 1.2.1_p2 and see if that works, I had a problem similiar to yours and downgrading to that version fixed my problem. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Feed Displaying Odd Dates

2007-05-13 Thread Bryan Veloso
That worked, -and- I learned something too! Thank you for the advice. :D Cheers, Bryan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: How well should I know Python before using Django?

2007-05-10 Thread Bryan Veloso
> To use Django, a developer should have an exceptionally strong > knowledge of the following area(s) of Python: __ > > dictionaries Amen. Those things still baffle me a bit. Other than that, I'd say #1. --~--~-~--~~~---~--~~ You received thi

  1   2   3   >