Re: Chunked or streaming page output

2012-03-09 Thread Kurtis
Mike, Your email won't show up as long as you aren't logged in. I'm not saying that it's full-proof, a bot could easily run around logged in to a Google account, but it greatly reduces the chances (I've never had an issue). Just to add on to Tom's statement concerning the Middleware, one specif

Just sharing my Skype username

2012-04-25 Thread Kurtis
with those who don't. As the case with many Americans, I only speak English. My Skype username: kurtis.mullins Hopefully I didn't just open myself up to a huge influx of craziness :) Thanks - Kurtis Mullins -- You received this message because you are subscribed to the Google Groups

Re: Just sharing my Skype username

2012-04-25 Thread Kurtis
No problem at all :) On Wednesday, April 25, 2012 12:04:30 PM UTC-4, Ahmad wrote: > > Thanks Kurtis for sharing your account I have added you to my contacts :) > > On Wed, Apr 25, 2012 at 5:56 PM, Kurtis wrote: > >> Hey guys/girls, >> >> I want to share my Sk

Re: Canadian Django Meetings?

2012-04-25 Thread Kurtis
If I have enough notice to get a Passport and it landed on a weekend where I was free -- I wouldn't mind taking that trip. I've always wanted to see Toronto anyways :P On Wednesday, April 25, 2012 10:25:53 AM UTC-4, Daniel Sokolowski wrote: > > Does anyone know of any upcoming Django meet ups in

Re: Dajaxice is not defined!!! please heelpppp!! :(

2012-05-03 Thread Kurtis
nly > jquery-ajax to get the work done. is it possible in this way? i can get the > form values sent by jquery in my view without loading the page, this is > actually what i wanted to do with dajax. is it a good go-around for the > problem? > > thanks > > > &g

Is this a bug in the documentation? ModelForm 'fields' attributes throwing error without trailing comma in the Tuple

2012-05-16 Thread Kurtis
Hey guys, I've ran into this problem before and it took me a while to figure out the issue. I've ran into it again while just playing around with a small app. In the ModelForm you can define which fields to use. The documented example is here: https://docs.djangoproject.com/en/1.4/topics/forms

Re: Any clue why Facebook iframe would be blank?

2012-06-19 Thread Kurtis
*Bump* I've been trying to diagnose this problem. I have no idea what's going on, though. 1. I tried just serving a simple .html page on Nginx to see if that's where the problem was. It didn't serve properly (through an error) but it did actually display the error. The problem there was, you c

Using Forms without Request Data

2012-08-13 Thread Kurtis
Hey guys, This may be a simple question and something I will probably just need more time to dig in and try out. What's the best way to send data to a form (specifically ModelForm) without using request.POST? Should I just build a QueryDict object and send that in? Thanks! -- You received th

Re: Using Forms without Request Data

2012-08-13 Thread Kurtis
012 4:55:27 PM UTC-4, Melvyn Sopacua wrote: > > On 13-8-2012 22:34, Kurtis wrote: > > > This may be a simple question and something I will probably just need > more > > time to dig in and try out. What's the best way to send data to a form > > (specifically

Re: Using Forms without Request Data

2012-08-13 Thread Kurtis
On Monday, August 13, 2012 5:37:52 PM UTC-4, Melvyn Sopacua wrote: > > > Hmm. You gain: > - an errors dict > > At the cost of: > - form field instance creation > - widget instance creation > > You can save some resources by investing in a JSONForm class and I'm > wondering if the following do

Re: Using Forms without Request Data

2012-08-13 Thread Kurtis
hough, it would definitely be a sound way to go if it doesn't take too much time. On Monday, August 13, 2012 6:08:11 PM UTC-4, Kurtis wrote: > > On Monday, August 13, 2012 5:37:52 PM UTC-4, Melvyn Sopacua wrote: >> >> >> Hmm. You gain: >> - an errors dict &g

Possible spam from mailing list? ("China Mobile")

2012-09-10 Thread Kurtis
I just received a very unusual e-mail that included a recent post's subject. The post in question was: "Re: form doesn't validate when trying to upload file". It was sent directly to my email address; by-passing the User Group. Google roughly translated this email as coming from "China Mobile"

Model Validation with Exception Handling

2012-09-12 Thread Kurtis
or accordingly. Hopefully that makes sense :) I'm not sure if I'm just over-looking something or trying to do things the hard way but I'm up for suggestions. Keep in mind that Forms + HTML are out of the question since this is an API-only application. Thanks! - Kurtis -- You recei

