Re: newbie questions: common components in django

2009-07-19 Thread Gabriel Gunderson

On Sat, Jul 18, 2009 at 7:08 PM, online wrote:
> I know i can have common stuff like this in django
>
> 
>
> {% include "header.html" %}
>
> 
> blah
> 
>
> {% include "footer.html" %}
> 
>
> but it seems i need to pass data footer.html and header.html every
> time i include these pages?

There are several ways to do this, but when you're asking about
headers and footers, the obvious answer seems to be template
inheritance.

http://docs.djangoproject.com/en/dev/topics/templates/#template-inheritance

Best,
Gabe

--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: urls.py error: unbalanced parenthesis

2009-07-19 Thread Gabriel Gunderson

On Sun, Jul 19, 2009 at 4:02 AM, Rob B (uk) wrote:
>         (r'^(?P\d{4}/, 'archive_year', entry_info_dict,

This named regular-expression group is missing a ")"

It should be: (?P\d{4})

http://docs.djangoproject.com/en/dev/topics/http/urls/#named-groups

Best,
Gabe

--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: permalink don't works

2009-07-29 Thread Gabriel Gunderson

On Wed, Jul 29, 2009 at 2:45 AM, Brian
May wrote:
> I think django is great, unfortunately sometimes the documentation is lacking.

Really? I think it rocks.  It's way better them most projects I work with.

Gabe

--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Is Django Right For My New Project... Details inside.

2009-08-24 Thread Gabriel Gunderson

On Mon, Aug 24, 2009 at 9:11 PM, Michael Thomason wrote:
> Anyway, I have two concerns. I'm building a web application that will
> be a portal for different companies.
>
> http://example.com/company1/webapp/
> http://example.com/company2/webapp/
> http://example.com/company3/webapp/
>
> Webapp will be an application, or group of them, that is the same,
> with different settings for each company. Each company would have
> different names, etc. Looking at the Django, I see the urls file, and
> it seems like it might be hard coded, though I guess it could be
> database driven. Just don't want to start off fighting the framework.

Have a look at how a Django developer might go about solving this
(it's at the domain level):
http://docs.djangoproject.com/en/dev/ref/contrib/sites/#associating-content-with-multiple-sites

As for the other stuff, Django doesn't keep you from doing whatever
you want.  Feel free to step away from the normal flow, but expect to
get less help from the framework as you get further and further away.

Good luck and happy hacking.

Gabe

--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Python/Django web programmer needed

2009-08-26 Thread Gabriel Gunderson
On Wed, Aug 26, 2009 at 2:10 AM, w y wrote:
> Otherwise just ignore this e-mail

I'm going to try.  If I/we can't, will you please take this off-list?

Thanks,
ALL

--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Unsubscribe

2009-08-29 Thread Gabriel Gunderson

On Sat, Aug 29, 2009 at 8:04 AM, Andrew
Holt wrote:
> Sorry the the FAQ, but how do I unsubscribe from this group ?

http://groups.google.com/group/django-users/subscribe

There is an unsubscribe button in the bottom right of the page.

Gabe

--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: How to server static media secured by Django authentication

2009-09-11 Thread Gabriel Gunderson

On Fri, Sep 11, 2009 at 3:03 PM, Jim Myers  wrote:
> I have a requirement to serve static files only to users authenticated
> through Django secure login.

http://docs.djangoproject.com/en/dev/howto/apache-auth/

Gabe

--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Return something specific on 404's on a particular path

2009-09-11 Thread Gabriel Gunderson

On Fri, Sep 11, 2009 at 8:26 PM, Jordon Wii  wrote:
> How can return a specific image when there is a 404 error for an image on a
> path?

Don't make it harder then it needs to be. Don't let it get all the way to a 404.

If they upload the image, you likely have the name of the file in your
database.  Put a little IF statement in your templates.  If you find
the name of the image in the db/context, serve it up.  If you don't
find it, server up your default/placeholder image.  Does that not
work?

Gabe

--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: HELP ME

2009-09-16 Thread Gabriel Gunderson

On Tue, Sep 15, 2009 at 2:48 PM, alivad  wrote:
> It does not work, someone can help me.

It looks like you've gotten some help.  That's great.

Next time, choose a descriptive subject (that doesn't sound so
demanding) and avoid all CAPS.  You'll likely get more people willing
to give some of their time to assist you.

Good luck.

Gabe

--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Password encryption

2009-11-15 Thread Gabriel Gunderson
On Thu, Nov 5, 2009 at 12:51 AM, Denis Bahati  wrote:
> My project require to have my own table for users and roles. Am not using
> the default auth table.

Does this work for your additional user info?

http://docs.djangoproject.com/en/dev/topics/auth/#storing-additional-information-about-users

Gabe

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=.




Re: Thanks for (Geo)Django

2009-12-23 Thread Gabriel Gunderson
On Wed, Dec 23, 2009 at 2:52 PM, Ariel Nunez  wrote:
> Thanks one more time, I hope you all enjoy a lot what's little left of
> this year, and especially take enough the time away from the computers
> to enjoy with your family.

This is a heart felt thanks.  I support this message and add my 2
cents.  Thanks to all those who help create the tools that make my
work interesting and help me feed my family.  :)

Best,
Gabe

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.




Re: static files, nginx, memcached

2010-06-20 Thread Gabriel Gunderson
On Fri, Jun 18, 2010 at 11:22 AM, TheIvIaxx  wrote:
> I will just have a cron job populate memcached separately.
>
> Is this a common practice or is there a better method for this?

I think the overall approach might need a little more thought, but if
you end up doing something like this, incron would be a far better fit
than cron.

my 2 cents,
Gabe

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Mad SELECT with the admin view.

2006-10-14 Thread Gabriel Gunderson

On 10/14/06, ggundy <[EMAIL PROTECTED]> wrote:
> There must be some kind of spanning or looping going on as the SELECT
> is full of this type of thing: "AND "country176"."world_region_id" =
> "world_region177"."id" AND "shipper169"."message_type_id" =
> "message_type178"."id" AND."

I thought I would update this with a paste-bin...

http://paste.e-scribe.com/1978/

Pretty ugly stuff.  Anyone seen this before or know where I can start looking?

Thanks again,
Gabe

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Mad SELECT with the admin view.

2006-10-15 Thread Gabriel Gunderson

On 10/15/06, Karen Tracey <[EMAIL PROTECTED]> wrote:
> Yah, that does look bizarre.  I have no idea what is going on but am a
> sucker for puzzles so tried to make some sense of the select.  My
> feeling is the problem isn't in the StagedOrder class that you posted
> but rather one of the ones getting pulled in as a result of the
> StagingArea ForeignKey.


I think you're on the right track.  It's basically a matter of what
tables are used in foreign keys.  A StagedOrder points to an
PlacedOrder that points to two Customers that each point to two
Regions that each point to a Country.  If I prune that by limiting a
PlacedOrder to only have one FK pointing to a single Customer, then I
don't get the error.  But what I *do* see is postmaster (PostgreSQL)
spike the CPU (100%) for about 3 minutes (or until I kill it) and then
it returns the admin page.  That's not going to fly in production or
even pre-production :)  Whatever the specific cause, shouldn't any
legitimate (and validating) model work with the relatively simple
SELECT that the Admins interface should be putting together?  I mean,
if this can be fixed by changing my model, is that really a fix?
Also, I have to wonder, is this specific to to the Admin interface or
will I see it when working with the DB API?


