Re: New to DJANGO

2012-06-26 Thread Kurtis Mullins
> We *will not* tolerate the use of official Django forums to support > the illegal distribution of copyrighted work -- especially when you're > violating the copyright of members of this community. > > The Django Book is available for free online [1]. However, the PDF is > NOT freely distributable

Re: New to DJANGO

2012-06-26 Thread Kurtis Mullins
Actually, turns out I just had to read a bit more :) Sorry! So, the actual content of the Django Book is allowed to be freely re-distributed under the GNU Free Documentation License. The actual "Layout and design" remains under the control of the authors and required written permission to reproduc

Re: replace or regex

2012-06-28 Thread Kurtis Mullins
You could use regular expressions to parse the string, break it up into chunks and simply remove the first and last chunk (or whatever you're looking for) Also, you could use a DOM Parser to parse this tree and remove the outer-most . Just make sure you don't remove the entire DOM Tree within the U

Re: Redirect question

2012-06-29 Thread Kurtis Mullins
> > [...] Also I would like you to point out if I did something here that could have > been done in better way so I can do it right and learn for the future. If you're using Class Based Views, you can use a mixin to achieve this. Here's mine if you want to check it out: http://stackoverflow.com/

Re: Hello Django Warriors!

2012-07-14 Thread Kurtis Mullins
On Sat, Jul 14, 2012 at 4:44 PM, Kakar > I'm very new to this Phyton and i just downloaded django package. What i > wanted to ask was,..can i make a social site where the users itself can > customize their themes or the layout??? > M a vey newbie in programming so please explain me in detail. Tha

Re: Query Distance from User

2012-07-14 Thread Kurtis Mullins
Why not just have them enter their location? I'd comment more but I work for a commercial site that looks like it might be treading in the same area so I don't wanna get myself in trouble here :) On Sun, Jul 15, 2012 at 12:58 AM, JJ Zolper wrote: > So heres my goal: > > The user logins in and go

Re: ForeignKey problem

2012-07-16 Thread Kurtis Mullins
I'd suggest taking a step back from the data structure of your application, decide what you want to do with your data, and then take another stab at it. If you have more questions, I'd recommend posting your questions using your application's real domain instead of continuing to use "similar" idea

Re: Tutorial question

2012-07-17 Thread Kurtis Mullins
Hey Jeff, Yes, these methods would go inside of your Poll Class. I'm not sure if the indentation was messed up through e-mail, but make sure that your method body is indented one step deeper than your method signature. For example: class Poll(...): # def __unicode__(self): ret

Re: Any free cloud database hosting ?

2012-07-17 Thread Kurtis Mullins
Just setup an amazon EC2 free-tier instance and run your own database. You don't need a credit card for that, do you? (Or maybe you do?) Also, rackspace has a "beta" cloud-based Database that is currently free (until it goes live soon). It's based off of MySQL. Finally, maybe you could look f

Re: django+apache

2012-07-17 Thread Kurtis Mullins
blem and I'm sure someone will do their best to help you out. Good luck! - Kurtis Mullins On Tue, Jul 17, 2012 at 6:39 PM, Carlos Andre wrote: > hi programers, i'm with troble in apache with django connect! > what i can make to connect! > i start with mod_python, but have

Re: one field of modelForm doesn't being displayed

2012-07-18 Thread Kurtis Mullins
You could override your ModelForm's save() method to save some data to that field. And then modify the same ModelForm to exclude that field. For example, class MyForm(ModelForm): class Meta: exclude = ('excluded_field',) That way it won't expect any data for the field when processing

Re: template filter to split string

2012-07-19 Thread Kurtis Mullins
You could create a custom template tag to do this. Then just do something like {% load page_title %} ... {{ page_title }} Or create a context middleware that will always creates a variable with the proper data. On Thu, Jul 19, 2012 at 12:36 PM, Markus Gattol wrote: > within the head section of

Re: Can't access members in a template

2012-07-23 Thread Kurtis Mullins
Try: {{ u.name }} (with spaces) On Mon, Jul 23, 2012 at 10:35 AM, twelve_o_clock wrote: > I am trying to access data in a template in django. I have a variable u > with members name, email, id, and date. However when I put {{u.name}} in > a template, it doesn't appear in the HTML file even thoug

Re: how to make template for startapp and startproyect?