Re: Alternatives to CBVs (class based views)

2012-09-12 Thread Kurtis
I guess I'm the only one who loves Django's CBVs :( Maybe some good documentation / third-party tutorial is in order? haha Thanks for sharing though, Cal! -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Implementing a List of Foreign Keys in a Model

2011-09-10 Thread Kurtis
Hey Guys, I have a very simple stub of a project. I'm trying to do something that should be very simple but isn't as easy as I hoped. I have a UserProfile class. This object is basically just an extension of the standard User Class. Within my UserProfile class, I want to have a list of PublicProf

Class-based views or "Traditional" Views for Django 1.3?

2011-09-14 Thread Kurtis
re are any advantages to using Class-based views, I may want to take advantage of them. Unfortunately, I don't know enough about the Class-based views to really weigh that out on my own. Any information regarding this decision would be greatly appreciated. Thanks! -Kurtis Mullins -- You receiv

User Registration -> Password not saving

2011-09-21 Thread Kurtis
Hey, I've created my own User Registration FormView. Everything seems to work great except the password is always saved as "!". I can change that with the "password changer" in the admin section of the site. I am using an alternative authentication backend, so I'm not sure if that was causing prob

Re: User Registration -> Password not saving

2011-09-21 Thread Kurtis
I didn't realize the code would come out so unreadable. It's also posted here: http://dpaste.com/618619/ -- 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

Programming logic in Classed Based FormView or in the Form Itself?

2011-09-22 Thread Kurtis
Hey, I'm trying to figure out the best way to do this. I have a FormView and an associated Form. In my Form, I take care of all of the validation and cleaning as far as the input goes. However, I need to put in some more logic such as saving the user, logging in a user, and whatever else the futu

Re: Can you trigger a forms style error from a view?

2011-09-23 Thread Kurtis
Check out http://groups.google.com/group/django-users/browse_thread/thread/40118d7879bbb228# ... I just asked a very similar question recently. On Sep 22, 4:53 pm, John Shaver wrote: > I'm designing a user registration form for my app.  I need to verify > that the username they're using is not a

Handling file uploads in a clustered application server environment

2011-09-23 Thread Kurtis
Hey guys, We have an Nginx front-end with a cluster of Django application servers. What are some methods of handling user uploads in this type of an environment? Thanks! -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, se

Creating a WSGI Request for another uWSGI Django App

2011-09-23 Thread Kurtis
/value pairs I saw in the MoinMoin code. Hopefully someone can understand what I was trying to accomplish there Thanks again! -Kurtis from django.http import HttpResponse # View for URL Called by SVN on Post-Commit Hook def svn_hook(request): # Resources # import urllib # Used in exa

Cloudfiles Storage Backend

2011-09-26 Thread Kurtis
Hey, I really want to build a storage back-end for cloudfiles. The snag is that cloudfiles containers do not allow for a hierarchical directory structure. Everything must be in a "base directory". Does anyone have any suggestions on methods for performing this conversion of a hierarchical directo

Using exists() on queryset for a User

2011-09-26 Thread Kurtis
I'm trying to check if a user with a specified email already exists. According to the docs, it's better to use the .exists() method. I tried this: if User.objects.exists(email = data['email']): raise forms.ValidationError(u'Email Already Exists') However, I get this error: exists() got an u

Re: You -- yes, you -- should contribute to Django.

2011-09-28 Thread Kurtis
Out of curiosity, is this a good place to start? https://code.djangoproject.com/query?status=!closed&easy=1 On Sep 28, 10:33 pm, Kurtis Mullins wrote: > Thanks Shawn. And nice speech! I didn't realize there were so many open > tickets -- especially any as trivial as that. I'

Wanted: JQuery Developer w/ some Django knowledge to build a large site module

2011-09-29 Thread Kurtis
Hey JQuery/Django Developers, We are looking to hire someone to complete a project for us. Read on for details. Background --- I am the lead developer for fireflie.com. We're currently in the beginning of a total site-rebuild using Python/Django. The current site was built by

Re: What is the right way to use S3 as a storage backend?

2011-10-05 Thread Kurtis
I'll give that a shot. I pushed my bucket to the CDN and tried to set that URL manually using: STATIC_URL = 'http://kurtis.s3.amazonaws.com/' Unfortunately, it's still trying to use /static/... Hopefully your idea will work. Thanks! On Oct 5, 9:54 am, Shawn Milochik wrote: > Could it be the ADM

Re: What is the right way to use S3 as a storage backend?

2011-10-05 Thread Kurtis
Admin media. Thanks! Unfortunately, and this is probably an issue with Amazon -- I get a an access denied error when I try to access my files. For example: http://dw2u7t9lse636.cloudfront.net/css/base.css On Oct 5, 10:01 am, Kurtis wrote: > I'll give that a shot. I pushed my bucket t

Re: What is the right way to use S3 as a storage backend?

2011-10-05 Thread Kurtis
Okay I figured it out. Another slip of mind on my part :) I had to change my CDN url to include '/admin/' since that's the subdirectory my admin media is uploaded to. On Oct 5, 10:07 am, Kurtis wrote: > Okay, two things. > > 1. I saw I was potentionally using the wrong