> The list of tables involved starts like this:
>
> staging_area ->
> location -> (2) region -> country -> world_region ->
>  region6 -> country7 -> world_region8 ->
> order ->
> customer ->
> title ->
> gender -> region13 -> country14 -> world_region15 ->
>  region16 -> country17 -> world_region18 ->
> message_type -> etc. etc. etc.
>
> So staging_area pulls in location and then location seems to have two
> fields that could be region ForeignKeys.  Region apparently points to a
> country and country then to world_region.  OK so far.  Then (to handle
> 2nd region ForeignKey found in location?) the sixth table is added to
> the select: region6, followed by country7 and world_region8.  Shouldn't
> these have been recognized as tables already in the select?  Things
> continue with order, customer, title, gender, oops here's another
> region, and we're up to the 13th table in the select.  So a bunch more
> tables are added that are really already named as part of the select,
> only this time they're given a number suffix that matches what table
> number they are in the select statement.  Eventually we get up to table
> number 82, a customer table, which gives a loop. I guess it kept adding
> "new" tables until it hit the limit mentioned in the exception.


But, why would it even go that far in the SELECT?  This is for the
Admins interface of the StagedOrder.  It only needs to display info
about two FKs, StagingArea and PlacedOrder and they both should be
easy to represent as they each have "def __str__(self): return
'FIXME'."  I did that to simplify things by eliminating that part of
the problem.  BTW, this only happens when you "change" *not* "add" via
the Admins interface.