2012-07-24 Thread Kurtis Mullins
Check this post out for some decent tips: http://stackoverflow.com/questions/5661861/customised-settings-files-using-django-admin-py-startproject On Tue, Jul 24, 2012 at 4:39 PM, Thomas Lockhart wrote: > On 7/24/12 11:24 AM, kase wrote: > >> hello.. i wish make my templates for django-admin.py

Re: ignore field during form validation

2012-07-26 Thread Kurtis Mullins
You could remove "required=True" from 'len' and override clean() to perform a multiple-field validation. (pretty much what Thomas mentioned) len() will execute -- it will check to see if it's an integer. If you just want to completely ignore it, then do exactly as Thomas said, override. But you'll

Re: Need urgrnt help for this new bee...

2012-07-27 Thread Kurtis Mullins
Break down your problem into smaller, abstract pieces. Then start implementing them one piece at a time. If you don't know how to do something specific, I'm sure people will be more than willing to help. But asking "How do I accomplish a large task" isn't going to bring you much help, unfortunately

Re: Form validation using model data?

2012-07-29 Thread Kurtis Mullins
Just to get some more information about the problem; Do you allow your users to initially insert the Name+URL? When does this become "authenticated"? Maybe you could have two forms. One that allows users to add new Name+URL Objects (not sure what your object/Model is called) and another to allow t

Re: merge data from multiple models

2012-07-30 Thread Kurtis Mullins
Try building this query set in your view and use the .filter() method. For example, relevant_data = ModelA.objects.filter(unique_field__in=ModelB.objects.all().values('unique_field')) https://docs.djangoproject.com/en/dev/ref/models/querysets/#in On Jul 30, 2012 7:27 AM, "Joris" wrote: > Dear

Re: Form validation using model data?

2012-07-31 Thread Kurtis Mullins
; > A simpler alternative is to remove the 'update' button altogether, but > also in this case the view should also throw a 404 or 500 just in case > someone manually modifies the url (which is by the way very easy to do > so). > > Paul > > > > Op maandag 30 j

Re: MySQL total overheat (somewhat complex database)