Alternative to Decorators for Class-Based View

2011-10-05 Thread Kurtis
Hey, What's the best way to go about doing things for class-based views such as requiring logins? In the function-based views it was easy to use decorators. Should I just replace the functionality that I would previously have put into decorators into abstract classes that I extend? If so, can som

Sample Custom Decorator

2011-10-11 Thread Kurtis
Hey Guys, Would anyone be willing to show me an example of a very simple and dumb decorator for views? I've been trying to read the existing decorators and play with a couple of snippets but I'm having a lot of trouble with two aspects -- grabbing the User Instance and Redirecting somewhere beside

Re: Trivial view sometimes fails in Chrome

2011-10-11 Thread Kurtis
Honestly I don't have any experience with Django and AJAX Yet. Just in case you haven't checked it out yet -- I've read you've got to submit the CSRF with your calls though. Not sure if that helps at all. Good luck! On Oct 11, 6:07 am, Pigletto wrote: > Simple view, shown below, sometimes fail in

RDF Store Backend

2011-10-13 Thread Kurtis
Possible? Has anyone prototyped it or put any thought into it? Is it something people would be interested in? I'm pretty new to this technology but it's a big thing at my university (knoesis.wright.edu). I'd have some great people to consult with if this would be a good personal, research project

Class Based FormView - Initial Logic

2011-10-17 Thread Kurtis
Hey, I have a FormView and a Form. I want to put in some logic that will take place before the Form is even displayed. I know I could throw this in a decorator and wrap the View but there's only a couple of views that need this specific functionality and didn't see a need for a whole new decorator

Django Docs Suggestion - Color Code

2011-10-19 Thread Kurtis
Hey Guys, I know I saw in one of the threads where someone had asked how another person had missed the doc's version number. Just a suggestion on making these things a bit more obvious, you could color code them. It doesn't have to be on a per-version basis but maybe do something along the lines

Templates available to a cluster

2011-10-19 Thread Kurtis
I'm working on a project where I will eventually need to be able to add/delete/manage templates on the fly. Our Django Application Servers are setup as a cluster behind an Nginx Front-end Server. We're not at that point, yet -- but I wanted to see if there's any architectural issues I need to prep

Field.Choices in Template

2011-10-20 Thread Kurtis
Hey, I'm trying to build a custom template for my ModelForm. My ModelForm contains several M2M fields. If I run the ModelForm.as_view and then in my template print {{ form.as_p }} it'll automagically display those choices. Now what I want to do is take advantage of that magic and print out those

Re: Date and time picker in Django

2011-10-20 Thread Kurtis
I just use Jquery-UI DatePicker http://jqueryui.com/demos/datepicker/ On Oct 20, 7:46 am, Mario Gudelj wrote: > Hi guys, > > I'm looking for a date/time picker that I can use in my web forms. I've used > DateTimeField in my models and have to implement date in this format > "2011-10-19 21:34". I

DB for 2010 Census Zip Code Data

2011-10-21 Thread Kurtis
I'm thinking of creating a Django app that will include all US Zip Codes from the 2010 Census Data. It will probably include a couple of helper functions for calculating "other zip codes within X proximity". I know I could probably use GeoDjango for this but it's a bit heavy for just this small da