> Like I said I have no idea what's going on -- I'm just a casual user
> and am on a pretty recent code base -- but maybe these observations
> will trigger someone who knows a bit more to say "oh yeah, I know what
> that problem is".  Maybe search the list/problem database for issues
> with multiple ForeignKey fields in a model pointing to the same table?
> I have a vague feeling I might have seen some messages about stuff like
> that fly by but I could easily be wrong about that.

I'll have to do some more searching with different key words.  Any
errors I found were PG specific, since that is the error that is
getting reported.  In other words, Django thinks everything is just
peachy until PG says back to it. "Hey, you can't issue a SELECT
statement with 1500 entries!"  I guess one *could* say that the
defects is in PostgreSQL :)

Thanks for your time and insight.

> Karen

-- 
Gabriel Gunderson
http://gundy.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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Feather in Django's cap

2006-12-01 Thread Gabriel Gunderson

This link mentions Google's use of Django...

http://www.niallkennedy.com/blog/archives/2006/11/google-mondrian.html

"The Mondrian tool creates a much better workflow by creating
task-specific dashboards, in-line commenting, well-tracked statistics,
and more. The application is built on top of Python open source
libraries such as the Django framework, smtpd.py mail service, and the
wsgiref web server software."

-- 
Gabriel Gunderson
http://gundy.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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django for Enterprise

2012-04-10 Thread Gabriel Gunderson
On Tue, Apr 10, 2012 at 1:50 PM, Ivo Marcelo Leonardi Zaniolo
 wrote:
> Does anybody already worked on a really hudge project?
> A really hudge.

Perhaps you've heard of Instagram. You know, the scrappy little Django
shop that just sold to Facebook for 1 *billion* dollars.

http://instagram-engineering.tumblr.com/post/13649370142/what-powers-instagram-hundreds-of-instances-dozens-of


Anyway, that's pretty huge.


Best,
Gabe

-- 
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



SOPA middleware

2012-01-18 Thread Gabriel Gunderson
Django peeps,

I know it's a little late to make much use of the code, but I thought
I'd mention it anyway...

See the SOPA middleware in action (will auto-heal tonight): http://izeni.com/

Download it: http://dl.dropbox.com/u/47654226/sopa_protest.tar.gz

It was quickly hacked together and no doubt needs some love, but for
today, it got the job done. Let's hope we're not given another chance
to revisit the code :)


Best,
Gabe

-- 
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: how use this snippet

2011-05-17 Thread Gabriel Gunderson
On Tue, May 17, 2011 at 10:33 AM, Tom Evans  wrote:
> I don't mean to sound glib, but (almost) everything is detailed in the
> very fine manual. Read, re-read and re-re-read the manual - even the
> boring bits!

I think it's important to remember that one of the strengths of Django
is its docs.  They're some of the best out there.  I find myself
wishing other projects were documented so well.

So, yeah, read them and re-read them :)

Gabe

-- 
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Problem in Part2 of the tutorial "DoesNotExist at /admin/"

2011-05-17 Thread Gabriel Gunderson
On Tue, May 17, 2011 at 11:53 AM, igalic  wrote:
> I went through the first part of the tutorial without problems, but
> when trying to turn on the admin app in tutorial 2, I got this error
> page with the message stated in subject line.
>
> Here's more info:
>
> Django: latest version from the trunk
> Python: 2.6.1
> OS: OSX 10.6.7
>
> Here's the info it gives me:
>
> DoesNotExist at /admin/
> Site matching query does not exist.


It looks like it's related to the sites framework:
http://docs.djangoproject.com/en/dev/ref/contrib/sites/

I'd have a look at what's in my settings file for SITE_ID and take it
from there.
http://docs.djangoproject.com/en/dev/ref/settings/#std:setting-SITE_ID

Let us know if you don't figure it out.


Best,
Gabe

-- 
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Error when try to do ManyToMany relation with User class...

2011-05-17 Thread Gabriel Gunderson
On Tue, May 17, 2011 at 7:26 PM, Chris Seberino  wrote:
> I have 3 classes that have a ManyToMany relation with the User class.
>
> When I try to do syncdb I get this error
>
> Error: One or more models did not validate:
> mvc.course: 'users' has an m2m relation with model User, which has
> either not been installed or is abstract.

Just a quick guess, but could it be this?