2012-08-01 Thread Kurtis Mullins
On Sat, Jul 28, 2012 at 2:44 PM, lubos wrote: > Hello, > > I have a quite sophisticated database with frequently interconnected > tables and on the top level table, Django produces queries like this: > > SELECT `data_schedule`.`id`, `data_schedule`.`process_id`, > `data_schedule`.`hardware_id`, `

Re: How to print a graph

2012-08-01 Thread Kurtis Mullins
If you can convert the Graph into an image (file or object) than you could use PIL (Python Imaging Library) to dynamically generate an image and serve it via a dynamically generated link. On Wed, Aug 1, 2012 at 3:19 PM, Peregil wrote: > I need to have the graphic on a web page... as soon as a us

Re: Detecting browser type after login

2012-08-01 Thread Kurtis Mullins
Is the "Dialog Box" going to be presented using Javascript? If so, why not use Javascript for this functionality? I'd typically only use this type of functionality to serve pages when javascript isn't enabled or you need to show various templates based upon the type of browser (for example, a Mobil

Re: Detecting browser type after login

2012-08-01 Thread Kurtis Mullins
late based upon that context data. In short, put this logic in the view the user is sent to after they've logged in. On Wed, Aug 1, 2012 at 3:36 PM, Kurtis Mullins wrote: > Is the "Dialog Box" going to be presented using Javascript? If so, why not > use Javascript for this functi

Re: Detecting browser type after login

2012-08-02 Thread Kurtis Mullins
Hey Larry, Okay, let me make sure I understand this correctly. This is, essentially, the flow of control you'd like to implement: 1. User signs in successfully 2. User is prompted to some other (any other) page 3. User is presented with a one-time only popup The simple way to implement something

Re: Detecting browser type after login

2012-08-02 Thread Kurtis Mullins
Whoops, quick fix in my message (Item #2): > 1. User signs in successfully > 2. User is *redirected* to some other (any other) page > 3. User is presented with a one-time-only popup > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post t

Re: Major Trouble Understanding Sessions Documentation

2012-08-02 Thread Kurtis Mullins
Hey Gregory, On Thu, Aug 2, 2012 at 9:06 AM, Gregory Thompson Jr. < spockthompso...@gmail.com> wrote: > I'd like to pass form data from one view to another. > > Here's my attempt: > > *#Models.py* > from django import forms > class Textizer(forms.Form): > to_textize = forms.CharField(max_leng

Re: Noob question

2012-08-02 Thread Kurtis Mullins
Syntax looks good -- but I didn't look at it too closely or try to execute it. Run it and see if it complains :) (python manage.py sqlall) I would recommend dropping your explicit primary keys. These are generated automatically by Django. On Thu, Aug 2, 2012 at 10:27 AM, Demian Brecht wrote: > W

Re: Major Trouble Understanding Sessions Documentation

2012-08-02 Thread Kurtis Mullins
On Thu, Aug 2, 2012 at 10:57 AM, Gregory Thompson Jr. < spockthompso...@gmail.com> wrote: > Thanks a load! You've cleared up a lot! > > Yes, I have read through the tutorial. I even wrote a shortened version > of it to act as notes as I learn: http://polydoo.com/code/?p=48 (my > blog) > > Than

Re: Detecting browser type after login

2012-08-02 Thread Kurtis Mullins
Sorry I didn't catch this part. You could modify your "Login" view to check the user agent and if it's an incompatible browser, and simply return a template that tells them their browser is unsupported. I'd do this before they even hit the Login Form just to be courteous to the user. But this modif

Re: Issue Deploying Django

2012-08-02 Thread Kurtis Mullins
I'd recommend another host. There's many issues you may run into with using a shared hosting provider that doesn't explicitly support Django. The best option (in my opinion) is to just get a cheap Cloud Server if you're up for the task of managing them ($10/month at Rackspace or Free for one year a

Re: Detecting browser type after login

2012-08-02 Thread Kurtis Mullins
ccordingly. Shouldn't take but 15 minutes to implement. On Thu, Aug 2, 2012 at 12:17 PM, Larry Martell wrote: > On Thu, Aug 2, 2012 at 9:24 AM, Kurtis Mullins > wrote: > > Sorry I didn't catch this part. You could modify your "Login" view to > check > > the

Re: Issue Deploying Django

2012-08-03 Thread Kurtis Mullins
With Cloud Servers, yes -- you do get Root access. It's basically the equivelant of a VPS that you can easily spawn, scale, and replicate as needed. Without root access on servers, virtual environments only get you so far. What happens when you need to install Python imaging library but they don't

Re: Sample Django template scrolling table

2012-08-03 Thread Kurtis Mullins
Can you clarify by what you mean when you say "scroll through the table back and forth"? This is pretty easy to implement using CSS/HTML and isn't relevant to Django in particular -- but maybe I'm simply misunderstanding your question :) On Fri, Aug 3, 2012 at 3:08 PM, Charles Norton wrote: > I

Re: object.create speed, creating 3 objects takes 1 sec in sqlite

2012-08-03 Thread Kurtis Mullins
If you plan to create a batch of objects, I wouldn't recommend going that route. Instead, check this out: https://docs.djangoproject.com/en/dev/howto/initial-data/ Has Django really such a bad performance for data insertion? The Object Relational Mapper does quite a bit more than simply write S

Re: Registering only folks with .org email

2012-08-03 Thread Kurtis Mullins
of monitoring your changes, and may even get some help from others. Anyways, those are just some ideas... I'm sure others will have more! Good luck! - Kurtis On Fri, Aug 3, 2012 at 3:58 PM, Steve wrote: > I am very new to Django but I like it a lot. I learned about the > regist

Re: .filter(Q(childobj__attr1="something", childobj__attr2__gte=100)) and .filter(~Q(childobj__attr1="something", childobj__attr2__gte=100)) Don't Produce Opposite Results

2012-08-03 Thread Kurtis Mullins
Let's write this in logical notation models.ParentObj.objects.filter(Q(childobj__attr1="something", > childobj__attr2__gte=100)).count() A AND B This query should give you all objects where both attr1="something" is true AND attr2_gte=100 is true. Does this sound right from the data you have at

Re: Separate file stream from request input stream while upload

2012-08-08 Thread Kurtis Mullins
Check out nginx. It can be configured to separately upload a file and provide a status indicator. I'm not sure if you could still retrieve the WSGI Request separately or not -- but you could always take the AJAX route like Russ suggested. On Wed, Aug 8, 2012 at 6:42 AM, Jian Chang wrote: > 是不是可以

Re: Middleware manipulating template in response

2012-08-09 Thread Kurtis Mullins
I saw this in one of the previous Python newsletters (I think) and it looked pretty interesting: https://github.com/gregmuellegger/django-mobile On Thu, Aug 9, 2012 at 9:29 AM, Thomas Weholt wrote: > Hmmm ... is there any other way to achieve the same result ( using a > special template for mobil

Re: Issue Deploying Django

2012-08-12 Thread Kurtis Mullins
On Aug 11, 2012 6:31 PM, "Mario Lacunza" wrote: > > Dont forget ask to webfaction about it too before > you buy the package, you have root access in WF > and you can install whaterver you want I guess. Web faction gives root access now? > Anyways ask WF support. > > http://www.webfaction.com?aff

Re: custom management commands: AttributeError: 'module' object has no attribute 'Command'

2012-08-13 Thread Kurtis Mullins
I'd look more into the full traceback. I haven't had any trouble with underscores either. On Mon, Aug 13, 2012 at 2:31 PM, creecode wrote: > I have many custom management command names that have underscores in them. > I've never had a problem. I believe that a management command name only > ne

Re: Using Forms without Request Data

2012-08-13 Thread Kurtis Mullins
On Mon, Aug 13, 2012 at 5:10 PM, Melvyn Sopacua wrote: > > > data argument to a form instance must be a dictionary-like object. Other > then that there's no requirements. > I'm kinda curious why you need a form if you're using a non-html data > format. > > I figured it out :) It was as simple as cr

Re: Using Forms without Request Data

2012-08-14 Thread Kurtis Mullins
name = form.cleaned_data['name'] > ... > > This works for me very well. Hope it will work for you too. > > вторник, 14 августа 2012 г., 0:14:14 UTC+3 пользователь Kurtis написал: > >> On Mon, Aug 13, 2012 at 5:10 PM, Melvyn Sopacua wrote: >>>

Re: DJANGO_DEFAULT_SETTINGS

2012-08-14 Thread Kurtis Mullins
Hey Carlos, Unfortunately I'm having a difficult time understanding your English. I do apologize! If I understand correctly, it sounds like you want to insert some data using the shell and you're running into an error. Can you show us the error you are getting? On Tue, Aug 14, 2012 at 2:48 PM, C

Re: 回复: Stuck on "ViewDoesNotExist" last step of tutorial part 4

2012-08-15 Thread Kurtis Mullins
This line should be commented out: "Uncomment the next two lines to enable the admin:" Also, I don't see why it's trying to import 'polls.views.index'. That would be a function named 'index' in your views.py file in the polls directory (also known as a module). Not only does that 'index' method/fu

Re: Stuck on "ViewDoesNotExist" last step of tutorial part 4

2012-08-15 Thread Kurtis Mullins
I just noticed another thing here. But, it could just be related to copying and pasting your source here. See below On Tue, Aug 14, 2012 at 11:16 PM, Sky wrote: > I've having a similar problem here using Django 1.4 and I can't quite > figure what's wrong. The error reads: Could not import polls.

Re: Calculations in Queries

2012-08-15 Thread Kurtis Mullins
On Wed, Aug 15, 2012 at 8:51 PM, Callum Bonnyman wrote: > I've tried a few things but i cannot get the correct date formats to > calculate the difference, so far i have this: > > popular_posts = Post.objects.extra(select={ > 'popularity': '(' + datetime.datetime.now() + ' - created) * view

Re: Auto login with external cookie from different system

2012-08-15 Thread Kurtis Mullins
On Wed, Aug 15, 2012 at 10:08 AM, Melvyn Sopacua wrote: > ... > Split does not work like you think it does: > http://localhost/doc/python/library/stdtypes.html#str.split > ... Just wanted to clear one small thing up I saw :) Not all of us host the Python docs, locally, haha. I think the link you

Re: Full auth solution

2012-08-17 Thread Kurtis Mullins
http://www.django-userena.org/ -- 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, send email to django-users+unsubscr...@googlegroups.com. For more

Re: [old question]NoReverseMatch.. I am sorry.

2012-08-17 Thread Kurtis Mullins
In this case, you are using a 'named URL' in the Admin namespace. Here's two links that may help you learn a bit more about this topic. https://docs.djangoproject.com/en/dev/topics/http/urls/#naming-url-patterns https://docs.djangoproject.com/en/dev/topics/http/urls/#defining-url-namespaces https:

Re: Best way to export data from Django?

2012-08-17 Thread Kurtis Mullins
Just curious, which data do you not have available when using signals? You mentioned the ID but this *should* be available during post_save and pre_delete hooks, if I'm not mistaken. Also, I'd recommend caution on performing external server calls during a single HTTP Request. You might have better

Re: How to create a formset that contains forms with a dropdown? (Crucial)

2012-08-17 Thread Kurtis Mullins
+1 on "Roll your own" solution. Complicated M2Ms and Django Forms aren't always the cleanest pair of features to work with when combined. On Fri, Aug 17, 2012 at 9:36 AM, houmie wrote: > Thanks Melvyn, > > To be honest I would be willing to purchase a widget if there was one. iw > ill look into

Re: [ImageField -Upload a valid image]

2012-08-20 Thread Kurtis Mullins
Whenever you compile PIL, make sure that libjpeg is available to it. You should see a message showing you what is available when you install PIL. On Mon, Aug 20, 2012 at 3:33 PM, MN TS wrote: > Yes. > > Png and GIF are ok. > > > On Mon, Aug 20, 2012 at 8:00 PM, Amyth Arora wrote: > >> did you tr

Re: Updating a model instance with extra checks.

2012-08-21 Thread Kurtis Mullins
I remember running into similar situations in a different domain (collision detection in physics engines). It was a pain in the butt :) I'd say first, figure out what you want to do if the process does reach a point where there isn't sufficient funds to perform the transaction. Then take multiple s

Re: Questions Tags Users Badges Unanswered Ask Question

2012-08-21 Thread Kurtis Mullins
Is your tfAdapter.sortabletable.js file in one of your static directories? If so, are you using the proper URL to access it? For example, . If so, what do you see when you "View Source" through your browser on that page? If you click on the javascript link from the "View Source", does it still show

Re: new to django

2012-08-21 Thread Kurtis Mullins
python manage.py runserver Then open your browser and goto http://localhost:8000 On Tue, Aug 21, 2012 at 12:43 PM, maha wrote: > .don know what to do after that.. > > >> >> >> >> >> -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To view

Re: Can somebody help me on how to handle this scenario?

2012-08-21 Thread Kurtis Mullins
I'd offer to help but I think there may be quite a bit more you should understand about Django, before-hand. Have you gone through the Tutorial, yet? Also, just as a general style guideline to follow; class names are typically Pascal Case (http://c2.com/cgi/wiki?PascalCase) and the User class may b

Re: Can somebody help me on how to handle this scenario?

2012-08-21 Thread Kurtis Mullins
Sorry, I meant to say the "User class which would be better extended using a User Profile". Documentation: https://docs.djangoproject.com/en/dev/topics/auth/#storing-additional-information-about-users On Tue, Aug 21, 2012 at 5:03 PM, Kurtis Mullins wrote: > I'd offer to help

Re: django.db.utils.DatabaseError when resyncing django app models

2012-08-21 Thread Kurtis Mullins
It looks to me like you might have a CharField with a max_length that is greater than what your Database supports. That's my guess anyways :) On Tue, Aug 21, 2012 at 9:21 PM, Mhlanga Bothin wrote: > Hi, > > I am very new to Django, I have created multiple models in my app. I am > using postgresql

Re: How I do to centralize logins OpenID in django?

2012-08-21 Thread Kurtis Mullins
I've never tried this approach; but maybe you could use the multi-database feature of Django to share a database for the Authentication/Sessions components? (https://docs.djangoproject.com/en/dev/topics/db/multi-db/) On Tue, Aug 21, 2012 at 7:39 PM, Mustapha Aoussar < mustapha.aous...@gmail.com> w

Re: custom field for callable python object like class or function

2012-08-22 Thread Kurtis Mullins
It looks like you want to, basically, store a reference to a Python object in your Model. It shouldn't be too extremely difficult. I'd create a Model for this purpose though and just use extra methods to provide any functionality you need. Just as a quick prototypical example: class ReferenceModel

Re: custom field for callable python object like class or function

2012-08-22 Thread Kurtis Mullins
, 2012 at 6:15 PM, Kurtis Mullins wrote: > It looks like you want to, basically, store a reference to a Python object > in your Model. It shouldn't be too extremely difficult. I'd create a Model > for this purpose though and just use extra methods to provide any > functionali

Re: SyntaxError Creating New Project

2012-08-22 Thread Kurtis Mullins
Very weird. I ran the syntax and did not receive a syntax error. I just checked on the documentation and it does say Python 2.5 is required, which as you mentioned you have installed. Maybe double-check to make sure that you're executing this with the right Python executable? I'm running Python 2.

Re: Models relationship

2012-08-23 Thread Kurtis Mullins
Hello Fernando, Just as a quick example, you could do something like this: class Factory(models.Model): # Assuming suppliers and customers are just two sides of the same relationship suppliers = models.ManyToManyField("self", related_name="customers") Then simply query accordingly: fact

Re: What does this code do? Also, testing decorator via terminal?

2012-08-31 Thread Kurtis Mullins
> > On Fri, Aug 31, 2012 at 9:17 PM, Micky Hulse wrote: > > I'd like to add: > > if objects.status_code != 200: > > return objects > > ... which is found via this code: > > > > Doh! After a bit of trial and error, I given up on trying to merge > those two c

Re: Easy way to temporarily disable the need to login

2012-09-05 Thread Kurtis Mullins
If any of your templates/views depend upon a request.user object, you'll run into issues because that will not exist without "logging in". I'm not sure of a good way around this off-hand without knowing more about your site. Sorry! On Wed, Sep 5, 2012 at 11:18 AM, Larry Martell wrote: > We have a

Re: Easy way to temporarily disable the need to login

2012-09-05 Thread Kurtis Mullins
I don't see why not. Are you running unit tests (testing scripts) or are you just using the browser for testing? On Wed, Sep 5, 2012 at 11:24 AM, Larry Martell wrote: > On Wed, Sep 5, 2012 at 9:22 AM, Kurtis Mullins > wrote: > > If any of your templates/views depend upon a re

Re: Easy way to temporarily disable the need to login

2012-09-05 Thread Kurtis Mullins
This *might* be helpful depending on how you're testing: http://stackoverflow.com/questions/2036202/how-to-mock-users-and-requests-in-django On Wed, Sep 5, 2012 at 11:36 AM, Kurtis Mullins wrote: > I don't see why not. Are you running unit tests (testing scripts) or are > yo

Re: Easy way to temporarily disable the need to login

2012-09-05 Thread Kurtis Mullins
ackends()[0] > > user = user[0] > > user.backend = "%s.%s" % (backend.__module__, > > backend.__class__.__name__) #fake authentication > > login(request, user) > > > > You can add that to your testing environnement MIDD

Re: Django Interview Questions

2012-09-05 Thread Kurtis Mullins
Yeah, I think this guide is a little crazy. If I'm getting interviewed based on questions I can't answer without looking up relevant documentation then I'd probably look bad even though the interviewer is the one lacking the required knowledge to get the job done. Maybe that's why I don't intervie

Re: Easy way to temporarily disable the need to login

2012-09-05 Thread Kurtis Mullins
12 at 1:06 PM, Larry Martell wrote: > Thanks - but now I'm getting > > NameError: "global name 'get_backends' is not defined" > > > On Wed, Sep 5, 2012 at 12:59 PM, Kurtis Mullins > wrote: > > Looks like you just need a quick: > > > >

Re: How to use FTP to upload files with Django?

2012-09-05 Thread Kurtis Mullins
Do you want to use FTP to serve or accept the files? On Wed, Sep 5, 2012 at 2:14 PM, Mando wrote: > Would this work -> nginx-gridfs ? > > > On Wednesday, September 5, 2012 1:09:25 AM UTC-5, Chaney Lee wrote: >> >> I just want to allow users uploading some

Re: Easy way to temporarily disable the need to login

2012-09-05 Thread Kurtis Mullins
> want to share, that would be great. > > On Wed, Sep 5, 2012 at 1:50 PM, Kurtis Mullins > wrote: > > Actually, I've got another idea for you. You mentioned you wanted to > simply > > access using urllib. Maybe you could create a small script to extract a > CSRF

Re: Easy way to temporarily disable the need to login

2012-09-05 Thread Kurtis Mullins
No problem! Alternatively, you may have some luck with Selenium ... although I have no experience here and am not sure if it can be made to record times or any other indication of performance. http://seleniumhq.org/ On Wed, Sep 5, 2012 at 2:48 PM, Larry Martell wrote: > Thanks Kurtis! >

Re: Easy way to temporarily disable the need to login

2012-09-05 Thread Kurtis Mullins
se Firefox on Linux (so the most efficient setup) you will probably need at least 10 machines to generate that kind of load. Quite insane when JMeter/Grinder/httperf can generate the same kind of load with a single machine. " On Wed, Sep 5, 2012 at 2:52 PM, Kurtis Mullins wrote: > No prob

Re: Development server won't work from a shared web host

2012-09-06 Thread Kurtis Mullins
Hey, All you should need to get through the Django Tutorial is Python and Django. During development you can use SQLite which is built in and doesn't need any third-party libraries. Good luck! On Thu, Sep 6, 2012 at 1:23 PM, ecs1749 wrote: > Thanks. I might as well bite bits of it. It's tough

Re: Site Architecture

2012-09-07 Thread Kurtis Mullins
I would recommend not using Django to consume services over a network without intensive caching and safe-guards just due to the fact that it will hold up the connection when a user tries to access a page. Importing your existing project into Django (as opposed to accessing it through an API) would

Re: Site Architecture

2012-09-07 Thread Kurtis Mullins
ources, it can be the best solution to a project. However, smaller projects which tend to lack resources can fall into a trap if they're not careful and well informed on the differences inherent to this type of architecture. On Fri, Sep 7, 2012 at 12:12 PM, Tom Evans wrote: > On Fri, Sep 7,

Re: Announcement of GUI for Creating Models

2012-09-08 Thread Kurtis Mullins
You could take it a few steps farther and reproduce some work done by a doctor(now) I used to go to school with. http://knoesis.wright.edu/research/srl/projects/mobicloud/ On Sat, Sep 8, 2012 at 2:50 PM, Javier Guerra Giraldez wrote: > On Fri, Sep 7, 2012 at 9:42 PM, Timothy Clemans > wrote: >

Re: is django too big for my use case?

2012-09-08 Thread Kurtis Mullins
I have a project that will be making extensive use of Neo4j, along with other data systems. As much as I love Django, I don't think the marriage is there for what you want, yet. If you're not using Django's ORM, Template System, Administration System, etc... then there's really not much left of Dja

Re: form doesn't validate when trying to upload file

2012-09-09 Thread Kurtis Mullins
Also, don't forget the multi-part in your template: On Sun, Sep 9, 2012 at 2:29 PM, Joseph Mutumi wrote: > I'm assuming you are using the forms.ModelForm for your model? Say > LicenceForm? > > class LicenseForm(forms.ModelForm): > class Meta: > model = License > > According to the d

Re: form doesn't validate when trying to upload file

2012-09-10 Thread Kurtis Mullins
ahh, sorry I just saw something that might help. Try making this change: docpath = models.CharField(max_length=200) to: docpath = models.FileField(...) # Check the docs for arguments to this Field. https://docs.djangoproject.com/en/dev/ref/models/fields/#filefield On Mon, Sep 10, 2012 at 8:41 A

Re: form doesn't validate when trying to upload file

2012-09-10 Thread Kurtis Mullins
Sorry about that. I accidentally over-looked where you mentioned that in your email. Are you running this on a debug server? Also, can you try replacing your template code with a simple {% csrf_token %}{{ form }} and see if that makes any differences? On Mon, Sep 10, 2012 at 10:38 AM, mapapage w

Re: Marketplace for Django apps

2012-09-11 Thread Kurtis Mullins
How about a compromise; just an easier way to donate to Django and Django Application developers? It would encourage sharing high quality projects and hopefully make it worth our time (financially, not just because we love and support libre software) to do so. For that matter, there's all sorts of

Re: Iphone applications via django

2012-09-11 Thread Kurtis Mullins
I can offer some information if you can share your "skill level" when it comes to developing iOS and/or Django Applications. 1. Do you currently know how to program iOS Applications? If so, do you have any experience writing iOS programs that can handle HTTP Requests? If the answer to either of th

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

2012-09-12 Thread Kurtis Mullins
>> >> On 9/10/2012 7:28 PM, Rivsen wrote: >> >> Maybe someone use 139 email, ask group manager check this and contact >> that one who use 139 email. >> >> 2012/9/11 Brad Pitcher >> >>> Yes, I received a similar email about the post "Re: I can

Re: Model Validation with Exception Handling

2012-09-12 Thread Kurtis Mullins
27;s an invalid email address. What I really want to do is determine the exception/error-type so that I can handle it appropriately. On Wed, Sep 12, 2012 at 7:09 PM, Kurtis wrote: > Hey Guys, > > Do you have any suggestions on a good way to grab error types during Model > Validation?

Re: newbie: patch required? procedure? [closed ticket 16017 / createsuperuser]

2012-09-13 Thread Kurtis Mullins
Try installing python using "brew" or another packaging utility On Thu, Sep 13, 2012 at 1:54 PM, Bob Aalsma wrote: > Umm, could you be more specific about how/where to put this? > All the combinations and location I could think of will all still give the > same error... > > > > > Op donderdag 13

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

2012-09-13 Thread Kurtis Mullins
gt;> I've had a coup[le of these, now. >>> >>> >>> On Tuesday, September 11, 2012 5:27:59 AM UTC+10, Kurtis wrote: >>>> >>>> I just received a very unusual e-mail that included a recent post's >>>> subject. The post in q

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

2012-09-14 Thread Kurtis Mullins
address, so they'd be easy to block on an individual > > level. But my guess is that everyone posting to django-users is receiving > > these, so it would be good for a group admin to address this at the group > > level (someone suggested removing that user). > > > &

Re: Using email instead of username for registration and login

2012-09-24 Thread Kurtis Mullins
You could check out django-userena On Mon, Sep 24, 2012 at 9:57 PM, Bill Beal wrote: > Hi all, > > I want to use the email address as the username for registration and > login. I'm using django-registration for 2-stage registration. I'm > looking for an easier way than what I've come up with s

Re: Using success_url with reverse() in class-based generic view

2012-09-26 Thread Kurtis Mullins
Sometimes, though, you may need to pass variables to a success url. In that case, I'd use the "get_success_url" method so you can access the 'self' attributes. On Wed, Sep 26, 2012 at 1:32 PM, Germán wrote: > Just for the record. > > Since Django 1.4, the best way to set up success_url in class-

Re: app for kickstarter-like goals

2012-10-01 Thread Kurtis Mullins
haha, I'm not sure of anything that already implements this but it shouldn't be too difficult to build yourself. On Sun, Sep 30, 2012 at 3:10 PM, Matteo Suppo wrote: > I'm developing a website for a non-profit organization. > > They want something similar to kickstarter, only based on people inst

Re: URLField and Web Sockets URLs

2012-10-04 Thread Kurtis Mullins
Looks like this is similar and shows that people want other protocols as well: http://stackoverflow.com/questions/8778416/what-are-the-valid-values-for-a-django-url-field You could modify the validator's regex but I imagine the cleanest way to do this would be to make a copy of it in your own code

Re: Django performance vs others

2012-10-05 Thread Kurtis Mullins
Probably the ability to both extend and include (template inheritance) On Fri, Oct 5, 2012 at 9:24 AM, Amirouche Boubekki < amirouche.boube...@gmail.com> wrote: > I have had no idea until recently that django template are sooo slow... >> other engines do the same... but spent less time. What the

Re: Newbie question: first project can't connect to MySQL

2012-10-05 Thread Kurtis Mullins
Also, if memory serves me correctly, MySQL may be setup to allow connections from 127.0.0.1 but not Localhost On Fri, Oct 5, 2012 at 2:45 PM, Mohamad Efazati wrote: > Hi afshin > localhost is kind of pointer to 127.0.0.1, maybe in /etc/hosts or other > thing you overwrite it. > so 127.0.0.1 is so

Re: Disabling CSRF is not working.

2012-10-08 Thread Kurtis Mullins
Another solution would be to simply work with the CSRF Protection. It's not really that hard, even when using Javascript. There's even a good, simple example of using JQuery with it in the official documentation. On Sun, Oct 7, 2012 at 3:41 AM, Laxmikant Gurnalkar < laxmikant.gurnal...@gmail.com>

Re: when is a Context Processor called?

2012-10-08 Thread Kurtis Mullins
https://docs.djangoproject.com/en/dev/topics/http/sessions/ On Mon, Oct 8, 2012 at 10:28 AM, Stefano T wrote: > Ok. > so basically they are called before the rendering of a template. > > How can i have an object stored in the request object (if possible)? > > Something that lets me to do, in a vi

Re: Javascript encoding and python decoding and vice versa

2012-10-09 Thread Kurtis Mullins
You could obfuscate the Javascript; but there's no such thing as security through obfuscation :) HTTPs is your best bet in terms of getting it from the server to the client without someone in the middle reading it. On Tue, Oct 9, 2012 at 1:20 AM, Mike Dewhirst wrote: > On 9/10/2012 4:07pm, Laxmi

Re: accessing django

2012-10-09 Thread Kurtis Mullins
ys for helping this out. > One more question what is the basic step of installing the package? are > they all the same? > > > On Tue, Oct 9, 2012 at 11:45 AM, Kurtis Mullins > wrote: > >> Not really. You could probably use a host that might have some fancy >> control pan

Re: Update a model using UpdateView

2012-10-10 Thread Kurtis Mullins
user). how can i do this control? > do i have to put a "owner" field in the Task model and check it later or > django does something of this automatically or exists a predefined way to > do it? > > ciao. > > On Tuesday, October 9, 2012 5:14:50 PM UTC+2, Kurtis wrote: >

<    1   2   3   4   5   >