Re: Django as a Standalone Desktop Application

2011-10-21 Thread Kurtis
It would be cool to have some sort of an automatic deployment thing where it includes a Custom Firefox, Django (w/ runserver) and an sqlite database all wrapped up into a single executable package. Especially if you could do cross-platform builds so that it automatically creates Windows, OSX, and L

Re: Cannot install freetype to use the 'django-simple-captcha' application.

2011-10-22 Thread Kurtis
I don't run Windows but I quickly glanced over the Freetype documentation. You'll need to make sure that Freetype is in your compiler path and that you reference it when you compile PIL. For my information, look at this page: http://freetype.sourceforge.net/freetype2/docs/tutorial/step1.html Hope

Re: Storage Backend for MediaTemple's ProCDN?

2011-10-22 Thread Kurtis
Hello, I never heard of MediaTemple or their CDN until I read your post. I tried to look at their site for your information and it seems to be hidden. We just went through this same thing but starting with Rackspace and then moved to Amazon. One thing I ran across is that they (MT) use "Objects"

How do I set an instance? (Model -> ModelForm -> FormView)

2011-10-23 Thread Kurtis
Hey, I have a Model, a ModelForm (that does other custom stuff aside from just editing the Model) and a FormView. Everything works great for creating the Model and running my custom logic to do other things. I'm trying to create an Edit/Update View now. I tried looking at UpdateView as mentioned

Help w/ optimization

2011-10-24 Thread Kurtis
Hey guys, I have some custom context in a view. I'm going to be replicating this context three times for different object relationships. I didn't count, but looking at django-debug-toolbar I'm thinking this block of code runs at around 10 queries. Times that by 3 and I'm going to be bogging my app

Re: Field.Choices in Template

2011-10-24 Thread Kurtis
11 at 8:37 PM, Kurtis wrote: > > Hey, > > > I'm trying to build a custom template for my ModelForm. My ModelForm > > contains several M2M fields. If I run the ModelForm.as_view and then > > in my template print {{ form.as_p }} it'll automagically display thos

CBV "Router"

2011-10-28 Thread Kurtis
Hey Guys, I'm trying to create a "router" as recommended in IRC for several different views. My Views are UpdateViews, so they are the new CBVs. I don't mind my router being a simple function based view, though. Basically, a User can edit some data. This data changes based upon the user's "class"

Re: No module named django after upgrade to os x Lion

2011-10-28 Thread Kurtis
Okay, I think I've got the exact steps down needed to get this running right. If these are actually it, I'm not sure if I had any other prerequisites I can't think of at the moment, then it's a matter of copying and pasting 3 lines into your terminal. (Less than 5-10 minutes total) 1. Install "Bre

MongoDB

2011-10-29 Thread Kurtis
Hey, I started doing some heavier reading on MongoDB and realized that is awesome! I took a look around at using it as a back-end for Django and it seems like you have to use the Django-norel fork. My question to those who have used it -- is it a fairly extensive change to go from a standard rela

Suggestions on "Loading" for possible long load-times?

2011-11-01 Thread Kurtis
Hey, I've got a part of my site that is just prototyped at the moment. It's not particularly optimized since it's still in the works. I don't think it's going to take a considerable amount of time to load while we have few users. But, when we start migrating our old users to the new system, I can

Image Model, Form and View -> Easily change "upload_to" path from form.save()?

2011-11-01 Thread Kurtis
Hey, I've got a very simple setup for a sample application. Basically, I have a Model w/ an ImageField. I have a ModelForm using that Model. Finally, I have a FormView for using that Form. In my View, I call my form's .save() method and pass along the request user. I'd like to manipulate where th

Re: Image Model, Form and View -> Easily change "upload_to" path from form.save()?

2011-11-01 Thread Kurtis
.DateField(auto_now_add = True) user = models.ForeignKey(User) # Note: upload_to is referencing the above function in the same file. data = models.ImageField(upload_to = user_image_folder) On Nov 1, 10:55 pm, Kurtis wrote: > Hey, > > I've got a very simple setup for a sample application

Abstract FormView