http://docs.djangoproject.com/en/dev/ref/models/fields/#module-django.db.models.fields.related

If you need to create a relationship on a model that has not yet been
defined, you can use the name of the model, rather than the model
object itself:

"""
class Car(models.Model):
manufacturer = models.ForeignKey('Manufacturer')
# ...

class Manufacturer(models.Model):
# ...
"""

Best,
Gabe

-- 
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: pg_dump iom_catalog tables

2011-05-19 Thread Gabriel Gunderson
On Wed, May 18, 2011 at 2:41 PM, William Hudspeth  wrote:
> pg_dump -C -h localhost -U wilbur -t achon_group -t achon_grouping -t
> brecciation -t chon_class -t chon_group -t chon_petro -t
> chon_petro_subtype -t iron_group -t iron_struc -t loan -t met_type -t
> metrefs1 -t other_notes -t photo_log -t sample -t sample_exporterrors -t
> specimen -t specimen_type -t stony_iron_grouping iom_metcat | psql -h
> 129.24.63.74 -U wilbur iom_metcat


Do you have a question? About Django?

Gabe

-- 
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Question

2011-05-19 Thread Gabriel Gunderson
On Wed, May 18, 2011 at 4:27 PM, yevishere  wrote:
> I am using admin.py and
> I have a ton of numerical fields in columns
> I was wondering how I could have a little window where I could ask the
> user to filter a specific column by numerical value. Something like
> list all values from column 1, between 2 and 3

This would be more than the admin was designed to do.  I suggest that
you write your own front facing web page in this case. I'm not saying
it *can't* be done, just that you probably shouldn't.

Best,
Gabe

-- 
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: weird error with MS Excel 2010 exports

2011-05-20 Thread Gabriel Gunderson
On Thu, May 19, 2011 at 1:44 PM, Bobby Roberts  wrote:
> hi.  Regardless of how we try to export from a view into an excel
> file, we get a weird msgbox reading:
>
> "The file you are trying to open, 'filenamehere.xls', is in a
> different format than specified by the file extension.  Verify that
> the file is not corrupted and is from a trusted source before openin
> gthe file.  Do you want to open the file now?"   YES  NO HELP"

What are you doing with your mime types?


Gabe

-- 
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: [ask for help] how to solve this issue: "DatabaseError at /admin/myapp, no such column: myapp.myvar"

2011-05-21 Thread Gabriel Gunderson
On Fri, May 20, 2011 at 8:36 PM, enqing  wrote:
>  This weird issue hanpped when I used the django admin site. I have
> set the database with sqlite3,  and creat a number of my classes in
> app model.py, all others classes  can work as expectation. only a
> class have this  "DatabaseError at /admin/myapp, no such column:
> myapp.myvar" error apper in web browser.
>
> but  the class's everything is the same with others, the only
> different place is the class‘s name. I also use "python manage.py
> syncdb" to refresh my database, but nothing change.
>
> who can help me? I have been agonized by this issue for tow weeks.

I think you're going to have to post (or pastebin) some models and
whatever else you think might help us figure it out.

Gabe

-- 
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: help

2011-05-21 Thread Gabriel Gunderson
On Sat, May 21, 2011 at 8:34 PM, Ram  wrote:
> hello everyone i want to learn how to insert text and image uri
> filename in single table of postgreSQL it will be very helpful if i
> will get to learn from code snippets as i am new to django pythan its
> very difficult to learn from djangoproject.com

You can't learn how to run before you learn how to walk.  I'd do the
tutorial again and again until it was perfectly clear in my mind.  It
might be hard, but it will be worth it.

BTW, those are some of the best docs any project has available.

Good luck!

Gabe

-- 
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: GET/POST

2011-05-23 Thread Gabriel Gunderson
On Mon, May 23, 2011 at 8:04 PM, egilchri  wrote:
> I am really new to Django. I've set up an Apache server with
> mod_wsgi,and Django, and I've hit what is probably a common
> roadblock.

Welcome. Hope you enjoy your time spent with Django!



> When I use "curl" to invoke a url using GET, it works just fine. But
> when I invoke it using POST, I get a 403 error:
>
> curl  http://web1.tunnlr.com:x/wsgi-scripts/index.json # works
> fine, creates JSON
> curl  -X POST http://web1.tunnlr.com:/wsgi-scripts/index.json #
> produces a 403 error

403 is 'Forbidden' and I think it might have something to do with this:

http://docs.djangoproject.com/en/dev/ref/contrib/csrf/#rejected-requests

It's a good thing :) It's trying to make the Internet a safer place
--starting with your site.



> I need to get this working because I am constructing an app that
> returns JSON. However, this app is setup to invoked by an app engine
> that will be POSTing to it. Right now, I see from that app engines
> logs that it is getting back a 404, just like my "curl" test.

Now, before you said 403... Did you really mean 404?  That would
change my reply.

Best,
Gabe

-- 
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Python's 20th Birthday (well, public release birthday) Extravaganza Lunch Party!

2011-02-18 Thread Gabriel Gunderson
What: Python's 20th Birthday (well, public release birthday)
Extravaganza Lunch Party!

When: Monday at 12:15

Where: Izeni.  We're located at the Novell TCN, also known as the
building formerly known as OSTC, also known as (but not really
numbered as) building A.  (Campus Map:
http://bit.ly/Pythons_BDay_Party)

Who: Python Users worldwide*, plus a special invitation to Guido van
Rossum: We'll pick up the plane tickets and hotel if you want to join
us :)


Queridos Pythonistas,

As any faithful subject of Guido (the Benevolent Dictator for Life)
must already know, this Sunday marks the 20th anniversary of Python's
first *public* release[1].  (I know, such a tender age...)  Since we
all know that attending a birthday party for the awesomest computer
programming language of all time is on the top on everybody's bucket
list, Izeni would like facilitate the fulfillment of your wildest geek
dreams by throwing perhaps the best programming-language-themed
birthday celebration ever known to mankind.

We'll be gathering Monday to have pizza, giant subs, spam with eggs**,
and a specially commissioned Python-themed cake by Joseph Hall of 3D
TuxCake fame[2].  We're working on getting a snake charmer too!  (Know
anybody?)

Come join us, mingle with other Python users, and enjoy some great
food!  And spread the word!

Please try to RSVP by either by tweeting me @izeni or emailing me
offlist so we can get a (rough) food estimate.


Thanks,
Gabe Gunderson


* While everyone is welcome to join us for cake, there are certain
restrictions for free pizza/subs/spam-and-eggs. Specifically, you must
meet at *least* one of the following qualifications:

0) You have commit privileges for Python.

1) You have read and given *serious* thought and consideration to 'The
Zen of Python'.

2) Your license plate says PEP-0008.

3) You use Python professionally or as a hobby.

4) You have an untrimmed beard that's longer than 1 inch (or are at
least trying).

5) You have a Monty Python tatoo.

6) And lastly, you enjoy playing the game "snake" or just like the name Guido.

Due to what we expect to be an overwhelming response, we *will* be
checking for non-pythonista freeloaders by verifying *basic* knowledge
of the Python language. We also reserve the right to inspect your
keyboard for disproportional wear on your "{" and "}" keys and may
additionally do random spot-checks on your webservers for the
'X-Powered-By' headers for any traces of PHP.

** We really will be serving spam and eggs.

[1] http://python-history.blogspot.com/2009/01/brief-timeline-of-python.html
[2] http://blog.josephhall.com/tutorials/tuxcake/

BTW, if you're looking for a gig writing clean code in Python, we're
always looking for sharp hackers.  Let us know!

-- 
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Python's 20th Birthday (well, public release birthday) Extravaganza Lunch Party!

2011-02-20 Thread Gabriel Gunderson
On Fri, Feb 18, 2011 at 2:12 PM, Gabriel Gunderson  wrote:
> We'll be gathering Monday to have pizza, giant subs, spam with eggs**,
> and a specially commissioned Python-themed cake by Joseph Hall of 3D
> TuxCake fame[2].


Heh, I thought I'd share a cake update.  We're going to need some help
eating it.   :)

"""
There are three tiers: 12", 10" and 8". Each tier is about 3 or 4
inches tall. The smallest tier is ginger ale-flavored with grenadine
mousse filling. The middle tier is Mountain Dew flavored with cherry
mousse filling. The large tier is chocolate orange with a chocolate
orange marquess filling. The ginger ale isn't as gingery and the Mr
Dew isn't as Dewey, but they're still both dang good. All tiers are
covered with white chocolate fondant. The top tier has the python logo
on top of it.
"""

Looks like Joseph might have outdone himself, again.

Pic:  http://bit.ly/LetEmEatCake

-- 
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 options, visit this group at 
http://groups.google.com/group/django-users?hl=en.