2011-11-02 Thread Kurtis
Hey, I have a couple of FormViews that override quite a few methods. I want to write an "Abstract View" that I can subclass for these. I'm guessing what I actually need is a custom Mixin but I'm really not sure. Any suggestions on how to go about doing this? Some methods I'm overriding: get_for

User-Based Custom CSS & API

2011-11-09 Thread Kurtis
Hey, I just created a nice little prototype of a custom API Application. This application allows you to set various CSS Selector/Value/ Attributes elements. It also dumps the data (on a per-user basis) to a dynamically generated CSS file. There's going to be quite a bit more features in the future

Looking for my replacement (Lead Developer at a Start-up)

2011-11-22 Thread Kurtis
MySQL - A Love of Music Please contact me immediately if you feel you are willing to take on a project of this magnitude and can do so within the constraints of their budget. They pay well and this might grow into a full time opportunity given the start-up succeeds. Thanks, - Kurtis Mullins --

SyncDB w/ MySQL - Has anyone seen an error like this?

2013-05-11 Thread Kurtis
When running syncdb, I am getting an unusual error. I'm using Django 1.5.1 and a relatively recent version of MariaDB on Arch. I am using some pre-existing tables which I've built Models around. The error is: *DatabaseError: (1005, "Can't create table '.#sql-1e51_2be' (errno: 150)")* Running sy

Re: SyncDB w/ MySQL - Has anyone seen an error like this?

2013-05-11 Thread Kurtis
I should mention that I *did* convert all of my existing tables to InnoDB which hasn't helped at all. I don't have any weird configuration in my settings.py dealing with the database. As far as I can tell, all new tables created by syncdb are also InnoDB. -- You received this message because y

Re: SyncDB w/ MySQL - Has anyone seen an error like this?

2013-05-11 Thread Kurtis
To try and find more information, I erased the Django-created tables and re-ran syncdb again. This time, I turned verbosity on to 3 and piped all of my stdout to a text file. I actually did this first. However, here's the contents of the first one which includes everything up to the point of fa

Disable "Password Upgrading"?

2013-05-14 Thread Kurtis
e top (or bottom) of the PASSWORD_HASHERS tuple? 2. *How can I disable or otherwise bypass this feature?* The database I am working with is shared with an older code-base and until we migrate the other components, I"d rather not "upgrade" the existing password hashes. Thanks! - Ku

Integrating NoSQL-persisted custom Models

2013-05-23 Thread Kurtis
f anyone has given this a shot before, can you share some tips or pitfalls you ran into during the process? Thanks! - Kurtis -- 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

Suggestions on caching queries for a single request on a subset of Views?

2013-06-10 Thread Kurtis
has suggestions or experience with implementing something along these lines. I have some 'creative' ideas on how to do it but I'd like to get some input first. Thanks! - Kurtis -- You received this message because you are subscribed to the Google Groups "Django users" group. T

Per-Request Query-set Cache

2013-06-19 Thread Kurtis
rger ORM caching libraries but I'd like to find a clean solution without a whole lot of overhead. Thanks! - Kurtis -- 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, se

Re: using django templates to generate and replace a file

2012-02-29 Thread Kurtis Mullins
docs.python.org/tutorial/inputoutput.html Hopefully that helps a little bit. I'm not sure if I understand the problem right but I figured I'd give it a shot. Good luck! - Kurtis On Wed, Feb 29, 2012 at 4:27 PM, Paul Bunker wrote: > Hi Django Users, > > I'd like to use the dj

Re: Uploading Large Files via Ajax

2012-03-10 Thread Kurtis Mullins
Hey, I don't have a good answer for your exact question. One alternative, though, may be to use nginx, or another httpd, to handle the upload and just have it pass the path along to Django. e.g. http://www.grid.net.ru/nginx/upload.en.html Good luck! On Sat, Mar 10, 2012 at 11:18 AM, Fedel Bari w

Re: Django application performance estimates?

2012-03-15 Thread Kurtis Mullins
Sorry for the late chime-in. Here's the "budget scalability" route we at http://www.fireflie.com are taking for our rewrite in Django. We decided to go with AWS. Initial hosting costs are free for the server until we are ready to push to production and need a larger instance. We are using Nginx fo

Re: Django application performance estimates?

2012-03-15 Thread Kurtis Mullins
; infinite and beyond. I meant "paying $1,000 for a *scalable* web application, and therefore expecting a large amount of traffic...". Sorry about that. On Thu, Mar 15, 2012 at 9:55 PM, Kurtis Mullins wrote: > Sorry for the late chime-in. Here's the "budget scalability"

Re: intriguing django session save behavior

2012-03-19 Thread Kurtis Mullins
What are you using for your session engine? Maybe try another one? ( https://docs.djangoproject.com/en/1.3/topics/http/sessions/#configuring-the-session-engine ) On Sun, Mar 18, 2012 at 9:51 AM, pyramid...@gmail.com wrote: > If i clear my cookies and run this view, i get a new session key each >

Re: Combining two model fields into one

2012-03-19 Thread Kurtis Mullins
Personally, I would just create a custom Form for that validation logic then store the number in some generic Model Field (like IntegerField). You can write a method in your model to format that integer as a telephone number for display purposes using __string__ or other similar methods. Just conve

Re: Combining two model fields into one

2012-03-19 Thread Kurtis Mullins
field, though. They do include telephone numbers. Judging by the django developer's choice to put that logic in Form Fields instead of Model Fields, it may be a good idea (or at least easier) to follow their lead on doing it that way. On Mon, Mar 19, 2012 at 9:49 AM, Kurtis Mullins

Re: New way to run your Django projects

2012-03-19 Thread Kurtis Mullins
> > I'm not sure what you meant by "simply using nginx" since as far as I > know it doesn't have standard WSGI module. I use Nginx w/ WSGI (Django running under uWSGI, communicating w/ WSGI Protocol) out of the box. No special modules or anything were installed -- just a quick download and compil

Re: Send SMTP Email Through GoDaddy

2012-03-19 Thread Kurtis Mullins
People will probably need more information to help you. For example, what are the errors you are seeing? On Mon, Mar 19, 2012 at 9:44 AM, Enrique Juan de Dios wrote: > Hello Everyone. > I tried to send email with the email settings shown below, but doesn't > work. > > EMAIL_HOST = 'smtpout.secure

Re: New way to run your Django projects

2012-03-19 Thread Kurtis Mullins
elf. Good luck and happy hacking! On Mon, Mar 19, 2012 at 10:46 AM, Alexander wrote: > Kurtis, > > There is nothing wrong with using uwsgi protocol instead of FastCGI > but you still have to run uWSGI server and it doesn't fit "simply > using nginx" description. And

Re: Question about threading a view

2012-03-19 Thread Kurtis Mullins
Check out django-celery. On Mon, Mar 19, 2012 at 1:52 PM, Felipe Arruda < felipe.arruda.pon...@gmail.com> wrote: > Hi, I'll try to explain the best I can my problem, and I don't know if > what I'm trying to archive is the best way to get where I want, but > here is it: > I want that a specific vi

Re: Question about threading a view[REPOSTED]

2012-03-19 Thread Kurtis Mullins
Did you check out django-celery yet? On Mon, Mar 19, 2012 at 2:18 PM, Arruda wrote: > *(I've created a topic like this a few minutes ago, but was using the old > google groups, and now it's broken. So I created a new one using the new > google groups).* > Hi, I'll try to explain the best I can my

Re: ModelForms

2012-03-23 Thread Kurtis Mullins
If you're worried about stylizing specific fields, it'll be setup as a table, ul, or paragraph based upon how you "render the form" (paragraph by default I think). The individual fields are named with the following convention (if I recall correctly) . So for a field named "password" in a paragraph

Re: Django Book

2012-04-12 Thread Kurtis Mullins
I keep a checked out copy of the Django source code and just refer to the source code, docs, google, the mailing list and IRC for reference, I tried the book when I first started but it lacked the Class Based Views which I prefer to use when possible. Good luck! On Thu, Apr 12, 2012 at 8:49 AM, R

Re: Django questions.

2012-04-25 Thread Kurtis Mullins
Man, I think if you don't know the answers to these questions -- you may not want to apply for that job. Go research and play with NoSQL. Read the documentation on Template Tags -- and realistically, the point of the Templating engine in general. If you don't know about the Data Layer then read the

Re: Django CRUD questions

2012-04-25 Thread Kurtis Mullins
Check out ModelForms: https://docs.djangoproject.com/en/dev/topics/forms/modelforms/#django.forms.ModelForm Note: I'm not sure which version of Django you are using but you may want to choose a different document-version respectively. Also, check out CreateView, UpdateView, and DeleteView for your

Re: [JOB] Urgent - PHP/Python Developer needed

2012-05-01 Thread Kurtis Mullins
Congrats on finding people to fill your position(s), Cal! At first I read that and thought "man, that's almost insulting". I can honestly say that it's not completely unfair to pay someone $20/hour -- especially if they're still in school. I barely make more than that as a lead-developer for a sta

Re: Django - Worldwide Developer Rates - Hourly Income - location and project duration specific

2012-05-01 Thread Kurtis Mullins
Raphael, According to another topic -- some developers are being paid roughly $20/hour. It's under a post by Cal Lemmings where he is trying to hire some entry level developer(s). You might be able to use that information as well. I just thought I'd let you know. On Mon, Apr 30, 2012 at 4:24 PM,

Re: serving client uploaded files

2012-05-01 Thread Kurtis Mullins
You could use a pseudo-random filename so that it's very unlikely people will be able to easily find other's photos. If you're very concerned with users being authenticated before viewing the media (which to me, sounds like there won't be a huge load on that segment of your web application) then y

Re: The template tag {% load tz %}

2012-05-01 Thread Kurtis Mullins
http://stackoverflow.com/questions/550632/favorite-django-tips-features -- Fourth Answer Down from the Top: from django import template template.add_to_builtins('project.app.templatetags.custom_tag_module') On Mon, Apr 30, 2012 at 9:40 PM, CLIFFORD ILKAY wrote: > On 04/30/2012 09:21 PM, Rajat

Re: [help] Server Config: django + uwsgi + nginx

2012-05-01 Thread Kurtis Mullins
Judging from your Import Error -- I think you're having a problem with Django not being on the Python path. In my uwsgi configuration file (I used .xml), it looks like this: DJANGO_SETTINGS_MODULE=fireflie.settings 4 0.0.0.0:7999 /home/fireflie/staging/fireflie/ django.co

Re: Paramiko EOFErrors start to occur after a while

2012-05-01 Thread Kurtis Mullins
I messed with the SFTP implementatoin a while back. I noticed it was pretty tough and, if I'm not mistaken, a bit out-dated. We ended up moving to Amazon S3 so it wasn't a big deal. Anyways, maybe you could try using another file system? SSH isn't really an ideal solution for this sort of a proble

Re: [help] Server Config: django + uwsgi + nginx

2012-05-03 Thread Kurtis Mullins
only. I was a little > confused thinking that was ready for deployment. I'm new to all this and > get confuse sometimes. > > > On Tuesday, May 1, 2012 8:04:00 AM UTC-7, Kurtis wrote: >> >> Judging from your Import Error -- I think you're having a problem with >>

Re: Access specific ModelForm field option within array of ModelForms for use with .js

2012-05-03 Thread Kurtis Mullins
You could do something along these lines: {% for field in form %} ... {% ifequal field form.someSpecificField %} > {{ form }} > > {% endfor %} > > Previously I have accessed certain ModelForms using {% if forloop.counter > == # %} to add some customization. > > However, now I would like more de

Re: jquery form post without refresh the page

2012-05-03 Thread Kurtis Mullins
quot;, it won't work. }); // On Error: jqxhr.error(function() { // Do something in here in the case of errors. }); }); Good luck! -Kurtis Mullins On Thu, May 3, 2012 at 1:46 PM, Bill Freeman wrote: > AJAX > > You may require a separate view, but maybe not. > > If you

Re: Need help

2012-05-03 Thread Kurtis Mullins
Your Database may very well be setup to Authenticate the Accessing User on 127.0.0.1 and not 'localhost' (or vice-versa). This would be setup in the database when setting credentials for a user, in the case with MySQL. On Wed, May 2, 2012 at 9:52 PM, Peter of the Norse < rahmcoff+...@radio1190.org

Re: Django - Worldwide Developer Rates - Hourly Income - location and project duration specific

2012-05-03 Thread Kurtis Mullins
dle clients, clear and concise >> communication plays a huge part in pricing. >> >> The other problem is that the market is flooded with charlatans, who are >> driving the prices up and make it even more diluted for the rest of us. >> >> You also have to remember tha

Re: Short I hope explanation

2012-05-03 Thread Kurtis Mullins
When I first dove into Django, everything was confusing. I can't say I ever used the book because I wanted to use class-based-views immediately (was recommended in IRC). They were confusing as could be, I constantly needed hand-holding, etc... Eventually, I started to understand things a bit more,

Re: users and groups management without admin site??

2012-05-03 Thread Kurtis Mullins
It might help to get a little bit more information. Do you want to programmatically manage them to use in another application (or though the command-line), do you want a web-based interface, etc...? On Thu, May 3, 2012 at 3:34 PM, William Ibarra Rodriguez < legolas...@gmail.com> wrote: > i've wor

Re: users and groups management without admin site??

2012-05-03 Thread Kurtis Mullins
Awesome. Well, I'm not sure how familiar you are with Django but I'd just create views for the different functionality (for example, creating a new user). There's nothing the admin does that you can't do yourself. If you run into a specific problem, feel free to ask! On Thu, May 3, 2012 at 4:10 PM

Re: 404 errors reported as 500 errors

2012-05-03 Thread Kurtis Mullins
Are those symlinks? It might be worth seeing if that's part of the problem (although doubtful that it would be). If that's not the problem, does Django-CMS have its own specialized 404 handling? I've never used it but it's a couple of ideas to try out. On Thu, May 3, 2012 at 10:03 AM, James Hargre

Re: help with "Key 'timeout' not found in "

2012-05-03 Thread Kurtis Mullins
Can we see what your "Reservation" model looks like? Specifically, that 'timeout' field? On Thu, May 3, 2012 at 6:22 PM, psychok7 wrote: > hi i have done a succefull query and i converted the results into links so > i can make a post by clicking on the links to make a reservation. > > my problem

RE: help with "Key 'timeout' not found in "

2012-05-03 Thread Kurtis Mullins
(”The timeout variable wasn’t posted.”) This time, you should see exactly where that error is popping up. Also, ModelForm + CreateView would be a great an easy combination for this exact situation. Good luck! -Kurtis Mullins *From:* psychok7 *Sent:* Thursday, May 03, 2012 4:47:56 PM *To:* django-

Re: Why does django use mysqldb over mysql-connector?

2012-05-03 Thread Kurtis Mullins
I think what he was trying to get at is that the Python MySQL Adapter is in early stages of development where-as Django is depended upon to be a very stable platform/framework. It would be great to have the option to use that adapter though for situations like yours. On Fri, May 4, 2012 at 1:21 AM

Re: help with "Key 'timeout' not found in "

2012-05-04 Thread Kurtis Mullins
Jani is right, I didn't take a close look at that HTML. Using this (without any Javascript), you're not submitting a form with method="post" so you won't actually have any of that request.POST data available that you're looking for. On Fri, May 4, 2012 at 3:58 AM, Jani Tiainen wrote: > > 4.5.201

Re: UpdateView issue

2012-05-04 Thread Kurtis Mullins
In your form (template), are you trying to modify the is_active? I don't see anything that pops out at me that's missing. If you want to explicitly set this, you could do someting like this: class UserForm(ModelForm): # def save(self): m = super(UserForm, self).save(commit =

Re: UpdateView issue

2012-05-05 Thread Kurtis Mullins
hmm, are you supplying the user's pk to the UpdateView? On Fri, May 4, 2012 at 11:24 PM, William Ibarra Rodriguez < legolas...@gmail.com> wrote: > i made it but isn't solved, maybe i need to override another function > in the class UpdateUserView? > > -- > You received this message because you ar

Re: Paramiko EOFErrors start to occur after a while

2012-05-08 Thread Kurtis Mullins
t; Unfortunatly we can't move to Amazon S3. So what other file system or >> transfer method would you recommend? We had an NFS in place, but getting it >> to play nice with permissions was quite a hassle. >> >> How do other people do this? >> >> Tino >>

Re: how to get text of a ChoiceField populated with ajax

2012-05-08 Thread Kurtis Mullins
cleaned_data should return the value of the field, not the index. Did you create your own clean__fieldname method? On Tue, May 8, 2012 at 11:35 AM, francescortiz wrote: > You have to make sure that the javascript code that populates the second > select box sets the value properly, or create a cus

  1   2   3   4   5   >