MongoDB and Django

2013-08-31 Thread Timothy Makobu
Hi,

Is MongoDB support coming to standard Django?

regards,
Tim

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Re: django-popup-forms

2013-08-14 Thread Timothy Makobu
Reading this https://github.com/joinourtalents/django-popup-forms It does
show how to set it up. Where are you getting stuck?


On Thu, Aug 15, 2013 at 2:41 AM, Brian Millham  wrote:

> I've been trying to use django-popup-forms, but with no success. Has
> anyone used this?
>
> I suspect that I didn't install it correctly. I just ran sudo python
> setup.py install, but it doesn't seem available under django.
>
> It looks like a nice package, and will do exactly what I'm looking for.
> It's a shame that the documentation with it doesn't show how to properly
> install it, and has no working examples with it.
>
> Brian
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Django Gunicorn with Two Django App

2013-08-14 Thread Timothy Makobu
Aaron's answer is spot on. Just adding that with Nginx, you don't need
Apache.


On Wed, Aug 14, 2013 at 11:10 AM, Kelvin Wong  wrote:

> The error "Could not reliably determine the server's fully qualified
> domain name" is harmless, but the fix is easy. See...
>
> https://help.ubuntu.com/community/ApacheMySQLPHP#Troubleshooting_Apache
>
> If you are running Django under Nginx and Gunicorn, why are you restarting
> Apache anyway?
>
> Your gateway issue is very common with Nginx and can be fixed by proper
> configuration of your reverse proxy and ensuring that your Gunicorns are
> actually running and handling traffic. I've used Supervisor to manage the
> Gunicorns and it works well for that purpose.
>
> http://wiki.nginx.org/HttpProxyModule
>
> http://docs.gunicorn.org/en/latest/deploy.html
>
> If you find the reverse proxy set-up too confusing, I'd recommend
> mod_wsgi. I find it easier to set-up and manage than other methods.
>
> K
>
> On Tuesday, August 13, 2013 1:11:28 PM UTC-7, Muhammed TÜFEKYAPAN wrote:
>>
>> I edit my port, sites enabled files etc.
>>
>> Now two sites run different port but i got an error: 502 Bad Gateway
>>
>> Also when i type "service apache2 restart" there is error "Could not
>> reliably determine the server's fully qualified domain name, using
>> 127.0.0.1 for ServerName" error.
>>
>> I think real problem this.
>>
>>
>> On Tuesday, August 13, 2013 5:31:07 PM UTC+3, Muhammed TÜFEKYAPAN wrote:
>>>
>>> Hello Everyone,
>>>
>>>
>>> I use digitalocean for server and i install nginx and unicorn for
>>> django. I have one service for my project. I also want to add new django
>>> project and i made it with making new services.
>>>
>>> When my one project running the other project stop.
>>>
>>> How can i run two projects same time?
>>>
>>> Thanks.
>>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Re: how to get called function automatically inside views.py?

2013-05-03 Thread Timothy Makobu
I would do this by having the view exposed on a url like 127.0.0.1:8000/myview
and having that called from cron via curl, a python script utilizing urllib.


On Fri, May 3, 2013 at 1:37 PM, Avnesh Shakya  wrote:

> thanks but if i want to get a function called autometically, when i run
> 127.0.0.1:8000/  which defined inside views.py. how is it possible.
>
>
> On Fri, May 3, 2013 at 4:00 PM, Tom Evans wrote:
>
>> On Fri, May 3, 2013 at 11:04 AM, Avnesh Shakya 
>> wrote:
>> > hi, please tell me. it's urgent.
>> >
>>
>> "its urgent".
>>
>> Sorry, couldn't resist. As this seems to have nothing to do with
>> django, and a lot to do with "apscheduler", perhaps you should ask the
>> apscheduler folks instead?
>>
>> Cheers
>>
>> Tom
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

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




Re: cant syncdb with postgresql

2013-04-25 Thread Timothy Makobu
You need to catch exceptions during a commit and rollback the incomplete
transaction.

from django.db import connection
connection._rollback()

to rollback the current one.


On Thu, Apr 25, 2013 at 4:08 PM, Pedro Silva wrote:

> I cant sync db with heroku postgresql, with sqllite works great.
> Can anybody help me?
> requeriments:
> Django==1.4.5
> PIL==1.1.7
> distribute==0.6.36
> dj-database-url==0.2.1
> django-db-log==2.2.1
> django-log-file-viewer==0.4
> psycopg2==2.5
> virtualenv==1.9.1
>
>
> erro:
> c:\WorkspacePY>python manage.py reset meet
> Traceback (most recent call last):
>   File "manage.py", line 10, in 
> execute_from_command_line(sys.**argv)
>   File "C:\Python27\lib\site-**packages\django\core\**management\__init__.py",
> line
> 443, in execute_from_command_line
> utility.execute()
>   File "C:\Python27\lib\site-**packages\django\core\**management\__init__.py",
> line
> 382, in execute
> self.fetch_command(subcommand)**.run_from_argv(self.argv)
>   File "C:\Python27\lib\site-**packages\django\core\**management\base.py",
> line 196,
>  in run_from_argv
> self.execute(*args, **options.__dict__)
>   File "C:\Python27\lib\site-**packages\django\core\**management\base.py",
> line 232,
>  in execute
> output = self.handle(*args, **options)
>   File "C:\Python27\lib\site-**packages\django\core\**management\base.py",
> line 304,
>  in handle
> app_output = self.handle_app(app, **options)
>   File "C:\Python27\lib\site-**packages\django\core\**
> management\commands\reset.py",
>  line 34, in handle_app
> sql_list = sql_reset(app, self.style, connection)
>   File "C:\Python27\lib\site-**packages\django\core\**management\sql.py",
> line 107,
> in sql_reset
> return sql_delete(app, style, connection) + sql_all(app, style,
> connection)
>   File "C:\Python27\lib\site-**packages\django\core\**management\sql.py",
> line 66, i
> n sql_delete
> table_names = connection.introspection.get_**table_list(cursor)
>   File "C:\Python27\lib\site-**packages\django\db\backends\**
> postgresql_psycopg2\int
> rospection.py", line 33, in get_table_list
> AND pg_catalog.pg_table_is_**visible(c.oid)""")
>   File "C:\Python27\lib\site-**packages\django\db\backends\**util.py",
> line 40, in e
> xecute
> return self.cursor.execute(sql, params)
>   File "C:\Python27\lib\site-**packages\django\db\backends\**
> postgresql_psycopg2\bas
> e.py", line 52, in execute
> return self.cursor.execute(query, args)
> django.db.utils.DatabaseError: current transaction is aborted, commands
> ignored
> until end of transaction block
>
> sql:
> 2013-04-25 11:42:54,790 [DEBUG] (0.238)
> SELECT c.relname
> FROM pg_catalog.pg_class c
> LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
> WHERE c.relkind IN ('r', 'v', '')
> AND n.nspname NOT IN ('pg_catalog', 'pg_toast')
> AND pg_catalog.pg_table_is_**visible(c.oid); args=()
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

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




Django 1.5.1 on Google App Engine python27

2013-04-22 Thread Timothy Makobu
Hi all,

According to the appengine docs, It can run any WSGI app. So im thinking,
appart from the ORM, django, any version, can run on appengine.

webapp2 and jinja2 are offered but, why use those when I can use the best?

How do I set this up? I have read this tutorial
https://developers.google.com/appengine/articles/django but it's rather
dated. Is it the same procudure with the titled configuration, or is there
a better way?

Thanks.

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




Re: Status of Django with Python 3.x

2013-04-11 Thread Timothy Makobu
>From the release notes
https://docs.djangoproject.com/en/dev/releases/1.5/ "Django
1.6, will support Python 3 without reservations."

And from the release-process
https://docs.djangoproject.com/en/1.2/internals/release-process/ "Minor
release (1.1, 1.2, etc.) will happen roughly every nine months"

So towards the end of the year we'll have 1.6.


On Thu, Apr 11, 2013 at 4:48 PM, Thomas Weholt wrote:

> I develop my current project with python 2.7 and 3.3 and so far my problem
> is not with django being 3.x compatible but critical/popular third-party
> packages like PIL, django-debug-toolbar etc not being python 3 ready. I
> hope those and several other packages will be ported to python 3, since
> Python 3 has some very nice features not available in 2.x and it solves all
> my unicode issues being a programmer which often deal with non-english
> characters.
>
> So far I've had no problems using python 3 and django. All problems I've
> encountered has been caused by thrid-party packages, my own packages
> included :-|
>
>
> On Thu, Apr 11, 2013 at 3:36 PM, Mark Lybrand  wrote:
>
>> I understand that there is only experimental support for Python 3.x in
>> Django 1.5.  Is there any feeling for how far out a stable version of
>> Django using Python 3.x might be?  I understand that any answer is likely
>> to be conjecture and guessing and that is okay.  I am just trying to gauge
>> if I am looking at a matter of months or a year or if it something that may
>> be 3 or 5 or more years out.
>>
>> Thanks in advance.
>>
>> --
>> Mark :)
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>
>
> --
> Mvh/Best regards,
> Thomas Weholt
> http://www.weholt.org
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

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




Re: how to send confirmation mail

2012-12-20 Thread Timothy Makobu
Where specifically are you stuck? We need more details.


On Thu, Dec 20, 2012 at 9:49 AM, Randa Hisham  wrote:

> how to send confirmation mail and encryprted ink
> --
> Randa Hesham
> Software Developer
>
> Twitter:@ro0oraa 
> FaceBook:Randa Hisham 
>
> ٍ
>
> --
> 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.
>

-- 
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: Django community, is it active?

2012-12-19 Thread Timothy Makobu
This link is quite telling of what the Python community in general thinks
of Django

http://www.python.org/3kpoll


On Wed, Dec 19, 2012 at 5:25 PM, Cal Leeming [Simplicity Media Ltd] <
cal.leem...@simplicitymedialtd.co.uk> wrote:

> LOL omg, I just realised I was spelling beer wrong.
>
> Cal
>
>
> On Wed, Dec 19, 2012 at 1:32 PM, Tom Christie wrote:
>
>> > Is this worth going? --- http://2013.djangocon.eu
>>
>> Yes, yes, yes, yes, and yes.  I've been to two DjangoCons, both have been
>> incredible, and have reaffirmed how proud I am to work in this industry,
>> and to be a part of this community.
>>
>> > Who are the top blogs people within the Django community who should I
>> be following, blogs feed etc.
>>
>> http://www.planetdjango.org/ is an aggregated news feed for Django posts.
>>
>> Some folks who write regularly...
>>
>> Daniel Greenfeld (aka pydanny) - http://pydanny.com/
>> Reinout van Rees - http://reinout.vanrees.org/weblog/
>> Nick Coghlan - http://www.boredomandlaziness.org/
>>
>> If you haven't already I'd recommend getting yourself tapped into twitter
>> and follow some of the core devs and other python/django folks.
>>
>> Also, a tip - I'd stay well away from the free bear.
>> Might look cute at first, but man, those things can get vicious.
>> The free beer however, does come recommended.
>>
>> Cheers,
>>
>>   Tom
>>
>> On Wednesday, 19 December 2012 13:02:12 UTC, Cal Leeming [Simplicity
>> Media Ltd] wrote:
>>
>>> Sorry, slightly misworded!
>>>
>>> Don't /just/ drink the free bear, help out as well.
>>>
>>> Cal
>>>
>>> On Wed, Dec 19, 2012 at 3:02 AM, Chris Cogdon  wrote:
>>>
 But I _want_ to drink the free bear.

 On Tuesday, December 18, 2012 3:19:59 PM UTC-8, Cal Leeming [Simplicity
 Media Ltd] wrote:
>
>  Don't drink the free bear though, ...
>


>   --
 You received this message because you are subscribed to the Google
 Groups "Django users" group.
 To view this discussion on the web visit https://groups.google.com/d/**
 msg/django-users/-/Je-**VbEdMmoQJ
 .

 To post to this group, send email to django...@googlegroups.com.
 To unsubscribe from this group, send email to django-users...@**
 googlegroups.com.

 For more options, visit this group at http://groups.google.com/**
 group/django-users?hl=en
 .

>>>
>>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/django-users/-/pVVzxQCEmdwJ.
>>
>> 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.
>>
>
>  --
> 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.
>

-- 
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: Scripting for Django-related Android apps?

2012-12-08 Thread Timothy Makobu
The book definitely helps. The phone app can interact with the django app
via REST.


On Sat, Dec 8, 2012 at 4:05 PM, Derek  wrote:

> Hi
>
> Can anyone share  any experience on writing Android apps with Python (
> via SL4A) that interact with Django;  and does the book "Pro Android
> Python with SL4A"  (http://www.apress.com/9781430235699) help at all
> in this process?
>
> Thanks
> Derek
>
> --
> 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.
>
>

-- 
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: Django apache mod_wsgi permission denied

2012-12-01 Thread Timothy Makobu
Root directory??? As in / ? Nooo nonono


On Sat, Dec 1, 2012 at 12:14 PM, Chris Cogdon  wrote:

>
>
> On Friday, November 30, 2012 8:53:42 PM UTC-8, Mike Dewhirst wrote:
>>
>> On 1/12/2012 3:48pm, Loai Ghoraba wrote:
>> > I have ran chmod o+rx on the root directory, isn't this enough (isn't
>> > chmod applied to all folders down recursively ?) ?
>>
>> No. You need chmod -R o+rx
>>
>
> Oh hell no, don't do that... that will impact the ENTIRE FILESYSTEM
>
>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/cB-WWrnMMP8J.
>
> 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.
>

-- 
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: No module named books

2012-11-29 Thread Timothy Makobu
Im betting you're using Django 1.4x

The layout is different in 1.4. Download the version the book is using
(1.1? https://www.djangoproject.com/download/ bottom right), then all
should work.


On Thu, Nov 29, 2012 at 4:33 PM, Tom Evans  wrote:

> On Thu, Nov 29, 2012 at 4:51 AM, Chris Recher
>  wrote:
> > Hi all,
> >
> > I'm working through the Django book and I've run into an error that
> wasn't
> > predicted. I've got a project called mysite. I used "python manage.py
> > startapp books" to create an app called books inside of it. I added a few
> > models to the models.py file inside books, then tried to use "python
> > manage.py validate". I got "Error: No module named books" in return.
> > __init__.py is perfectly intact in both the second mysite directory and
> the
> > books directory. I've added mysite.books to INSTALLED_APPS. All the
> results
> > I could find searching for this problem deal with someone that's made a
> > spelling mistake somewhere. I've been through my files multiple times,
> and
> > my spelling is pristine. I figure I'm making an obvious, beginner's
> mistake
> > - could anyone help?
> >
>
> Hi Chris
>
> First hint, newlines are free to use! Consider some next time!
>
> Second, Django is an evolving framework. It helps to know what version
> you are using.
>
> Finally, launch the django shell ("python mange.py shell" instead of
> "python manage.py runserver").
> Try to import your module - "import mysite.books" - does it work?
> If it doesn't, does this work? - "import books"
>
> Cheers
>
> Tom
>
> --
> 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.
>
>

-- 
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: people.djangoproject.com broken

2012-08-31 Thread Timothy Makobu
Strange. Well it does say it informed the admin of the error (see
screenshot) That stack-trace should tell the dev just what's happening.

On Fri, Aug 31, 2012 at 9:52 AM, Amyth Arora <aroras.offic...@gmail.com>wrote:

> Have you tried visiting the website using a proxy ?
>
>
> On Fri, Aug 31, 2012 at 12:22 AM, creecode <creec...@gmail.com> wrote:
>
>> Hello Timothy,
>>
>> I just tried going to the login webpage and had no problem.  I'm not
>> registered on that website so my experience may be somewhat different.
>>
>> On Thursday, August 30, 2012 10:39:24 AM UTC-7, Timothy Makobu wrote:
>>
>> Still having no luck. Here's a screenshot of the error, displayed about 5
>>> minutes ago:
>>>
>>
>> Are you just going to the webpage or is this error after you have tried
>> to login?
>>
>> Are you using OpenID?  That may have something to do with it.
>>
>> If you are just using the "regular" login (cookie based), have you tried
>> deleting the cookies related to the website from your browser?
>>
>> Toodle-looo.
>> creecode
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/django-users/-/s14_SIlckdwJ.
>>
>> 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.
>>
>
>
>
> --
> Thanks & Regards
> 
>
> Amyth [Admin - Techstricks]
> Email - aroras.offic...@gmail.com, ad...@techstricks.com
> Twitter - @a_myth_
> http://techstricks.com/
>
>  --
> 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.
>

-- 
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.



people.djangoproject.com broken

2012-08-28 Thread Timothy Makobu
Hi all,

Is it just me or is Django people broken? I cant login, getting a 500 on 
any login attempt.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/rtCcdVrcqygJ.
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: Hello Django Warriors!

2012-07-15 Thread Timothy Makobu
Django Warr  LOL!

Have a look at Pinax http://pinaxproject.com/


On Sun, Jul 15, 2012 at 5:18 AM, Kurtis Mullins wrote:

> 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. Thank you.
>>
>> Hey,
>
> Welcome to Python and Django! Of course you can. I'd suggest starting with
> the Django Tutorial to understand the framework and of course learning a
> bit about the Python programming language before jumping into a task that
> large.
>
> For an example site that provides this functionality (still a work in
> progress), check out fireflie.com. You have to register to see the
> functionality but feel free to ignore the subscription after 8 days --
> unless you're a musician and want to actually use the site.
>
> (Disclaimer: I am the lead developer of fireflie.com, my intention is not
> to advertise here but to show you one example of a site providing this
> functionality with Python/Django as a back-end. If you do give it a try and
> don't actually intend on using fireflie.com for its intended purpose,
> please send in a Account Removal request after you've finished checking it
> out.)
>
> --
> 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.
>

-- 
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: Hello!

2012-07-15 Thread Timothy Makobu
+1

On Sun, Jul 15, 2012 at 1:05 AM, Thomas Lockhart wrote:

> On 7/14/12 12:04 PM, Shubz wrote:
>
>> Hi! I'm new to Python and Django. I feel like I'm jumping in deep end,
>> but I have previous PHP and Java knowledge so what the hey.
>>
>> I was wondering if anybody could be kind enough to point me in the right
>> direction to a broken down tut on installation for Mac?
>>
>>  I use MacPorts to get python, postgres, and virtualenv. Everything else
> is covered nicely in the Django tutorial.
>
> hth
>
>   - Tom
>
>
> --
> 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+unsubscribe@**
> googlegroups.com .
> For more options, visit this group at http://groups.google.com/**
> group/django-users?hl=en
> .
>
>

-- 
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: configure apache and mod_python

2012-07-11 Thread Timothy Makobu
Also, If you can, try Ngix + Gunicorn

On Wed, Jul 11, 2012 at 2:38 PM, kenneth gonsalves
wrote:

> On Wed, 2012-07-11 at 01:03 -0300, Carlos Andre wrote:
> > Hi, i'm with a hard problem. also, my apache have a problem he not
> > want be stated, i try use the xamppy and now be sure that problem! As
> > I put apache and mod_python to work?
>
> mod_python is deprecated - please do not use it. Use apache and mod_wsgi
> instead.
> --
> regards
> Kenneth Gonsalves
>
> --
> 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.
>
>

-- 
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 use HTTPS with django

2012-07-07 Thread Timothy Makobu
I would think he would have areas that need to be logged in to all SSL. He
already has the cert for SSL logins, and its prudent these days to have
such apps all SSL, with tools making it straight forward to lift
unencrypted traffic off a network.

On Sat, Jul 7, 2012 at 11:28 AM, Melvyn Sopacua <m.r.sopa...@gmail.com>wrote:

> On 7-7-2012 10:27, Timothy Makobu wrote:
> > " I want to know how to use HTTPS to securely login ..." which satisfies
> > the first part of the question. This way it wont be possible to login
> > without HTTPS enabled for the project.
>
> What use is logging in if you're logged out the minute the connection
> becomes unencrypted?
>
> --
> Melvyn Sopacua
>
>
> --
> 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.
>
>

-- 
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 use HTTPS with django

2012-07-07 Thread Timothy Makobu
" I want to know how to use HTTPS to securely login ..." which satisfies
the first part of the question. This way it wont be possible to login
without HTTPS enabled for the project.

On Sat, Jul 7, 2012 at 11:22 AM, Melvyn Sopacua <m.r.sopa...@gmail.com>wrote:

> On 7-7-2012 5:05, Timothy Makobu wrote:
> > For secure logins, this helps
> >
> https://docs.djangoproject.com/en/dev/topics/http/sessions/?from=olddocs/#session-cookie-secure
> >
>
> No it doesn't. That is for secure /sessions/, which means that if you
> use this during the login process then the session is created on the
> HTTPS connection and only /valid/ on the HTTPS connection. In other
> words, if you set this flag the scenario of having an unencrypted site
> with an encrypted login procedure is impossible.
>
> --
> Melvyn Sopacua
>
>
> --
> 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.
>
>

-- 
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 use HTTPS with django

2012-07-06 Thread Timothy Makobu
For secure logins, this helps
https://docs.djangoproject.com/en/dev/topics/http/sessions/?from=olddocs/#session-cookie-secure

On Fri, Jul 6, 2012 at 5:44 PM, John DeRosa  wrote:

> On Jul 6, 2012, at 4:24 AM, Melvyn Sopacua wrote:
>
> > On 6-7-2012 8:08, heni yemun wrote:
> >
> >> I want to know how to use HTTPS to securely login and signup a user with
> >> django.
> >
> > Django doesn't care about HTTPS. You'd handle this in the webserver by
> > redirecting to the secure virtual host for the login url. How to
> > implement that is webserver specific.
>
> One of the many ways to handle this is to terminate SSL/TLS in the load
> balancer, and have the balancer send all requests as HTTP to the web
> servers running Django (and httpd or whathaveyou) behind it.
>
> John
>
> --
> 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.
>
>

-- 
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: map in django

2012-07-05 Thread Timothy Makobu
The link I gave you does exactly that. You give GMaps an address and it
gives you JSON (or XML) of many things, among them longitude and latitude.
You can then use  maybe http://gmap3.net/  to display the location on the
map. The ajax that will glue all that together into one page is the
homework.

On Thu, Jul 5, 2012 at 2:25 PM, Satvir Toor  wrote:

> I followed below link
> http://pypi.python.org/pypi/django-google-maps/
> it works fine in admin interface, But I want to display a map using
> django templates. I wish for a output like
> No. of text fields and a address field, the map would display the
> location on itself according to value entered into address field.
> Please help me.
>
>
> --
> Satvir Kaur
> satveerkaur.blogspot.in
>
> --
> 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.
>
>

-- 
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: map in django

2012-07-05 Thread Timothy Makobu
http://stackoverflow.com/questions/3652951/google-maps-api-get-coordinates-of-address


On Thu, Jul 5, 2012 at 10:24 AM, Satvir Toor <toor.satvi...@gmail.com>wrote:

> On Thu, Jul 5, 2012 at 12:38 PM, Timothy Makobu
> <makobu.mwambir...@gmail.com> wrote:
> > Something like this? http://timslab.net/tornodes/
> can say.
> >
> > Questions; how do you GET the location? Is it a constant location, or
> does
> > it depend on something? What is at that location, that makes you want to
> > save it? Once we know why and how you get a location, we can help you
> > better.
> No it is not a constant location. Actually my requirement is to enter
> the address for mapping location and from that map i want to fetch the
> co-ordinates.Locations means address on map.
>
>
> --
> Satvir Kaur
> satveerkaur.blogspot.in
>
> --
> 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.
>
>

-- 
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: map in django

2012-07-05 Thread Timothy Makobu
Something like this? http://timslab.net/tornodes/

Questions; how do you GET the location? Is it a constant location, or does
it depend on something? What is at that location, that makes you want to
save it? Once we know why and how you get a location, we can help you
better.


On Thu, Jul 5, 2012 at 9:22 AM, yarko  wrote:

> On Wednesday, July 4, 2012 10:53:41 AM UTC-5, yarko wrote:
>>
>> You might try browsing these:
>>
>>  
>> http://pyvideo.org/search?**models=videos.video=making+**maps
>>
>> 
>>
> Apologies - Swype caused more than one typo:
>
>
>> http://inzane.net
>>
> =>  http://inzain.net
>
>
>> The code from Zain's US PyCon2012 tutorial on making interactive maps is
>> also in his github repositories - you might find that interesting.
>>
>> Have lots of fun!
>> -Yarko
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/e1j1bEaVaZ0J.
>
> 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.
>

-- 
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: Handling millions of rows + large bulk processing (now 700+ mil rows)

2012-07-04 Thread Timothy Makobu
I'm in.

On Tue, Jul 3, 2012 at 2:35 AM, Cal Leeming [Simplicity Media Ltd] <
cal.leem...@simplicitymedialtd.co.uk> wrote:

> Just in case anyone missed the URL, you can book your slot here:
>
> http://www.doodle.com/8ptehyqr6uezhtsy
>
> Voting open until 14th July.
>
> Cal
>
> On Mon, Jul 2, 2012 at 9:59 AM, Cal Leeming [Simplicity Media Ltd] <
> cal.leem...@simplicitymedialtd.co.uk> wrote:
>
>> Curious, I'll have to test the quality, but we might potentially use
>> hangouts for the backup stream instead - it'd certainly be a lot easier if
>> the quality was good!
>>
>> Cheers
>>
>> Cal
>>
>>
>> On Mon, Jul 2, 2012 at 5:35 AM, Alec Taylor wrote:
>>
>>> Sounds good, but have you considered using Google+ Hangouts?
>>>
>>> On Mon, Jul 2, 2012 at 1:09 AM, Cal Leeming [Simplicity Media Ltd]
>>>  wrote:
>>> > Wow - glad to see there's people interested in this!
>>> >
>>> > Here is the schedule, could everyone please select which days/times
>>> they are
>>> > available (enter more than one if possible)
>>> >
>>> > http://www.doodle.com/8ptehyqr6uezhtsy
>>> >
>>> > I'll leave the schedule open until 14th July, whichever slot gets the
>>> most
>>> > votes wins.
>>> >
>>> > Given our awful experiences with conferencing software, we'll probably
>>> be
>>> > using livestream, and a backup stream from one of our own servers -
>>> both
>>> > have a maximum capacity of 50 users at 720p.
>>> >
>>> > Cal
>>> >
>>> > On Sat, Jun 30, 2012 at 4:10 PM, Cal Leeming [Simplicity Media Ltd]
>>> >  wrote:
>>> >>
>>> >> Hi all,
>>> >>
>>> >> As some of you know, I did a live webcast last year (July 2011) on
>>> our LLG
>>> >> project, which explained how we overcome some of the problems
>>> associated
>>> >> with large data processing.
>>> >>
>>> >> After reviewing the video, I found that the sound quality was very
>>> poor,
>>> >> the slides weren't very well structured, and some of the information
>>> is now
>>> >> out of date (at the time it was 40mil rows, now we're dealing with
>>> 700+mil
>>> >> rows).
>>> >>
>>> >> Therefore, I'm considering doing another live webcast (except this
>>> time
>>> >> it'll be recorded+posted the next day, the stream will be available in
>>> >> 1080p, it'll be far better structured, and will only last 50 minutes).
>>> >>
>>> >> The topics I'd like to cover are:
>>> >>
>>> >> * Bulk data processing where bulk_insert() is still not viable (we
>>> went
>>> >> from 30 rows/sec to 8000 rows/sec on bulk data processing, whilst
>>> still
>>> >> using the ORM - no raw sql here!!)
>>> >> * Applying faux child/parent relationship when standard ORM is too
>>> >> expensive (allows for ORM approach without the cost)
>>> >> * Applying faux ORM read-only structure to legacy applications
>>> (allows ORM
>>> >> usage on schemas that weren't properly designed, and cannot be
>>> changed - for
>>> >> example, vendor software with no source code).
>>> >> * New Relic is beautiful, but expensive. Hear more about our plans to
>>> make
>>> >> an open source version.
>>> >> * Appropriate use cases for IAAS vs colo with SSDs.
>>> >> * Percona is amazing, some of the tips/tricks we've learned over.
>>> >>
>>> >> If you'd like to see this happen, please leave a reply in the thread
>>> - if
>>> >> enough people want this, then we'll do public vote for the scheduled
>>> date.
>>> >>
>>> >> Cheers
>>> >>
>>> >> Cal
>>> >
>>> >
>>> > --
>>> > 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.
>>>
>>> --
>>> 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.
>>>
>>>
>>
>  --
> 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.
>

-- 
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: am new bird to django,need some suggestion...please please do reply friend..

2012-07-02 Thread Timothy Makobu
Once you're over the learning curve, you wont believe how easy Django makes
web development. These devs thought, and keep thinking of everything. Just
hang in there.


On Mon, Jul 2, 2012 at 10:58 AM, manish girdhar
<manishgirdha...@gmail.com>wrote:

> okay friend.thanks alot.
>
>
> On Mon, Jul 2, 2012 at 11:58 AM, Timothy Makobu <
> makobu.mwambir...@gmail.com> wrote:
>
>> First read *ALL* of this  http://docs.python.org/tutorial/ if
>> you haven't already, then redo this tutorial
>> https://docs.djangoproject.com/en/1.4/intro/tutorial01/ as many times as
>> you need to to understand everything in it.
>>
>>
>> On Mon, Jul 2, 2012 at 8:15 AM, manish girdhar <manishgirdha...@gmail.com
>> > wrote:
>>
>>> hmm hmmm no i have not read that page...can you please send me the link
>>> of that page...i didnot find that...i checked
>>> http://www.djangobook.com/en/1.0/ and http://www.djangobook.com/en/2.0/
>>>
>>> and please suggest me some application or link ,which is basic and open
>>> source.. so that i can get through of it and learned basic things..
>>>
>>>
>>> On Mon, Jul 2, 2012 at 3:28 AM, Daniel Roseman <dan...@roseman.org.uk>wrote:
>>>
>>>> On Sunday, 1 July 2012 16:07:28 UTC+1, rick wrote:
>>>>>
>>>>> hello django lovers, am new bird to this language and i have read
>>>>> django documentation  and did not able to learnt it properly . am making a
>>>>> small application of *students management system *,in which i have to
>>>>> do* insertion of new record ,deletion and search of record.*..and am
>>>>> facing problem at each step.and unable to understand..so please send link
>>>>> of some open source *basic application* .so that i can download it
>>>>> and understand it properly...
>>>>>
>>>>> or send link of some documentation where function like filter(
>>>>> ),get_object_or_404() is being used...because these functions are not in
>>>>> documentation..
>>>>>
>>>>> THANK YOU in advance..
>>>>>
>>>>
>>>> Is there something wrong with the documentation index, which has a
>>>> clear link to a page entitled "Executing queries"? Or the docs search
>>>> engine, where you can enter "get_object_or_404" and get a direct link to
>>>> the place where that function is documented?
>>>> --
>>>> DR.
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Django users" group.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msg/django-users/-/RB4PPeu8HhgJ.
>>>>
>>>> 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.
>>>>
>>>
>>>  --
>>> 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.
>>>
>>
>>  --
>> 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.
>>
>
>  --
> 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.
>

-- 
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.



Tor exit nodes by Geolocation

2012-07-02 Thread Timothy Makobu
Hi guys,

Here's a little Django GMaps mashup I made that tries to show the
geographical location of tor exit nodes  http://timslab.net/tornodes/

-- 
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: am new bird to django,need some suggestion...please please do reply friend..

2012-07-02 Thread Timothy Makobu
First read *ALL* of this  http://docs.python.org/tutorial/ if
you haven't already, then redo this tutorial
https://docs.djangoproject.com/en/1.4/intro/tutorial01/ as many times as
you need to to understand everything in it.


On Mon, Jul 2, 2012 at 8:15 AM, manish girdhar wrote:

> hmm hmmm no i have not read that page...can you please send me the link of
> that page...i didnot find that...i checked
> http://www.djangobook.com/en/1.0/ and http://www.djangobook.com/en/2.0/
>
> and please suggest me some application or link ,which is basic and open
> source.. so that i can get through of it and learned basic things..
>
>
> On Mon, Jul 2, 2012 at 3:28 AM, Daniel Roseman wrote:
>
>> On Sunday, 1 July 2012 16:07:28 UTC+1, rick wrote:
>>>
>>> hello django lovers, am new bird to this language and i have read django
>>> documentation  and did not able to learnt it properly . am making a small
>>> application of *students management system *,in which i have to 
>>> do*insertion of new record ,deletion and search of record.
>>> *..and am facing problem at each step.and unable to understand..so
>>> please send link of some open source *basic application* .so that i can
>>> download it and understand it properly...
>>>
>>> or send link of some documentation where function like filter(
>>> ),get_object_or_404() is being used...because these functions are not in
>>> documentation..
>>>
>>> THANK YOU in advance..
>>>
>>
>> Is there something wrong with the documentation index, which has a clear
>> link to a page entitled "Executing queries"? Or the docs search engine,
>> where you can enter "get_object_or_404" and get a direct link to the place
>> where that function is documented?
>> --
>> DR.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/django-users/-/RB4PPeu8HhgJ.
>>
>> 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.
>>
>
>  --
> 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.
>

-- 
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: Avoiding code repetition in views

2012-06-29 Thread Timothy Makobu
@grimmus

I have a file called shared.py, and In it, i have created a
dict template_dict { } which has stuff that all the views share. I import
it into views.py and any app that will use that dict. I can then add more
items or alter existing ones via template_dict.update().


On Fri, Jun 29, 2012 at 9:01 AM, kenneth gonsalves
wrote:

> On Fri, 2012-06-29 at 01:07 +0200, Christophe Pettus wrote:
> > > I hope i have been clear
> >
> > I'm going to take a guess and surmise that you have a lot of different
> > view functions, each one of which needs to pass a list of gigs into
> > the context for the template and then render that page, and you're
> > trying to avoid repeating the code that builds the list of gigs.  Is
> > that correct?
> >
> > You might look at whether you really need all those separate view
> > functions, or if they can be rolled together.  You might also look at
> > using class-based Views in 1.4 as a way to factor out the
> > gig-list-building code in a reasonable way.
>
> or use templatetags
> --
> regards
> Kenneth Gonsalves
>
> --
> 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.
>
>

-- 
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: Why doesn't Django support subdomain url conf?

2012-06-16 Thread Timothy Makobu
+1

django-hosts worked very well for me.


On Sat, Jun 16, 2012 at 5:04 PM, Rafał Stożek  wrote:

> You may want to take a look at this project:
> https://github.com/ennio/django-hosts
>
>
> On Saturday, June 16, 2012 1:48:16 PM UTC+1, Alireza Savand wrote:
>>
>> Have extremely control on URLs with django is easy as possible.
>>
>> But why there is nothing about handling subdomains url configration, all
>> i found it was 
>> makinga
>> middleware
>> and  
>> exposethe 
>> request :|
>> And maybe all of them are all right, but why there is no support about
>> subdomain url handling in django itself, is there a rule or something
>> behind it or it is a minor thing ?
>> And by the way, what way do you prefer to working with subdomains ?
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/myaIhEQrlxsJ.
>
> 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.
>

-- 
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 migrating using South

2012-06-13 Thread Timothy Makobu
from django.db import connection, DatabaseError

try:
 ..
except DatabaseError:
  connection._rollback()


On Wed, Jun 13, 2012 at 5:49 PM, Daniel França wrote:

> I recreated the database and still get the same error when executing a
> simple "syncdb".
>
> Tried to change the database connection to sqlite and now I got the
> error that the sqlite3 module isn't  installed... I think my installation
> is messed up.
>
>
> On Tue, Jun 12, 2012 at 7:29 PM, Daniel França wrote:
>
>> More information:
>> I'd put a break point just before the crash
>> then I've  tested some database queries... and all of them crash with the
>> error:  DatabaseError: current transaction is aborted, commands
>> ignored until end of transaction block*
>>
>> But if I access the database using psql it's working fine.
>>
>>
>> On Tue, Jun 12, 2012 at 4:51 PM, Daniel França 
>> wrote:
>>
>>> Thanks for the anwser
>>> I've installed Haystack, and it was working fine local, but at the
>>> server I got this error.
>>> First I've tried to install haystack like I did local, using pip pip
>>> install -e git+
>>> https://github.com/toastdriven/django-haystack.git@master#egg=django-haystack
>>>
>>> But at the server I got this error:
>>> *Obtaining django-haystack from git+
>>> https://github.com/toastdriven/django-haystack.git@master#egg=django-haystack
>>> *
>>> *  Cloning https://github.com/toastdriven/django-haystack.git (to
>>> master) to /home/gemini/workspace/gemini_virtualenv/src/django-haystack*
>>> *Cannot get remote repository information.*
>>> *Perhaps git-update-server-info needs to be run there?*
>>> *  Complete output from command /usr/bin/git clone -q
>>> https://github.com/toastdriven/django-haystack.git/home/gemini/workspace/gemini_virtualenv/src/django-haystack:
>>> *
>>> *  *
>>> **
>>> *Command /usr/bin/git clone -q
>>> https://github.com/toastdriven/django-haystack.git/home/gemini/workspace/gemini_virtualenv/src/django-haystack
>>>  failed with
>>> error code 1 in None*
>>> *Storing complete log in /root/.pip/pip.log*
>>>
>>> I don't know if it has something todo... but ok, I installed haystack
>>> 2.0 manually from source.
>>>
>>> then I start to get that error,
>>> then I've tried to enter admin page... I got the same error from
>>> migrate... but with stacktrace so I could better analyse what's wrong.
>>> and the site was aborting at a load data in db method in admin.py.
>>> So I did comment that.
>>>
>>> The error persists, but now at a middleware from mezzanine CMS(I'm using
>>> Mezzanine CMS)
>>> So I commented this middleware too... the same error persists, now in a
>>> view from a app that I use, when it tries to get the currente site data
>>> from Site.
>>> So I gave up, I don't believe that commenting code would solve anything,
>>> I think there's something wrong before that, that is causing all this
>>> problems... but I can't figure out what is wrong.
>>> It starts to happen when I installed haystack, but I'm not sure if it's
>>> the problem...
>>> I've tried to run syncdb and migrate... but I got the same db error...
>>>
>>> The strange thing is that it's working fine on my local machine.
>>>
>>>
>>> On Tue, Jun 12, 2012 at 3:52 PM, James Pyrich  wrote:
>>>
  You've got a database error lurking somewhere.

 I usually encounter this when syncdb needs to be run (to whit,
 ./manage.py syncdb).

 Have you added anything to installed apps that is not managed with
 South?

 If that's a dead end, see if you can enable SQL logging in the database
 (in PostgreSQL, the configuration directive is log_statement:
 http://www.postgresql.org/docs/9.1/static/runtime-config-logging.html#GUC-LOG-STATEMENT).
 Then you can watch the log while you execute the migrate command to see
 what's missing.

 Just be careful that doing this on a live system can cause downtime and
 chew up disk space if your logs aren't being rotated and you forget to
 disable logging.


 On 6/12/12 11:25 AM, Daniel França wrote:

 Hi all,
 I'm using South and it was working fine,
 but suddenly I start to get this error on the server that's driving me
 crazy:

  *(virtualenv)[root@localhost]# ./manage.py migrate accounts*
 *Traceback (most recent call last):*
 *  File "./manage.py", line 35, in *
 *execute_manager(settings)*
 *  File
 "/home/gemini/workspace/gemini_virtualenv/lib/python2.7/site-packages/django/core/management/__init__.py",
 line 459, in execute_manager*
 *utility.execute()*
 *  File
 "/home/gemini/workspace/gemini_virtualenv/lib/python2.7/site-packages/django/core/management/__init__.py",
 line 382, in execute*
 *self.fetch_command(subcommand).run_from_argv(self.argv)*
 *  File
 

Re: django form, android post

2012-06-10 Thread Timothy Makobu
The data will be in the request.POST dict
http://djangobook.com/en/2.0/chapter07/

On Sun, Jun 10, 2012 at 10:31 PM, electrocoder wrote:

> Hi. I want send data in django html form. What is use metod ?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/-f52MHM1LkIJ.
> 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.
>

-- 
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: Request.Method Query !

2012-06-10 Thread Timothy Makobu
https://groups.google.com/forum/?fromgroups#!topic/django-developers/dxI4qVzrBY4

On Sun, Jun 10, 2012 at 7:34 PM, Ejah <ej.huijb...@gmail.com> wrote:

> If you want to add something, you will probably use a form and in it's
> template you can specify that the method is 'post'. Similar for put,
> get etc.
> Hth
>
> On 10 jun, 16:36, vinod kumar <vk.86@gmail.com> wrote:
> > Dear   Timothy Makobu,
> >
> > Thanks for your explanation. I got the part which you explained. My doubt
> > is :
> > on the browser we just give the url and the respective functions will be
> > called on back end and output is returned out.
> > If I want to GET the details of some nodes, I will just give the url as
> > (let us say)http://example.com/app1/nodes
> > Now, this method will be detected as GET in the handler.
> > In the same way, if I want to PUT a node into the nodes, what should I
> do?
> > How do I write the url in the browser to add some node to the existing
> > nodes.
> >
> > Thanks,
> > Vinodh
>
> --
> 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.
>
>

-- 
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: Request.Method Query !

2012-06-10 Thread Timothy Makobu
If im understanding your question correctly ...
Django determines the request method itself and populates a dict with the
method name in the request object. So if you want to handle data submitted
via HTTP POST, request.POST will contain the data. For example:

def data_handler(request):
if request.method == 'POST':
for k,v in request.POST.iteritems():
-- do stuff --


On Sun, Jun 10, 2012 at 12:05 PM, vinod kumar  wrote:

> Hey All,
>  I have a small doubt. I can see in views that I can check the
> request.method and accordingly write my code to perform the operation
> for get/put/.. respectively. And in urls.py, the url reg. expression
> is assigned to concerned functions. But how do u give the request
> method i.e.get or put in urls or anywhere. Please help me out.
>
> --
> 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.
>
>

-- 
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: Develop a Facebook app with Django

2012-06-07 Thread Timothy Makobu
Hi. Checkout this thread
https://groups.google.com/forum/?fromgroups#!topic/django-users/fyGDJmTvpz4

On Thu, Jun 7, 2012 at 10:15 PM, francescobocca...@libero.it <
francescobocca...@libero.it> wrote:

> Hi all,
> i read some documentation on the web about Django and Facebook but i didn't
> found a right way to develop my Facebook application with Djando.
> Can you suggest how can start it?
> Thanks
>
> Francesco
>
> --
> 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.
>
>

-- 
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: Make ManyToMany field editable in a ModelForm

2012-06-03 Thread Timothy Makobu
Thanks. Will try those out.

On Fri, Jun 1, 2012 at 5:19 PM, Kurtis Mullins <kurtis.mull...@gmail.com>wrote:

> The Form just validates that the object you choose is a valid choice for
> that M2M field. If you wanted to created a new one on the fly, you'd
> probably want to use another Form and maybe go the Javascript way.
>
> You could *possibly* get by, in the same form, with doing something like
> this:
>
> class MyForm(forms.ModelForm):
> add_new_m2m = forms.BooleanField()
> new_m2m = forms.CharField()
>
> def save(self):
>
> # Instance of this ModelForm's meta "class" attribute
> m = super(MyForm, self).save(commit=True)
>
> # A Boolean deciding whether the user wants to create a new choice
> or not
> if self.cleaned_data['add_new_m2m']:
>
> # Create the new object, previously unselectable
> new_choice =
> M2M.objects.create(title=self.cleaned_data['m2m'])
>
> # Add the object to this Model
> m.m2m.add(new_choice)
>
> Another way to go about it is to give the user the option to enter some
> data manually for that M2M field. Write the clean__m2mfield to accept
> whatever you feel is nessasary. Then, in your save method, if the field is
> not a choose-able M2M Object, then create a new one and add it in.
>
> Those are just a couple of ideas. I'm sure others will have more for ya :)
>
>
> On Fri, Jun 1, 2012 at 2:57 AM, Timothy Makobu <
> makobu.mwambir...@gmail.com> wrote:
>
>> Yes, how does one do that?
>> Right now it's just rendering static choices that already exist. Or do I
>> have to circumvent ModelForm for this field and present the field manually?
>>
>>  --
>> 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.
>>
>
>  --
> 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.
>

-- 
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.



Make ManyToMany field editable in a ModelForm

2012-06-01 Thread Timothy Makobu
Yes, how does one do that?
Right now it's just rendering static choices that already exist. Or do I
have to circumvent ModelForm for this field and present the field manually?

-- 
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 IDLE

2012-05-30 Thread Timothy Makobu
Yea, PyCharm is the stuff.

Also have python open python files; the easy way:

Right click any pyton file->Left Click->Open
With->Browse->c:\pythonX\bin\python.exe, for example->make sure you tick
"always use the selected program to open this kind of file"->Ok


On Wed, May 30, 2012 at 5:33 PM, Bill Freeman  wrote:

> As someone who has burned in some of the more obscure emacs commands,
> I find that I'm seldom satisfied with what a vendor calls emacs
> bindings (eclipse comes to mind - I wind up setting my source code
> files to be edited externally), but its usually still more comfortable
> than the native bindings.
>
> On Wed, May 30, 2012 at 10:23 AM, doniyor 
> wrote:
> > i dont know, but that would be awesome, do you know if aptana has it? i
> > never thought of key binding til now in aptana.
> >
> >
> > Am Mittwoch, 30. Mai 2012 16:19:15 UTC+2 schrieb ke1g:
> >>
> >> Does it do emacs key bindings ;^)
> >>
> >> On Wed, May 30, 2012 at 10:13 AM, Mario Gudelj 
> >> wrote:
> >> > It's not free but they have a 30 day trial period
> >> >
> >> >
> >> > On 31 May 2012 00:09, doniyor  wrote:
> >> >>
> >> >> @somecallitblues: pycharm is not free, right? but i am really willing
> >> >> to
> >> >> give a try for this. i am using for years Aptana studio which is
> >> >> completely
> >> >> fullfulling my wishes, but "pycharm loves django" sounds great!
> >> >>
> >> >> Am Mittwoch, 30. Mai 2012 15:59:13 UTC+2 schrieb somecallitblues:
> >> >>>
> >> >>> You seriously have to give PyCharm a go. It's everything IDE should
> be
> >> >>> and loves django.
> >> >>>
> >> >>> On 30 May 2012 23:40, Bill Freeman  wrote:
> >> 
> >>  On Mon, May 28, 2012 at 12:25 PM, Dennis Lee Bieber
> >>   wrote:
> >>  > On Mon, 28 May 2012 05:37:43 -0700 (PDT), coded kid
> >>  >  declaimed the following in
> >>  > gmane.comp.python.django.user:
> >>  >
> >>  >> I'm in a big mess now, I've lost my projects due to this errror.
> >>  >> I'm
> >>  >> on windows, This is how I encounter the problem; I try to edit
> my
> >>  >> settings.py in IDLE. After right clicking on the files, I choose
> >>  >> open
> >>  >> program with these default file. I choose idle window bat file,
> >>  >> and I
> >>  >> clicked Ok. It didn't open, I try to run manage.py runserver on
> my
> >>  >> DOS. Not working, it will pop up the IDLE Shell and mange.py
> >>  >> script
> >>  >> by
> >>  >> displaying it in IDLE. It didn't run the server. The logo of my
> >>  >> python
> >>  >> files have changed. How can I revert it back to open with IDLE?
> >>  >> And
> >>  >> use it as default for my python script?
> >>  >
> >>  >IDLE itself is a Python script; though it sounds like you
> >>  > (or
> >>  > someone) created a Windows BAT file to act as an intermediate.
> >>  >
> >>  >The main problem appears to be that you've associated the
> >>  > "open"
> >>  > action with /IDLE/... The normal "open" action for Python (.py)
> >>  > script
> >>  > files should be Python.exe (or Pythonw.exe for .pyw). For editing
> >>  > you
> >>  > should have/create a "Edit" action that invokes your
> >>  > IDLE
> >>  > BAT file.
> >>  >
> >>  >You'll need to work with the file association commands in
> >>  > Windows to
> >>  > reset things so that "open" means RUN the script.
> >>  >
> >>  >Unfortunately, different installations have used different
> >>  > names for
> >>  > the file types. Here are mine (I had to do "ftype" with no
> >>  > arguments
> >>  > and
> >>  > scan the long output to find the Python entries):
> >>  >
> >>  > E:\UserData\Wulfraed\My Documents>ftype py_auto_file
> >>  > py_auto_file="E:\Python25\python.exe" "%1" %*
> >>  >
> >>  > E:\UserData\Wulfraed\My Documents>ftype pyw_auto_file
> >>  > pyw_auto_file="E:\Python25\pythonw.exe" "%1"
> >>  >
> >>  >
> >>  >Note that ftype only defines the "open"/"run" action for a
> >>  > file.
> >>  > (Interesting -- the .pyw doesn't take command line arguments,
> >>  > probably
> >>  > to be expected for a double-click open).
> >>  >
> >>  >The other half of the basic equation is the file extension
> >>  > to
> >>  > "file
> >>  > type" association:
> >>  >
> >>  > E:\UserData\Wulfraed\My Documents>assoc .py
> >>  > .py=py_auto_file
> >>  >
> >>  > E:\UserData\Wulfraed\My Documents>assoc .pyc
> >>  > File association not found for extension .pyc
> >>  >
> >>  > E:\UserData\Wulfraed\My Documents>assoc .pyw
> >>  > .pyw=pyw_auto_file
> >>  >
> >>  > (This is why I commented that the file type name may differ
> between
> 

Re: Inserting HTML5 Coordinates Into Django Form

2012-05-22 Thread Timothy Makobu
If I understood your question correctly, using jQuery, I would use GMAP3
http://gmap3.net/ to get the the lat and long, store those in hidden form
fields, and submit that.
http://www.electrictoolbox.com/jquery-get-set-form-values/

MaxMind also have a free IP-to-City database, so
pygeoip.GeoIP().record_by_addr(request.META["REMOTE_ADDR"])['city'] tells
you the city of the client. (they are not exactly chained like that, but
you get the idea)

my Ksh 0.02


On Mon, May 21, 2012 at 9:10 PM, DF  wrote:

> I'm wading – carefully – into some basic geolocation using HTML5. I
> currently have a meta form that has space for lat and long coordinates and
> have found the proper code to obtain those coordinates using the Google
> Maps API (pretty simple stuff).
>
> Next step: inserting those coordinates automatically into the form. The
> application would ideally allow users to make posts and store their
> coordinates for future reference and filtering (this is a big endeavor one
> step at a time).
>
> I haven't yet explored mixing JavaScript with Django in this manner and
> was looking to see if there's a straightforward manner for doing this. Any
> resources, experience or expertise on this would be greatly appreciated. In
> the end, for context's sake, I would like users to have the ability to
> search for localized posts via the map and have the posts corresponding to
> the area display on screen.
>
> Thanks for any insight.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/CkxAVz64tgQJ.
> 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.
>

-- 
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: user.set_password('new password')

2012-05-21 Thread Timothy Makobu
And a method is a function only accessible through a class.


On Mon, May 21, 2012 at 3:39 PM, bruno desthuilliers <
bruno.desthuilli...@gmail.com> wrote:

> On May 19, 5:49 pm, Timothy Makobu <makobu.mwambir...@gmail.com>
> wrote:
> > user.save returns the function object,
>
> 
> actually it evals to a method object
> 
>
> ;)
>
> --
> 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.
>
>

-- 
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: user.set_password('new password')

2012-05-19 Thread Timothy Makobu
user.save returns the function object, which is a valid statement, so
Python wont raise an Exception.

On Sat, May 19, 2012 at 9:23 AM, Min Hong Tan  wrote:

> hi..
>
> thanks!! haha... didn't notice  that. how can no error...prompt out one
>
>
> On Fri, May 18, 2012 at 11:48 PM, Jonathan D. Baker <
> jonathandavidba...@gmail.com> wrote:
>
>> Save is a method, so it needs parentheses: user.save()
>>
>> Sent from my iPhone
>>
>> On May 18, 2012, at 10:53 PM, Min Hong Tan  wrote:
>>
>> Hi,
>>
>> I 'm trying to change password in views.py in one of my  def.
>> having the below code.
>> newpassword ="testing123"
>> user = User.objects.get(username__exact = request.user)
>> user.set_password(newpassword)
>> user.save
>>
>> it didn't prompt me any error.  but, why my password still remained
>> unchanged?
>>
>> Regards,
>> MH
>>
>>
>>  --
>> 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.
>>
>>  --
>> 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.
>>
>
>  --
> 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.
>

-- 
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: configure FileZilla upload destination!!

2012-05-15 Thread Timothy Makobu
You would configure the FTP daemon to allow that, yes. I use rsync or scp
and make sure the user I'm SSH-ing as has RW permissions on the desired
folder.


On Tue, May 15, 2012 at 9:00 AM, doniyor  wrote:

> Hi Nik, thanks for help, but look, is it possible to configure the
> httpd.conf or anything which is responsible for upcoming files so that all
> files which i upload thru filezilla comes directly to that new folder i
> created for my djangoproject code to live? or do i have to copy files
> everytime from the folder which gets the uploaded files thru filezilla to
> my django folder?
>
> thanks
>
> Am Dienstag, 15. Mai 2012 03:30:10 UTC+2 schrieb Nikolas Stevenson-Molnar:
>
>> You'll get used to the Linux folder structure ;)
>>
>> As for your problem, it sounds like your FTP user doesn't have
>> filesystem permissions to the folder you're trying to upload to. I would
>> change either owner or group for the folder.
>>
>> _Nik
>>
>> On 5/14/2012 6:19 PM, doniyor wrote:
>> > hi there, finally i got my djangoproject running on apache server
>> > after 3 days of thinking and googling.. i should say, linux folder
>> > hierarchie is sometimes not really intuitive to grasp..
>> >
>> > my last problem though: i created a folder outside of the docroot and
>> > now all files are there. so good so far. but, when i try to upload
>> > some file thru filezilla, it says 550 could change to folder or
>> > something like this..
>> >
>> > is it possible to confiure it so that i can directly upload the site
>> > and apache finds it?
>> >
>> > thanks
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Django users" group.
>> > To view this discussion on the web visit
>> > https://groups.google.com/d/**msg/django-users/-/**uyCjvXLiZ8UJ.
>>
>> > To post to this group, send email to django-users@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> > django-users+unsubscribe@**googlegroups.com.
>>
>> > For more options, visit this group at
>> > http://groups.google.com/**group/django-users?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/1ViET_nP-qgJ.
>
> 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.
>

-- 
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: syncdb not creating columns in postgresql database

2012-05-15 Thread Timothy Makobu
You might want to look into using  South http://south.aeracode.org/

At first i thought it was cool, then I needed to alter a table with
important data on it, and that's when I saw it's usefulness.


On Tue, May 15, 2012 at 9:52 AM, kenneth gonsalves
wrote:

> On Mon, 2012-05-14 at 09:06 -0700, doniyor wrote:
> > delete your app from INSTALLED_APPS and syncdb, AND list it again in
> > INSTALLED_APPS and syncdb again..
> >
> > if it doesnot work, do this:
> >
> > delete your db, then syncdb, then list your app in INSTALLED_APPS and
> > syncdb again.
>
> this is bad advice. Syncdb will not give effect to changes within a
> model. You need to carry out the change manually, or use a migration
> tool like south.
> --
> regards
> Kenneth Gonsalves
>
>
> --
> 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.
>
>

-- 
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 - Which IDE is best to use.

2012-05-15 Thread Timothy Makobu
PyCharm. Spend the $$, its worth it.


On Tue, May 15, 2012 at 10:13 AM, Phang Mulianto wrote:

> Again?
>
> Well i just use a simple text editor
> On May 15, 2012 2:53 PM, "Harold.Miao"  wrote:
>
>> it is not a free sw
>>
>> 2012/5/15 Ezequiel Bertti 
>>
>>> 10x pycharm...
>>>
>>> the best one...
>>>
>>> the only one made to work with python and django...
>>>
>>>
>>> On Tue, May 15, 2012 at 12:28 AM, Rivsen  wrote:
>>>
 Maybe you can try Sublime Text 2. It's a good IDE or Editor.

 2012/5/15 Harold.Miao 

 maybe  eclipse+pydev  is good  IDE
>
>
> 2012/5/15 doniyor 
>
>> @Aaron: you are more than right,
>>
>>
>>
>> Am Montag, 14. Mai 2012 19:44:35 UTC+2 schrieb Aaron C. de Bruyn:
>>
>>> Try here:
>>>
>>> https://code.djangoproject.**com/wiki/DjangoResources#**
>>> IntegratedDevelopmentEnvironme**nts
>>>
>>> But keep in mind, a good carpenter can work with a $5 hammer or a
>>> $50
>>> hammer.  The tools don't make the developer.  (Although they can
>>> make
>>> the job of a good developer easier.)
>>>
>>> -A
>>>
>>> On Mon, May 14, 2012 at 10:39 AM, Sandro Dutra 
>>> wrote:
>>> > Again... Please search before create one more of this messages
>>> about "What's
>>> > IDE is best?". The best IDE is the IDE you fell confortable using.
>>> There 666
>>> > topics about this here, search...
>>> >
>>> >
>>> > 2012/5/14 Eneldo Serrata 
>>> >>
>>> >> Aptana or Eclipse with PyDev Plugin
>>> >> http://pydev.org/
>>> >>
>>> >> El 14/05/2012, a las 11:56, Sanjay M escribió:
>>> >>
>>> >> I am new to Django, and I was confused in choosing a IDE between
>>> Eclipse
>>> >> and aptana studio 3 to edit source code. Kindly suggest me a good
>>> one.
>>> >>
>>> >> Thank you in advance,
>>> >> Regards,
>>> >> Sanjay M
>>> >>
>>> >>
>>> >>
>>> >> --
>>> >> You received this message because you are subscribed to the
>>> Google Groups
>>> >> "Django users" group.
>>> >> To view this discussion on the web visit
>>> >> https://groups.google.com/d/**msg/django-users/-/**2LIdVrSuFpQJ.
>>>
>>> >> To post to this group, send email to
>>> django-users@googlegroups.com.
>>> >> To unsubscribe from this group, send email to
>>> >> django-users+unsubscribe@**googlegroups.com.
>>>
>>> >> For more options, visit this group at
>>> >> http://groups.google.com/**group/django-users?hl=en.
>>>
>>> >>
>>> >>
>>> >> --
>>> >> 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+unsubscribe@**googlegroups.com.
>>>
>>> >> For more options, visit this group at
>>> >> http://groups.google.com/**group/django-users?hl=en.
>>>
>>> >
>>> >
>>> > --
>>> > 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+unsubscribe@**googlegroups.com.
>>>
>>> > For more options, visit this group at
>>> > http://groups.google.com/**group/django-users?hl=en.
>>>
>>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Django users" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/django-users/-/IBuwOYUQasQJ.
>>
>> 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.
>>
>
>
>
> --
>
> Best Regards,
> Harold Miao
>
>
>  --
> 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 

Re: is django for me?

2012-05-12 Thread Timothy Makobu
HTML5+JavaScript+CSS can design a pretty fancy front, and you can use any
python framework you like best for the back, Django being one. Whichever
you're most comfortable using.
On May 12, 2012 7:57 AM, "doniyor"  wrote:

> i should say, django is the most beautiful framework for working with big
> pages also. may be it is because i like python, language is not a chaos
> language, it is clean and powerful. and django can work with flash although
> flash is a different topic from django..
>
>
>
>
>
> Am Samstag, 12. Mai 2012 04:08:29 UTC+2 schrieb giraffasaurus:
>>
>> Hi everyone,
>>
>> i recently got my first web design job and i am wondering if django is
>> the software for me. I will be working solo, doing both the graphic
>> design and the coding.
>> i am interested in django because i can already use python. The
>> commission requires something highly customised, with a lot of inbuilt
>> video and audio which can be constantly updated.
>> The only website i have designed previously was built with Flash
>> because this was the only way i could find to achieve a high degree of
>> customisation and layout animation. But many people dislike flash
>> these days, although im not really sure what the alternatives are and
>> if any of the better ones are python based.
>> Can Django integrate Flash, or some alternative animation software to
>> help create a custom layout?
>> Most of the precedents seem to be text heavy news websites quite
>> different from my brief.
>> How does it perform compared to other software, regarding multimedia
>> and data structures?
>>
>> thanks for your help,
>>
>> regards,
>>
>> giraffasaurus.
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/uto6HAtsFJUJ.
> 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.
>

-- 
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 do you install Django on a shared hosting without root access?

2012-05-12 Thread Timothy Makobu
Hi, the host needs to specifically say they support python, then you know
wsgi works with them. Check out webfaction.com
On May 12, 2012 9:39 PM, "Dan Santos"  wrote:

> Hi I'm confused about how to setup Django on my shared hosting account
> without using root.  They don't have Django or Python support so I will
> have to install everything from scratch I guess.
>
> Do I install things in this order for shared hosting, or have I messed up
> the order when not using root?
>
> 1. Python 2.7
> 2. virtualenv.py
> http://www.virtualenv.org/en/latest/index.html
>
> 3. (ENV1)$ pip install django
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/_0SpeAgCoTUJ.
> 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.
>

-- 
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: users and groups management without admin site??

2012-05-04 Thread Timothy Makobu
It would also help to tell us why you don't want to use django-admin, so we
can have your perspective.

I personally would create a myadmin app and code the admin functionality in
there.


On Fri, May 4, 2012 at 11:14 AM, Benedict Verheyen <
benedict.verhe...@gmail.com> wrote:

> On 4/05/2012 1:41, William Ibarra Rodriguez wrote:
> > maybe using django.contrib.admin or django.contrib.auth i can do that,
> > but i don´t have any start point, so if have any thought please share
> > it.
> > i want to use the options that django provide(for example the
> > password_change and the login or logout),i dont want to rewrite code
> > because i don´t have so much time to the development of the project.
> >
>
> Have a look at django-registration.
> It might be helpful
>
> Regards,
> Benedict
>
> --
> Benedict Verheyen   Debian, Python and Django user
> GnuPG Public Key 0x712CBB8D Headcoach West-Flanders Tribes
>
>
>
> --
> 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.
>
>

-- 
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: ValueError: unknown locale: UTF-8

2012-05-02 Thread Timothy Makobu
The Fix:
http://patrick.arminio.info/blog/2012/02/fix-valueerror-unknown-locale-utf8/




On Tue, May 1, 2012 at 3:08 PM, Timothy Makobu
<makobu.mwambir...@gmail.com>wrote:

> Update:
>
> When I downgraded to 1.3, everything worked ok. So I'll be using 1.3 for a
> while now to avoid surprises.
>
>
> On Sun, Apr 29, 2012 at 1:45 PM, Timothy Makobu <
> makobu.mwambir...@gmail.com> wrote:
>
>> The database is PostgreSQL 9.1.3
>>
>>
>>
>> On Sun, Apr 29, 2012 at 1:09 PM, Timothy Makobu <
>> makobu.mwambir...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I'm getting an "unknown locale" exception and yet the LANG environment
>>> variable is set:
>>>
>>> Traceback (most recent call last):
>>>   File "manage.py", line 14, in 
>>> execute_manager(settings)
>>>   File
>>> "/opt/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>>> line 459, in execute_manager
>>> utility.execute()
>>>   File
>>> "/opt/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>>> line 382, in execute
>>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>>   File
>>> "/opt/local/lib/python2.7/site-packages/django/core/management/base.py",
>>> line 196, in run_from_argv
>>> self.execute(*args, **options.__dict__)
>>>   File
>>> "/opt/local/lib/python2.7/site-packages/django/core/management/base.py",
>>> line 232, in execute
>>> output = self.handle(*args, **options)
>>>   File
>>> "/opt/local/lib/python2.7/site-packages/django/core/management/base.py",
>>> line 371, in handle
>>> return self.handle_noargs(**options)
>>>   File
>>> "/opt/local/lib/python2.7/site-packages/south/management/commands/syncdb.py",
>>> line 90, in handle_noargs
>>> syncdb.Command().execute(**options)
>>>   File
>>> "/opt/local/lib/python2.7/site-packages/django/core/management/base.py",
>>> line 232, in execute
>>> output = self.handle(*args, **options)
>>>   File
>>> "/opt/local/lib/python2.7/site-packages/django/core/management/base.py",
>>> line 371, in handle
>>> return self.handle_noargs(**options)
>>>   File
>>> "/opt/local/lib/python2.7/site-packages/django/core/management/commands/syncdb.py",
>>> line 110, in handle_noargs
>>> emit_post_sync_signal(created_models, verbosity, interactive, db)
>>>   File
>>> "/opt/local/lib/python2.7/site-packages/django/core/management/sql.py",
>>> line 189, in emit_post_sync_signal
>>> interactive=interactive, db=db)
>>>   File
>>> "/opt/local/lib/python2.7/site-packages/django/dispatch/dispatcher.py",
>>> line 172, in send
>>> response = receiver(signal=self, sender=sender, **named)
>>>   File
>>> "/opt/local/lib/python2.7/site-packages/django/contrib/auth/management/__init__.py",
>>> line 73, in create_superuser
>>> call_command("createsuperuser", interactive=True, database=db)
>>>   File
>>> "/opt/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>>> line 150, in call_command
>>> return klass.execute(*args, **defaults)
>>>   File
>>> "/opt/local/lib/python2.7/site-packages/django/core/management/base.py",
>>> line 232, in execute
>>> output = self.handle(*args, **options)
>>>   File
>>> "/opt/local/lib/python2.7/site-packages/django/contrib/auth/management/commands/createsuperuser.py",
>>> line 70, in handle
>>> default_username = get_default_username()
>>>   File
>>> "/opt/local/lib/python2.7/site-packages/django/contrib/auth/management/__init__.py",
>>> line 105, in get_default_username
>>> default_username = get_system_username()
>>>   File
>>> "/opt/local/lib/python2.7/site-packages/django/contrib/auth/management/__init__.py",
>>> line 85, in get_system_username
>>> return getpass.getuser().decode(locale.getdefaultlocale()[1])
>>>   File "/opt/local/lib/python2.7/locale.py", line 503, in
>>> getdefaultlocale
>>> return _parse_localename(localename)
>>>   File "/opt/local/lib/python2.7/locale.py", line 435, in
>>> _parse_localename
>>> raise ValueError, 'unknown locale: %s' % localename
>>> ValueError: unknown locale: UTF-8
>>>
>>>
>>> # echo $LANG
>>> # en_US.UTF-8
>>>
>>>
>>
>

-- 
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: ValueError: unknown locale: UTF-8

2012-05-01 Thread Timothy Makobu
Update:

When I downgraded to 1.3, everything worked ok. So I'll be using 1.3 for a
while now to avoid surprises.


On Sun, Apr 29, 2012 at 1:45 PM, Timothy Makobu <makobu.mwambir...@gmail.com
> wrote:

> The database is PostgreSQL 9.1.3
>
>
>
> On Sun, Apr 29, 2012 at 1:09 PM, Timothy Makobu <
> makobu.mwambir...@gmail.com> wrote:
>
>> Hi,
>>
>> I'm getting an "unknown locale" exception and yet the LANG environment
>> variable is set:
>>
>> Traceback (most recent call last):
>>   File "manage.py", line 14, in 
>> execute_manager(settings)
>>   File
>> "/opt/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>> line 459, in execute_manager
>> utility.execute()
>>   File
>> "/opt/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>> line 382, in execute
>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>   File
>> "/opt/local/lib/python2.7/site-packages/django/core/management/base.py",
>> line 196, in run_from_argv
>> self.execute(*args, **options.__dict__)
>>   File
>> "/opt/local/lib/python2.7/site-packages/django/core/management/base.py",
>> line 232, in execute
>> output = self.handle(*args, **options)
>>   File
>> "/opt/local/lib/python2.7/site-packages/django/core/management/base.py",
>> line 371, in handle
>> return self.handle_noargs(**options)
>>   File
>> "/opt/local/lib/python2.7/site-packages/south/management/commands/syncdb.py",
>> line 90, in handle_noargs
>> syncdb.Command().execute(**options)
>>   File
>> "/opt/local/lib/python2.7/site-packages/django/core/management/base.py",
>> line 232, in execute
>> output = self.handle(*args, **options)
>>   File
>> "/opt/local/lib/python2.7/site-packages/django/core/management/base.py",
>> line 371, in handle
>> return self.handle_noargs(**options)
>>   File
>> "/opt/local/lib/python2.7/site-packages/django/core/management/commands/syncdb.py",
>> line 110, in handle_noargs
>> emit_post_sync_signal(created_models, verbosity, interactive, db)
>>   File
>> "/opt/local/lib/python2.7/site-packages/django/core/management/sql.py",
>> line 189, in emit_post_sync_signal
>> interactive=interactive, db=db)
>>   File
>> "/opt/local/lib/python2.7/site-packages/django/dispatch/dispatcher.py",
>> line 172, in send
>> response = receiver(signal=self, sender=sender, **named)
>>   File
>> "/opt/local/lib/python2.7/site-packages/django/contrib/auth/management/__init__.py",
>> line 73, in create_superuser
>> call_command("createsuperuser", interactive=True, database=db)
>>   File
>> "/opt/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>> line 150, in call_command
>> return klass.execute(*args, **defaults)
>>   File
>> "/opt/local/lib/python2.7/site-packages/django/core/management/base.py",
>> line 232, in execute
>> output = self.handle(*args, **options)
>>   File
>> "/opt/local/lib/python2.7/site-packages/django/contrib/auth/management/commands/createsuperuser.py",
>> line 70, in handle
>> default_username = get_default_username()
>>   File
>> "/opt/local/lib/python2.7/site-packages/django/contrib/auth/management/__init__.py",
>> line 105, in get_default_username
>> default_username = get_system_username()
>>   File
>> "/opt/local/lib/python2.7/site-packages/django/contrib/auth/management/__init__.py",
>> line 85, in get_system_username
>> return getpass.getuser().decode(locale.getdefaultlocale()[1])
>>   File "/opt/local/lib/python2.7/locale.py", line 503, in getdefaultlocale
>> return _parse_localename(localename)
>>   File "/opt/local/lib/python2.7/locale.py", line 435, in
>> _parse_localename
>> raise ValueError, 'unknown locale: %s' % localename
>> ValueError: unknown locale: UTF-8
>>
>>
>> # echo $LANG
>> # en_US.UTF-8
>>
>>
>

-- 
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: Using Django to develop a Database?

2012-04-29 Thread Timothy Makobu
Django Admin fits your needs well
https://docs.djangoproject.com/en/dev/ref/contrib/admin/


On Sun, Apr 29, 2012 at 10:05 AM, Kevin A wrote:

> Hello,
>
> I'm hoping someone can help me with my research.
>
> I've been tasked with helping to construct a Database. Within this
> database will be information (such as their strengths and weaknesses,
> how successful they are, etc.) about various organizations. Most of
> this information is more qualitative in nature.
>
> My question is two-fold:
>
> 1) Can Django be used to create such a database?
>
> 2) If so, once its created, does the user have to have an
> understanding of Python? Or is it possible to code a webpage, that is
> password protected, and then be able to use the webpage like a normal
> website?
>
> I would really appreciate any help/advice you can offer.
>
> --
> 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.
>
>

-- 
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: ValueError: unknown locale: UTF-8

2012-04-29 Thread Timothy Makobu
The database is PostgreSQL 9.1.3


On Sun, Apr 29, 2012 at 1:09 PM, Timothy Makobu <makobu.mwambir...@gmail.com
> wrote:

> Hi,
>
> I'm getting an "unknown locale" exception and yet the LANG environment
> variable is set:
>
> Traceback (most recent call last):
>   File "manage.py", line 14, in 
> execute_manager(settings)
>   File
> "/opt/local/lib/python2.7/site-packages/django/core/management/__init__.py",
> line 459, in execute_manager
> utility.execute()
>   File
> "/opt/local/lib/python2.7/site-packages/django/core/management/__init__.py",
> line 382, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File
> "/opt/local/lib/python2.7/site-packages/django/core/management/base.py",
> line 196, in run_from_argv
> self.execute(*args, **options.__dict__)
>   File
> "/opt/local/lib/python2.7/site-packages/django/core/management/base.py",
> line 232, in execute
> output = self.handle(*args, **options)
>   File
> "/opt/local/lib/python2.7/site-packages/django/core/management/base.py",
> line 371, in handle
> return self.handle_noargs(**options)
>   File
> "/opt/local/lib/python2.7/site-packages/south/management/commands/syncdb.py",
> line 90, in handle_noargs
> syncdb.Command().execute(**options)
>   File
> "/opt/local/lib/python2.7/site-packages/django/core/management/base.py",
> line 232, in execute
> output = self.handle(*args, **options)
>   File
> "/opt/local/lib/python2.7/site-packages/django/core/management/base.py",
> line 371, in handle
> return self.handle_noargs(**options)
>   File
> "/opt/local/lib/python2.7/site-packages/django/core/management/commands/syncdb.py",
> line 110, in handle_noargs
> emit_post_sync_signal(created_models, verbosity, interactive, db)
>   File
> "/opt/local/lib/python2.7/site-packages/django/core/management/sql.py",
> line 189, in emit_post_sync_signal
> interactive=interactive, db=db)
>   File
> "/opt/local/lib/python2.7/site-packages/django/dispatch/dispatcher.py",
> line 172, in send
> response = receiver(signal=self, sender=sender, **named)
>   File
> "/opt/local/lib/python2.7/site-packages/django/contrib/auth/management/__init__.py",
> line 73, in create_superuser
> call_command("createsuperuser", interactive=True, database=db)
>   File
> "/opt/local/lib/python2.7/site-packages/django/core/management/__init__.py",
> line 150, in call_command
> return klass.execute(*args, **defaults)
>   File
> "/opt/local/lib/python2.7/site-packages/django/core/management/base.py",
> line 232, in execute
> output = self.handle(*args, **options)
>   File
> "/opt/local/lib/python2.7/site-packages/django/contrib/auth/management/commands/createsuperuser.py",
> line 70, in handle
> default_username = get_default_username()
>   File
> "/opt/local/lib/python2.7/site-packages/django/contrib/auth/management/__init__.py",
> line 105, in get_default_username
> default_username = get_system_username()
>   File
> "/opt/local/lib/python2.7/site-packages/django/contrib/auth/management/__init__.py",
> line 85, in get_system_username
> return getpass.getuser().decode(locale.getdefaultlocale()[1])
>   File "/opt/local/lib/python2.7/locale.py", line 503, in getdefaultlocale
> return _parse_localename(localename)
>   File "/opt/local/lib/python2.7/locale.py", line 435, in _parse_localename
> raise ValueError, 'unknown locale: %s' % localename
> ValueError: unknown locale: UTF-8
>
>
> # echo $LANG
> # en_US.UTF-8
>
>

-- 
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.



ValueError: unknown locale: UTF-8

2012-04-29 Thread Timothy Makobu
Hi,

I'm getting an "unknown locale" exception and yet the LANG environment
variable is set:

Traceback (most recent call last):
  File "manage.py", line 14, in 
execute_manager(settings)
  File
"/opt/local/lib/python2.7/site-packages/django/core/management/__init__.py",
line 459, in execute_manager
utility.execute()
  File
"/opt/local/lib/python2.7/site-packages/django/core/management/__init__.py",
line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File
"/opt/local/lib/python2.7/site-packages/django/core/management/base.py",
line 196, in run_from_argv
self.execute(*args, **options.__dict__)
  File
"/opt/local/lib/python2.7/site-packages/django/core/management/base.py",
line 232, in execute
output = self.handle(*args, **options)
  File
"/opt/local/lib/python2.7/site-packages/django/core/management/base.py",
line 371, in handle
return self.handle_noargs(**options)
  File
"/opt/local/lib/python2.7/site-packages/south/management/commands/syncdb.py",
line 90, in handle_noargs
syncdb.Command().execute(**options)
  File
"/opt/local/lib/python2.7/site-packages/django/core/management/base.py",
line 232, in execute
output = self.handle(*args, **options)
  File
"/opt/local/lib/python2.7/site-packages/django/core/management/base.py",
line 371, in handle
return self.handle_noargs(**options)
  File
"/opt/local/lib/python2.7/site-packages/django/core/management/commands/syncdb.py",
line 110, in handle_noargs
emit_post_sync_signal(created_models, verbosity, interactive, db)
  File
"/opt/local/lib/python2.7/site-packages/django/core/management/sql.py",
line 189, in emit_post_sync_signal
interactive=interactive, db=db)
  File
"/opt/local/lib/python2.7/site-packages/django/dispatch/dispatcher.py",
line 172, in send
response = receiver(signal=self, sender=sender, **named)
  File
"/opt/local/lib/python2.7/site-packages/django/contrib/auth/management/__init__.py",
line 73, in create_superuser
call_command("createsuperuser", interactive=True, database=db)
  File
"/opt/local/lib/python2.7/site-packages/django/core/management/__init__.py",
line 150, in call_command
return klass.execute(*args, **defaults)
  File
"/opt/local/lib/python2.7/site-packages/django/core/management/base.py",
line 232, in execute
output = self.handle(*args, **options)
  File
"/opt/local/lib/python2.7/site-packages/django/contrib/auth/management/commands/createsuperuser.py",
line 70, in handle
default_username = get_default_username()
  File
"/opt/local/lib/python2.7/site-packages/django/contrib/auth/management/__init__.py",
line 105, in get_default_username
default_username = get_system_username()
  File
"/opt/local/lib/python2.7/site-packages/django/contrib/auth/management/__init__.py",
line 85, in get_system_username
return getpass.getuser().decode(locale.getdefaultlocale()[1])
  File "/opt/local/lib/python2.7/locale.py", line 503, in getdefaultlocale
return _parse_localename(localename)
  File "/opt/local/lib/python2.7/locale.py", line 435, in _parse_localename
raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: UTF-8


# echo $LANG
# en_US.UTF-8

-- 
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: 'module' object is not callable

2012-04-27 Thread Timothy Makobu
How are you importing datetime? In python 2.7,

import datetime

datetime.datetime() is callable not datetime() by itself.


On Fri, Apr 27, 2012 at 8:46 AM, Gopi Kirupanithi wrote:

> Actually I am using datetime object for comparing two date inputs.
>
> if datetime(fromdtpart[2],fromdtpart[1],fromdtpart[0]) <
> datetime(todtpart[2], todtpart[1], todtpart[0]):
>
> while execute the above line, I got the " 'module' object is not
> callable " error.
>
>
> Anybody can explain why this error occur..
>
> --
> 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.
>
>

-- 
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: New to Jdango - What IDE to use?

2012-04-23 Thread Timothy Makobu
I have one of those actually, but that's coz I have a project that's been
around a while. They actually checked out the googlecode page.

On Mon, Apr 23, 2012 at 3:00 PM, kenneth gonsalves
<law...@thenilgiris.com>wrote:

> On Mon, 2012-04-23 at 14:54 +0300, Timothy Makobu wrote:
> > If you can spare a few bux, get PyCharm. It's the best.
>
> they give open source licenses for free.
> --
> regards
> Kenneth Gonsalves
>
> --
> 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.
>
>

-- 
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: New to Jdango - What IDE to use?

2012-04-23 Thread Timothy Makobu
If you can spare a few bux, get PyCharm. It's the best.

On Mon, Apr 23, 2012 at 2:51 PM, Joel Goldstick wrote:

> On Sun, Apr 22, 2012 at 12:59 PM, Aaron C. de Bruyn 
> wrote:
> > This has been asked eleventy bajillion times, but I don't see a wiki
> > page on it?  :)
> >
> > I'd be happy to dig through the archives and compile a list if there's
> > no objection.
> >
> > Would there be a problem including for-pay IDEs?  (For example I use
> > PyCharm from time to time)
> >
> > Any wiki managers or people with the commit bit object to me adding an
> > 'IDE' section here?
> > https://code.djangoproject.com/wiki/DjangoResources
> >
> > -A
> >
> > On Sat, Apr 21, 2012 at 11:47, yati sagade 
> wrote:
> >> You counted it wrong. Add one more zero ;-)
> >>
> >>
> >> On Sat, Apr 21, 2012 at 11:48 PM, Shawn Milochik 
> wrote:
> >>>
> >>> There are eleventy bajillion discussions on this already.
> >>>
> >>> Please search the group history on Google Groups.
> >>>
> >>>
> >>> --
> >>> 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.
> >>>
> >>
> >>
> >>
> >> --
> >> Yati Sagade
> >>
> >> Twitter: @yati_itay
> >>
> >> Organizing member of TEDx EasternMetropolitanBypass
> >> http://www.ted.com/tedx/events/4933
> >>
> https://www.facebook.com/pages/TEDx-EasternMetropolitanBypass/337763226244869
> >>
> >>
> >>
> >> --
> >> 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.
> >
> > --
> > 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.
> >
> There is always gedit or vim with a couple of browser tabs open to the
> djangobook and djangoproject
>
>
> --
> Joel Goldstick
>
> --
> 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.
>
>

-- 
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: cannot import name current_datetime

2012-04-19 Thread Timothy Makobu
The example works as the book describes
http://www.djangobook.com/en/1.0/chapter03/

 When, in views.py I insert the "datetime.datetime.now()" statement and
> "import current_datetime" into my urls.py file, I get the following error
> message when I try to call up the webpage via runserver.  It seems like my
> pure python script is not being picked up by the server:
>
> "ImportError cannot import name current_datetime".
>
>
>
Do it exactly as it says in the book:

from mysite.views import current_datetime

-- 
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 there such a open source django project?

2012-04-17 Thread Timothy Makobu
Or just use a ticketing system like Mantis 


On Tue, Apr 17, 2012 at 3:29 PM, Marcos Moyano wrote:

> If there is, this is a good place to look for it:
> http://djangopackages.com/
>
> Marcos
>
>
> On Tue, Apr 17, 2012 at 7:12 AM, James Deng  wrote:
>
>> Hi all,
>>
>> I have a case to manage my staff for customer support, basically I need a
>> time based schedule table. the point is that we need to know WHO at WHEN
>> should take care of WHICH customer, we should be able to input a bunch of
>> support schedule, and get a simple view of it.
>>
>> So my question is, is there any existing django project/module to use
>> before I rush to develop it myself?
>>
>> Thanks a lot!
>> BRs//James
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/django-users/-/xjKi4wQV_1cJ.
>> 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.
>>
>
>
>
> --
> Some people, when confronted with a problem, think “I know, I'll use
> regular expressions.” Now they have two problems.
>
> Jamie Zawinski, in comp.emacs.xemacs
>
>  --
> 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.
>

-- 
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: no such column: jobs_job.mainloc

2012-04-13 Thread Timothy Makobu
Right. The question is whether you added the field "after" running syncdb
for the first time.

On Fri, Apr 13, 2012 at 8:58 PM, alex3627 <alexanderdie...@googlemail.com>wrote:

>
>
> On Friday, April 13, 2012 12:45:22 PM UTC-5, Timothy Makobu wrote:
>>
>> Did you run a syncdb, then added mainloc after? Also, using 
>> south<http://south.aeracode.org/>makes things much easier.
>>
>> Of course I ran a syncdb. I have no experience with South and would like
> to solve this problem without using something else.
>
>
> Thanks
>   Alex
>
>
>
>> Hi all,
>>
>> I am new to django and just learning, but for the current error I have
>> absolutely no idea about the cause. I have created a model named Job in
>> model.py which contains several elements. One of the is defined as follows:
>>
>> mainloc  = models.CharField(max_length=1, choices = MAINLOC)
>>
>> and MAINLOC is a list of 2-tuples, with the first element a 1-character
>> expression (like 'B', 'M'...). I have updated the database (the name
>> mainloc is explicitly mentioned in the screen output), I have sync'd the
>> database and restarted the server. But still, when I want to display the
>> (empty) list on my browser, I get the message
>>
>>no such column: jobs_job.mainloc
>>
>>
>> Any idea or advice I could try to do?
>>
>> Thanks
>>Alex
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To view this discussion on the web visit https://groups.google.com/d/**
>> msg/django-users/-/**4G24v1A5LaUJ<https://groups.google.com/d/msg/django-users/-/4G24v1A5LaUJ>
>> .
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to django-users+unsubscribe@**
>> googlegroups.com <django-users%2bunsubscr...@googlegroups.com>.
>> For more options, visit this group at http://groups.google.com/**
>> group/django-users?hl=en<http://groups.google.com/group/django-users?hl=en>
>> .
>>
>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/mapjVj47xokJ.
>
> 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.
>

-- 
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: no such column: jobs_job.mainloc

2012-04-13 Thread Timothy Makobu
Did you run a syncdb, then added mainloc after? Also, using
southmakes things much easier.


On Fri, Apr 13, 2012 at 8:19 PM, alex3627 wrote:

> Hi all,
>
> I am new to django and just learning, but for the current error I have
> absolutely no idea about the cause. I have created a model named Job in
> model.py which contains several elements. One of the is defined as follows:
>
> mainloc  = models.CharField(max_length=1, choices = MAINLOC)
>
> and MAINLOC is a list of 2-tuples, with the first element a 1-character
> expression (like 'B', 'M'...). I have updated the database (the name
> mainloc is explicitly mentioned in the screen output), I have sync'd the
> database and restarted the server. But still, when I want to display the
> (empty) list on my browser, I get the message
>
>no such column: jobs_job.mainloc
>
>
> Any idea or advice I could try to do?
>
> Thanks
>Alex
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/4G24v1A5LaUJ.
> 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.
>

-- 
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: Django Book

2012-04-12 Thread Timothy Makobu
On Thu, Apr 12, 2012 at 3:45 PM, Mario Gudelj wrote:

> I followed the book in 1.3 and everything worked. It's the best piece of
> documentation I've come across. Such great narrative, not too detailed but
> detailed enough.
>
>
> Yea. I still read chapters randomly as the author can obviously teach
(knows how to lay out complex info simply). It's a shame they decided to
let it rot.

-- 
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: Django Book

2012-04-12 Thread Timothy Makobu
Mmmm, any dev willing to tell us the final word on this?


2012/4/12 Святослав Б <ad3w.in...@gmail.com>

> Documentation is the best source for understanding Django. If your new in
> Django - read tutorial:
> https://docs.djangoproject.com/en/dev/intro/tutorial01/
>
> List of tutorials: https://code.djangoproject.com/wiki/Tutorials
>
>
>
>
> 2012/4/12 Torsten Bronger <bron...@physik.rwth-aachen.de>
>
>> Hallöchen!
>>
>> Timothy Makobu writes:
>>
>> > The Django book is the best source of understanding Django I have
>> > found http://www.djangobook.com/en/2.0/
>>
>> All books about Django share the same problem: The original
>> documentation is simply terrific, both for the beginner and the
>> expert.
>>
>> Tschö,
>> Torsten.
>>
>> --
>> Torsten BrongerJabber ID: torsten.bron...@jabber.rwth-aachen.de
>>  or http://bronger-jmp.appspot.com
>>
>> --
>> 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.
>>
>>
>  --
> 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.
>

-- 
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: Django Book

2012-04-12 Thread Timothy Makobu
Hi, I've been using Django about 4 years now, so the docs and source code
is where I usually get answers these days. But back in the the day when I
started out, the book really helped me understand Django, and I
often recommend it to friends just starting out.

On Thu, Apr 12, 2012 at 11:22 AM, Sami Balbaky <sami.balb...@gmail.com>wrote:

> Hi Tim,
>
> I'm also a fairly new developer in Django, and I found that reading the
> book, specifically chapters 1-10, really gave me a solid foundation.
> Reading the book in conjunction with
> https://docs.djangoproject.com/en/1.4/  will give you a very solid
> footing.
>
> Best,
>
> SB
>
>
> On Thu, Apr 12, 2012 at 1:09 AM, Torsten Bronger <
> bron...@physik.rwth-aachen.de> wrote:
>
>> Hallöchen!
>>
>> Timothy Makobu writes:
>>
>> > The Django book is the best source of understanding Django I have
>> > found http://www.djangobook.com/en/2.0/
>>
>> All books about Django share the same problem: The original
>> documentation is simply terrific, both for the beginner and the
>> expert.
>>
>> Tschö,
>> Torsten.
>>
>> --
>> Torsten BrongerJabber ID: torsten.bron...@jabber.rwth-aachen.de
>>  or http://bronger-jmp.appspot.com
>>
>> --
>> 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.
>>
>>
>
>
>
>
>  --
> 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.
>

-- 
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: Django Book

2012-04-12 Thread Timothy Makobu
Yes it is. But the book has its place. Or is leaving the book outdated an
indirect way of telling us to use only the docs?


On Thu, Apr 12, 2012 at 11:09 AM, Torsten Bronger <
bron...@physik.rwth-aachen.de> wrote:

> Hallöchen!
>
> Timothy Makobu writes:
>
> > The Django book is the best source of understanding Django I have
> > found http://www.djangobook.com/en/2.0/
>
> All books about Django share the same problem: The original
> documentation is simply terrific, both for the beginner and the
> expert.
>
> Tschö,
> Torsten.
>
> --
> Torsten BrongerJabber ID: torsten.bron...@jabber.rwth-aachen.de
>  or http://bronger-jmp.appspot.com
>
> --
> 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.
>
>

-- 
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.



Django Book

2012-04-12 Thread Timothy Makobu
The Django book is the best source of understanding Django I have found
http://www.djangobook.com/en/2.0/

However, it's three years old now. Is the info on it still valid?

Is there a plan to update it?

regards,
Tim

-- 
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: ecommerce like openCart in php

2012-04-11 Thread Timothy Makobu
Have a look around here http://djangopackages.com/grids/g/ecommerce/


On Thu, Apr 12, 2012 at 3:46 AM, Alec Taylor  wrote:

> [Maybe] Mezzanine?
>
> On Thu, Apr 12, 2012 at 10:35 AM, m1chael  wrote:
> > i think you're barking up the wrong tree miss Hisham
> >
> > On Wed, Apr 11, 2012 at 6:34 PM, Randa Hisham 
> wrote:
> >>
> >> iam searching for an ecommerce  open source like OpenCart in php
> >> -  -
> >> Randa Hesham
> >> Software Developer
> >>
> >> Twitter:@ro0oraa
> >> FaceBook:Randa Hisham
> >>
> >> ٍ
> >>
> >> --
> >> 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.
> >
> > --
> > 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.
> >
>
> --
> 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.
>
>

-- 
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: Django Admin base.html error

2012-02-25 Thread Timothy Makobu
That was it. Thanks a bunch.

On 2/26/12, donarb <don...@nwlink.com> wrote:
> Try this first. Check your urlconf and make sure that all routes lead
> to actual methods. Like if you have a url that points to something
> like myapp.views.index, make sure that there is actually an index
> method in views.py.
>
> This error bites everyone eventually, since people get ahead of
> themselves and create urls before the associated methods. Then when
> you turn on the admin app, it crashes because admin requires reverse
> url resolutions. The fix is to just create empty methods or
> temporarily  comment out unused urls.
>
> On Feb 24, 3:29 am, Timothy Makobu <makobu.mwambir...@gmail.com>
> wrote:
>> I think I just stumbled onto a Django Admin base.html bug. Here is
>> the stack-trace:
>>
>> http://dpaste.org/fYuEw/
>
> --
> 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.
>
>

-- 
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.



Django Admin base.html error

2012-02-24 Thread Timothy Makobu
I think I just stumbled onto a Django Admin base.html bug. Here is
the stack-trace:

http://dpaste.org/fYuEw/

-- 
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.



G+ API library

2012-02-16 Thread Timothy Makobu
Hi all,

Is there a completely bare bones script out there for G+?
Something that takes the client_id and client_secret and returns a handle
to G+; something like python-twitter?

-- 
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: django-db-log import Exception

2012-01-30 Thread Timothy Makobu
Naa, looks too bloaty for me. I'll just write midleware and do the
logging inside process_exception()

On Mon, Jan 30, 2012 at 7:45 PM, Babatunde Akinyanmi
<tundeba...@gmail.com> wrote:
> Hi Tim,
> Django-db-log is no longer maintained. Its like its not compatible
> with 1.3. Use django-sentry instead.
>
> On 1/30/12, Timothy Makobu <makobu.mwambir...@gmail.com> wrote:
>>  right.
>>
>> Hi guys. If someone could kindly alert the dev? I emailed him already
>> but no response yet. Pip needs to pick up the fixed  dangodblog as a
>> dep where the app is hosted. It's all automated.
>>
>>
>> On Mon, Jan 30, 2012 at 6:45 PM, Babatunde Akinyanmi
>> <tundeba...@gmail.com> wrote:
>>> Oh I see. I was reading djangodblog as django-dblog instead of
>>> django-db-log so I was thinking djangodblog was a directory you
>>> created yourself.
>>>
>>> As long as Paginator remains on that line there's no way to go
>>> forward. If I was you, I'd try to go through the source and figure out
>>> if Paginator should be in the source.
>>>
>>> To me it looks like the app was shipped broken. Maybe if you go
>>> through the source, you might find that removing Paginator would mend
>>> things.
>>>
>>> On 1/30/12, Timothy Makobu <makobu.mwambir...@gmail.com> wrote:
>>>> This is how Paginator is imported
>>>> https://docs.djangoproject.com/en/dev/topics/pagination/
>>>>
>>>> from django.core.paginator import Paginator
>>>>
>>>> (this is part of django.core on my 1.3, so doesn't need installing)
>>>>
>>>> This is how djangodblog is trying to import it:
>>>>
>>>> from django.contrib.admin.views.main import ChangeList, Paginator
>>>>
>>>> ..
>>>>
>>>> see the difference?
>>>>
>>>> --
>>>> 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.
>>>>
>>>>
>>>
>>> --
>>> Sent from my mobile device
>>>
>>> --
>>> 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.
>>>
>>
>>
>>
>> --
>> sent from my two tin cans via hangerwire
>>
>> --
>> 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.
>>
>>
>
> --
> Sent from my mobile device
>
> --
> 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.
>



-- 
sent from my two tin cans via hangerwire

-- 
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: django-db-log import Exception

2012-01-30 Thread Timothy Makobu
 right.

Hi guys. If someone could kindly alert the dev? I emailed him already
but no response yet. Pip needs to pick up the fixed  dangodblog as a
dep where the app is hosted. It's all automated.


On Mon, Jan 30, 2012 at 6:45 PM, Babatunde Akinyanmi
<tundeba...@gmail.com> wrote:
> Oh I see. I was reading djangodblog as django-dblog instead of
> django-db-log so I was thinking djangodblog was a directory you
> created yourself.
>
> As long as Paginator remains on that line there's no way to go
> forward. If I was you, I'd try to go through the source and figure out
> if Paginator should be in the source.
>
> To me it looks like the app was shipped broken. Maybe if you go
> through the source, you might find that removing Paginator would mend
> things.
>
> On 1/30/12, Timothy Makobu <makobu.mwambir...@gmail.com> wrote:
>> This is how Paginator is imported
>> https://docs.djangoproject.com/en/dev/topics/pagination/
>>
>> from django.core.paginator import Paginator
>>
>> (this is part of django.core on my 1.3, so doesn't need installing)
>>
>> This is how djangodblog is trying to import it:
>>
>> from django.contrib.admin.views.main import ChangeList, Paginator
>>
>> ..
>>
>> see the difference?
>>
>> --
>> 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.
>>
>>
>
> --
> Sent from my mobile device
>
> --
> 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.
>



-- 
sent from my two tin cans via hangerwire

-- 
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: django-db-log import Exception

2012-01-30 Thread Timothy Makobu
This is how Paginator is imported
https://docs.djangoproject.com/en/dev/topics/pagination/

from django.core.paginator import Paginator

(this is part of django.core on my 1.3, so doesn't need installing)

This is how djangodblog is trying to import it:

from django.contrib.admin.views.main import ChangeList, Paginator

..

see the difference?

-- 
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: django-db-log import Exception

2012-01-30 Thread Timothy Makobu
It's trying to import it from django.contrib.admin.views.main


On Mon, Jan 30, 2012 at 4:29 PM, Babatunde Akinyanmi
<tundeba...@gmail.com>wrote:

> Seems like the app depends on paginator. Why not install the paginator app?
>
>
> On 1/30/12, Timothy Makobu <makobu.mwambir...@gmail.com> wrote:
> > Hi all,
> >
> > I'm on Django 1.3
> >
> > I just now installed django-db-log via pip, but after adding it to
> > installed_apps, I get this Exception:
> >
> > Traceback (most recent call last):
> >   File "/bundles/port-8233/app_image/epio_wsgi.py", line 32, in __call__
> > output = wsgi_entrypoint(environ, self.start_response)
> >   File
> > "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py",
> > line 273, in __call__
> > response = self.get_response(request)
> >   File
> > "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py",
> > line 169, in get_response
> > response = self.handle_uncaught_exception(request, resolver,
> > sys.exc_info())
> >   File
> > "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py",
> > line 214, in handle_uncaught_exception
> > if resolver.urlconf_module is None:
> >   File
> "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py",
> > line 274, in _get_urlconf_module
> > self._urlconf_module = import_module(self.urlconf_name)
> >   File
> "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py",
> > line 35, in import_module
> > __import__(name)
> >   File "/bundles/port-8233/app_image/redapps/urls.py", line 5, in
> > admin.autodiscover()
> >   File
> >
> "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/__init__.py",
> > line 26, in autodiscover
> > import_module('%s.admin' % app)
> >   File
> "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py",
> > line 35, in import_module
> > __import__(name)
> >   File
> >
> "/bundles/port-8233/app_image/pyenv/lib/python2.7/site-packages/djangodblog/admin.py",
> > line 4, in
> > from django.contrib.admin.views.main import ChangeList, Paginator
> > ImportError: cannot import name Paginator
> >
> >
> > --
> > sent from my two tin cans via hangerwire
> >
> > --
> > 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.
> >
> >
>
> --
> Sent from my mobile device
>
> --
> 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.
>
>


-- 
sent from my two tin cans via hangerwire

-- 
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.



django-db-log import Exception

2012-01-30 Thread Timothy Makobu
Hi all,

I'm on Django 1.3

I just now installed django-db-log via pip, but after adding it to
installed_apps, I get this Exception:

Traceback (most recent call last):
  File "/bundles/port-8233/app_image/epio_wsgi.py", line 32, in __call__
output = wsgi_entrypoint(environ, self.start_response)
  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py",
line 273, in __call__
response = self.get_response(request)
  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py",
line 169, in get_response
response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py",
line 214, in handle_uncaught_exception
if resolver.urlconf_module is None:
  File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py",
line 274, in _get_urlconf_module
self._urlconf_module = import_module(self.urlconf_name)
  File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py",
line 35, in import_module
__import__(name)
  File "/bundles/port-8233/app_image/redapps/urls.py", line 5, in
admin.autodiscover()
  File 
"/usr/local/lib/python2.7/dist-packages/django/contrib/admin/__init__.py",
line 26, in autodiscover
import_module('%s.admin' % app)
  File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py",
line 35, in import_module
__import__(name)
  File 
"/bundles/port-8233/app_image/pyenv/lib/python2.7/site-packages/djangodblog/admin.py",
line 4, in
from django.contrib.admin.views.main import ChangeList, Paginator
ImportError: cannot import name Paginator


-- 
sent from my two tin cans via hangerwire

-- 
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: Could someone please give some suggestions about how to set up email sending settings on production.

2012-01-19 Thread Timothy Makobu
Hi,

There's Amazon SES http://aws.amazon.com/ses/


On Thu, Jan 19, 2012 at 12:07 PM, Daniel Roseman wrote:

> On Thursday, 19 January 2012 02:45:09 UTC, Chen Xu wrote:
>
>> Hi, everyone:
>>
>> Could someone please give some suggestions about how to set up email
>> sending settings on production.
>>
>> I know on local, you can do  either:
>> python -m smtpd -n -c DebuggingServer localhost:1025
>>
>> EMAIL_BACKEND = 'django.core.mail.backends.**smtp.EmailBackend'
>>
>> EMAIL_HOST = 'localhost'
>> EMAIL_PORT = 1025
>>
>> and then email will be printed on the terminal
>>
>> or
>> EMAIL_USE_TLS = True
>> EMAIL_HOST = 'smtp.gmail.com'
>> EMAIL_PORT = 587
>> EMAIL_HOST_USER = 'm...@gmail.com'
>> EMAIL_HOST_PASSWORD = 'pw'
>>
>> but I dont want to use gmail account to send emails on production.
>>
>> Therefore, could someone please help?
>>
>>
>> Thanks very much
>> Best regards
>>
>>
>> --
>> ⚡ Chen Xu ⚡
>>
>
> I don't understand the question. You use the settings of whatever your
> mail server is. If you don't use gmail, presumably you have a different
> mail server, so use that.
> --
> DR.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/v3lYi8DTwnIJ.
>
> 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.
>



-- 
sent from my two tin cans via hangerwire

-- 
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: Cheap Django hosting?

2012-01-04 Thread Timothy Makobu
Ah yes.

What's the average monthly bill of an EC2 small (more reasonable resources)
instance running a Django on Postgres app handling an average of 200
requests per hour?

Anyone have experience with this? (experience is better than the
calculator<http://calculator.s3.amazonaws.com/calc5.html> I
reckon)


On Wed, Jan 4, 2012 at 7:24 PM, Javier Guerra Giraldez
<jav...@guerrag.com>wrote:

> On Tue, Jan 3, 2012 at 11:04 AM, Timothy Makobu
> <makobu.mwambir...@gmail.com> wrote:
> > They charge me for only what I use, and their free quotas are generous.
>
> doesn't the free tier expire after one year?
>
> --
> Javier
>
> --
> 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.
>
>

-- 
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: Cheap Django hosting?

2012-01-04 Thread Timothy Makobu
Yeah, 2 bux.

With Gentoo im able to squeeze out quite a bit out of that little thing.
But I switch to c1.xlarge when it comes to running "# emerge --update
--deep --with-bdeps=y --newuse world" and switch back to t1.micro
immediately after.

On Wed, Jan 4, 2012 at 6:21 PM, creecode  wrote:

> Hello Praveen Krishna R,
>
>
> On Wednesday, January 4, 2012 1:53:00 AM UTC-8, Praveen Krishna R wrote:
>
> *Did you say $2 per month for an EC2 instance ?!!*
>>
>
> That is for the Micro instance 
> which is suitable for some tasks 
> but not all.  Check out the
> pricing  structure for all their
> instance types.
>
> Toodle-lo
> creecode
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/cJdPJs47KN4J.
>
> 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.
>

-- 
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: Cheap Django hosting?

2012-01-03 Thread Timothy Makobu
Hi,

If you must have root (mybe Twisted is one of your dependancies? or you
need all 65535 ports?) Amazon EC2 is a prudent choice. For example, I pay 1
to 2 USD/m, and sometimes cents on my micro instance. They charge me for
only what I use, and their free quotas are generous.


On Tue, Jan 3, 2012 at 5:16 PM, Sid  wrote:

> @alec
>
> If you want to go with a VPS, try http://www.lowendbox.com/
>
> Plenty of cheap throwaway machines, i find webfaction, new PAAS like
> gondor, ep.io to be too restrictive. Nothing beats root access, and
> cheaply too!
>
> -Sid
> http://www.sidmitra.com
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/ckNJjXg2HsAJ.
>
> 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.
>

-- 
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: Introducing: pythonpackages.com

2012-01-03 Thread Timothy Makobu
Nice.

Any chance of a "Login with Google" button?

On Tue, Jan 3, 2012 at 11:45 AM, Thomas Weholt wrote:

> Looks nice, allthough one thing that annoys me quite a bit is how
> github suddenly becomes the de facto way of logging in everywhere,
> like djangopackages.com as well. My old login doesn't work there
> anymore. I use bitbucket, and have no plans or need to switch to
> github for hosting my projects. Sorry for ranting :-|
>
> Still, like the looks of your project :-) So keep up the good work!
>
> Thomas
>
>
>
> On Tue, Jan 3, 2012 at 3:06 AM, Alex Clark  wrote:
> > Hi,
> >
> > For the past two months I've been developing a service for developers and
> > consumers of Python packages:
> >
> > - http://pythonpackages.com
> >
> > (And as a Django user, this service may be of interest to you).
> >
> > Recently, we've added the ability for folks to login with their github
> > account. This changes the landscape of the site from anonymous to
> personal,
> > and with this change the creation of "profile pages" is now possible,
> e.g.:
> >
> > - http://pythonpackages.com/user/nutjob4life
> >
> > We've seen a fair amount of activity on the site by anonymous users, and
> > with this change I envision a fair amount of github user activity. Toward
> > that end, I would appreciate it if you would take a minute to login with
> > your github account here (requires read only access) and give the
> service a
> > try:
> >
> > - http://pythonpackages.com/login
> >
> > You can also browse recent package activity (via the PyPI API) here:
> >
> > - http://pythonpackages.com/activity
> >
> > Discuss packages here:
> >
> > - http://pythonpackages.com/discuss
> >
> > And read our site documentation here:
> >
> > - http://pythonpackages-docs.readthedocs.org
> >
> > Lastly, if you have any feedback please feel free to leave a comment
> here:
> >
> > - http://pythonpackages.com/about
> >
> > Or open a ticket here:
> >
> > - https://bitbucket.org/pythonpackages/pythonpackages.com/issues/new
> >
> >
> > Thanks,
> >
> >
> > Alex
> >
> >
> > --
> > Alex Clark · http://pythonpackages.com
> >
> > --
> > 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.
> >
>
>
>
> --
> Mvh/Best regards,
> Thomas Weholt
> http://www.weholt.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 options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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: Cheap Django hosting?

2012-01-02 Thread Timothy Makobu
ep.io

On Mon, Jan 2, 2012 at 1:00 PM, Andre Terra  wrote:

> Hello, Alec
>
>
> There are plenty of threads regarding inexpensive django hosting. Please
> browse the mailing list archives before starting a new one.
>
> We don't need another 100 replies with suggestions!
>
>
> Cheers,
> AT
>
>
> On Mon, Jan 2, 2012 at 6:49 AM, Alec Taylor wrote:
>
>> Good afternoon,
>>
>> I'm looking for some cheap Django hosting, to host all my test sites.
>> My production sites will be have more expensive, more reliable, faster
>> servers+sites; but it would be good to have a cheap host for
>> prototypes.
>>
>> Know of a good one?
>>
>> Thanks for all suggestions,
>>
>> Alec Taylor
>>
>> --
>> 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.
>>
>>
>  --
> 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.
>

-- 
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: Expand FlatPage admin interface.

2012-01-01 Thread Timothy Makobu
https://docs.djangoproject.com/en/1.3/releases/1.0-porting-guide/#the-admin

On Sun, Jan 1, 2012 at 9:59 PM, Elad Zucker  wrote:

> I am learning Django using the book "Practical Django Project". This isn't
> such an old book but seems to be very out-dated in terms of django. it Uses
> the old admin interface which I assume was replaced in version 1.0.
>
> To make a long story short, one of the example of the book is to add a
> keyword items to a flatpage model. this is done by doing somthing like that
> :
> page = models.ForeignKey(FlatPage, edit_inline=models.STACKED,)
>
> Now, I am trying to do the same using the new admin interface but with no
> luck. I can use admin.StackedInline but how do I associate it with the
> flatpage model ?
>
> Hope I am clear here.
>
> Thanks,
> Elad
>
> --
> 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.
>

-- 
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: Happy new year

2012-01-01 Thread Timothy Makobu
+1

On Sun, Jan 1, 2012 at 8:28 PM, Cal Leeming [Simplicity Media Ltd] <
cal.leem...@simplicitymedialtd.co.uk> wrote:

> Happy new year everyone :)
>
> Lets hope 2012 is a great year for Django!!
>
>
> On Sun, Jan 1, 2012 at 8:58 AM, Daniel Ngarambe  wrote:
>
>> Hello Geeks,
>>
>> I wish you all a happy mew year.
>>
>> DNSr.
>>
>> Sent from Samsung Galaxy S
>> On 1 Jan 2012 08:24, "girish shabadimath" 
>> wrote:
>>
>>> New year wishes to everyone,,
>>>
>>> regards,
>>> girish ms
>>> On Sun, Jan 1, 2012 at 10:24 AM, Nikhil Verma 
>>> wrote:
>>>
 Happy new year to all of you.


 On Sun, Jan 1, 2012 at 10:22 AM, yati sagade wrote:

> Happy new year all :)
>
>
> On Sun, Jan 1, 2012 at 7:54 AM, Adrien Lemaire <
> adrien.lema...@aquasys.co.jp> wrote:
>
>> Happy new year dear folks !
>>
>> On Jan 1, 1:48 am, Sławomir Zborowski  wrote:
>> > Happy new year, Django users :-) !
>>
>> --
>> 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.
>>
>>
>  --
> 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.
>



 --
 Regards
 Nikhil Verma
 +91-958-273-3156


  --
 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.

>>>
>>>
>>>
>>> --
>>> Girish M S
>>>
>>> --
>>> 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.
>>>
>>  --
>> 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.
>>
>
>  --
> 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.
>

-- 
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: django-admin.py startproject will NOT work.

2011-12-31 Thread Timothy Makobu
+1

On Sun, Jan 1, 2012 at 9:49 AM, Bart Nagel  wrote:

> At 2011-12-31 18:56:14 -0800, Chris Kavanagh wrote:
> > Ok I've had a breakthrough (I guess,lol). I started a command prompt
> > from my Python Scripts folder (C:\Python27\Scripts\), typed in "Python
> > django-admin.py startproject mysite", and it worked!! I now have the
> > "mysite" folder with appropriate subfolders (__init__.py,
> > manage.py,settings.py,urls.py).
>
> It still doesn't make sense that it wasn't working before. Did you try
> the modified args.py script I sent you?
>
> > Is this working correctly?? Should I have to create Projects in the
> > Python Scripts Folder?? Should it work from another (any misc dir)
> > dir??
>
> If Python itself and the django-admin.py script were being found
> properly (and they were when you were getting the help message), yes,
> you should be able to do that from any directory.
>
> > And, can I leave it in the Scripts Folder or should I move it?? If I
> > do move it, will that cause other problems??
>
> You should probably move it. It should work anywhere, again, as long
> as it can find Python properly.
>
> --bart
>
> --
> 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.
>
>

-- 
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: Django app for IP address lookup

2011-12-31 Thread Timothy Makobu
Thanks man. Happy new year!

On Sun, Jan 1, 2012 at 9:33 AM, Addy Yeow <ayeo...@gmail.com> wrote:

> Here you go:
> http://dazzlepod.com/ip/8.8.8.8.json
>
> On Sat, Dec 31, 2011 at 10:14 PM, Timothy Makobu <
> makobu.mwambir...@gmail.com> wrote:
>
>> Thanks.
>>
>> Do you have an API for it yet? so we can do something like
>> http://dazzlepod.com/ip/api/json/1x7.x37.8.xx and get the data in JSON?
>>
>>
>> On Sat, Dec 31, 2011 at 4:09 PM, yati sagade <yati.sag...@gmail.com>wrote:
>>
>>> Nice app :) can you share the sources? And happy new year to you, too!
>>>
>>>
>>> On Sat, Dec 31, 2011 at 5:20 PM, Addy Yeow <ayeo...@gmail.com> wrote:
>>>
>>>> Hi guys,
>>>>
>>>> Just sharing a simple Django app that allows you to do IP address
>>>> lookup:
>>>> http://dazzlepod.com/ip/
>>>>
>>>> Happy new year!
>>>>
>>>> --
>>>> 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.
>>>>
>>>
>>>  --
>>> 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.
>>>
>>
>>  --
>> 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.
>>
>
>  --
> 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.
>

-- 
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: django-admin.py startproject will NOT work.

2011-12-31 Thread Timothy Makobu
Hi,

File associations are fine i reckon, because django-admin is giving you the
help message because for some reason it thinks you're *giving it improper
input*.

On Sat, Dec 31, 2011 at 7:40 PM, Chris Kavanagh  wrote:

> While looking for a solution, I found someone with a similar problem.
> he thought there was a problem with the way Python Files are
> associated. So I did what was suggested on the command line, using
> "assoc.py" and ftype Python.File. What I got back is listed below. I
> don't think this is right according to what the message said.
> According to him, it should've returned ".py=Python.File" and
> "Python.File="C:\Python25\python.exe" "%1" %*". . .Obviously mine was
> different. Any suggestions???
>
>
>
>
> C:\>assoc .py
> .py=py_auto_file
>
> C:\>ftype python.file
> File type 'python.file' not found or no open command associated with
> it.
>
> --
> 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.
>
>

-- 
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: Django app for IP address lookup

2011-12-31 Thread Timothy Makobu
Thanks.

Do you have an API for it yet? so we can do something like
http://dazzlepod.com/ip/api/json/1x7.x37.8.xx and get the data in JSON?


On Sat, Dec 31, 2011 at 4:09 PM, yati sagade  wrote:

> Nice app :) can you share the sources? And happy new year to you, too!
>
>
> On Sat, Dec 31, 2011 at 5:20 PM, Addy Yeow  wrote:
>
>> Hi guys,
>>
>> Just sharing a simple Django app that allows you to do IP address lookup:
>> http://dazzlepod.com/ip/
>>
>> Happy new year!
>>
>> --
>> 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.
>>
>
>  --
> 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.
>

-- 
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: django-admin.py startproject will NOT work.

2011-12-30 Thread Timothy Makobu
Hi,

If you can, upload a screenshot of the command prompt with the commands
entered here https://droplr.com and send us the link.

On Fri, Dec 30, 2011 at 10:13 PM, Chris Kavanagh  wrote:

>
>
> On Dec 30, 9:42 am, Kev Dwyer  wrote:
> > Chris Kavanagh wrote:
> > > Hi, I'm using WinXP, Python27, django 1.3.1.
> >
> > > When I try django-admin.py startproject mysite, I get a "Usage django-
> > > admin.py subcommand [options] [args]" listing of commands instead of
> > > starting the project in mysite folder. . .I've tried every workaround
> > > I've found on Google & on this site. I've put C:\Python27\Lib\site-
> > > packages\django\bin in my Env Variable Path, I've changed the registry
> > > setting HKEY_CLASSES_ROOT\Applications\python.exe\shell\open\command
> > > to PYDIR\\python.exe" "%1" %*. I've typed in the full path in the
> > > command line (python django-admin.py startproject mysite) & nothing
> > > works. And yes, I set it up using python setup.py install.
> >
> > > Any suggestions or other work arounds??? I'm at my wits end!!! Thanks
> > > for any help.
> >
> > Hello,
> >
> > If you're seeing the usage message then python is able to find and
> execute
> > the django-admin.py script, but the script doesn't like the input that
> you
> > are providing.
> >
> > Can you provide a paste of what you enter in the command prompt, and the
> > output that you receive?
> >
> > Cheers,
>
> Thanks for the help. . .I created a directory named "mysite" then
> opened a command prompt from the "mysite" directory. In the prompt I
> put "django-admin.py startproject mysite". The output i get is
> lengthy, but here it is. . .
>
> Usage: django-admin.py subcommand [options] [args]
>
> Options:
>  -v VERBOSITY, --verbosity=VERBOSITY
>Verbosity level; 0=minimal output, 1=normal
> out
>2=all output
>  --settings=SETTINGS   The Python path to a settings module, e.g.
>"myproject.settings.main". If this isn't
> provid
>DJANGO_SETTINGS_MODULE environment variable
> wil
>used.
>  --pythonpath=PYTHONPATH
>A directory to add to the Python path, e.g.
>"/home/djangoprojects/myproject".
>  --traceback   Print traceback on exception
>  --version show program's version number and exit
>  -h, --helpshow this help message and exit
>
> Type 'django-admin.py help ' for help on a specific
> subcomm
>
> Available subcommands:
>  cleanup
>  compilemessages
>  createcachetable
>  dbshell
>  diffsettings
>  dumpdata
>  flush
>  inspectdb
>  loaddata
>  makemessages
>  reset
>  runfcgi
>  runserver
>  shell
>  sql
>  sqlall
>  sqlclear
>  sqlcustom
>  sqlflush
>  sqlindexes
>  sqlinitialdata
>  sqlreset
>  sqlsequencereset
>  startapp
>  startproject
>  syncdb
>  test
>  testserver
>  validate
>
>
> And that's it. Thanks again for the help. . .Cheers
>
>
> --
> 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.
>
>

-- 
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: Django - Forms Widget TypeChoiceField - how to set id for two radio buttons

2011-12-26 Thread Timothy Makobu
Try this:

widget=forms.RadioSelect(renderer=HorizRadioRenderer,
attrs={"id":"whatever_you_want"})


On Tue, Dec 27, 2011 at 3:08 AM, Mengu  wrote:

> hi luke,
>
> instead of setting auto_id to False, you should give it a string
> parameter. please read more on
>
> https://docs.djangoproject.com/en/dev/ref/forms/api/#ref-forms-api-configuring-label
> .
>
> all the best.
>
> On 26 Aralık, 21:45, luke lukes  wrote:
> > hi everyone. i'm using a form with a TypeChoiceField, this is the form
> > code:http://pastebin.com/GHttrDyN. now i'm trying to set a custom id
> > for the two radio buttons displayed but i havent found yet the right
> > way. maybe it's possible set it during form instantiation (as i set
> > auto_id=False) in the view, but it's just my assumption, anyway i
> > haven't find anything helpful on the internet.any idea?
> >
> > thanx - luke
>
> --
> 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.
>
>

-- 
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: (Re)Learning Django

2011-12-24 Thread Timothy Makobu
Hi,

The book is 2 years old, but it's still the best resource I have found that
helps me *understand* Django. It covers 1.x, and the current stable release
is 1.3

Is there a newer resource that's just as comprehensive?


On Sat, Dec 24, 2011 at 5:44 PM, Alec Taylor  wrote:

> Maybe go through the tutorials here:
> https://docs.djangoproject.com/en/dev/intro/tutorial01/
>
> Should be a quick refresher, and you'll remember 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.
>
>

-- 
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: Writing apps for django

2011-12-24 Thread Timothy Makobu
Hi,

http://www.djangobook.com/en/2.0/


On Sat, Dec 24, 2011 at 8:18 PM, Denis Darii  wrote:

> Take a look at Django Conventions:
> http://ericholscher.com/projects/django-conventions/
>
> Also this article could be useful for you:
> http://blog.zacharyvoase.com/2010/02/03/django-project-conventions/
>
> Cheers,
> Denis.
>
>
> On Sat, Dec 24, 2011 at 10:38 AM, Lukasz  wrote:
>
>> Hi all !
>>
>> I'm looking for documentation about writing apps for django. When
>> should I write an app for django instead coding my project directly,
>> how to write an app for django, etc.
>>
>> I'd like to have some philosophical guidelines and some technical
>> documentation.
>>
>>
>> Thanks !
>>
>
>  --
> 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.
>

-- 
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: forms.CharField() remove text

2011-12-22 Thread Timothy Makobu
Also, I just found out from here
https://docs.djangoproject.com/en/1.3/topics/forms/ that i can just:

{{form.field_name}}

which makes things even more flexible.


2011/12/22 Timothy Makobu <makobu.mwambir...@gmail.com>

> Fantastic. Thanks Amao.
>
>
> 2011/12/22 Branton Davis <blueca...@gmail.com>
>
>> AmaoZhao's answer is probably the best.  You can also try:
>>
>> class PostForm(forms.Form):
>> post = forms.CharField(label='', help_text=None, max_length=160,
>>  widget=forms.Textarea(attrs={'rows':3, "cols":70,}))
>>
>> The auto_id parameter only controls whether label tags and id attributes
>> are rendered (based on the field name):
>> https://docs.djangoproject.com/en/dev/ref/forms/api/#configuring-html-label-tags
>>
>>
>>
>> On Wed, Dec 21, 2011 at 11:20 PM, AmaoZhao <amaoz...@gmail.com> wrote:
>>
>>>  于 2011年12月22日 06:04, Timothy Makobu 写道:
>>>
>>> ow do I get rid of the "Post:
>>>
>>> The template render the form is {{field.label}} and {{field}}, you only
>>> need to display {{filed}}, for example:
>>>
>>> {% for field in form %}
>>> {{field}}
>>> {% endfor %}
>>>
>>> Hope this can help you.
>>>
>>> --
>>> 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.
>>>
>>
>>  --
>> 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.
>>
>
>

-- 
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: forms.CharField() remove text

2011-12-21 Thread Timothy Makobu
Fantastic. Thanks Amao.

2011/12/22 Branton Davis <blueca...@gmail.com>

> AmaoZhao's answer is probably the best.  You can also try:
>
> class PostForm(forms.Form):
> post = forms.CharField(label='', help_text=None, max_length=160,
> widget=forms.Textarea(attrs={'rows':3, "cols":70,}))
>
> The auto_id parameter only controls whether label tags and id attributes
> are rendered (based on the field name):
> https://docs.djangoproject.com/en/dev/ref/forms/api/#configuring-html-label-tags
>
>
>
> On Wed, Dec 21, 2011 at 11:20 PM, AmaoZhao <amaoz...@gmail.com> wrote:
>
>>  于 2011年12月22日 06:04, Timothy Makobu 写道:
>>
>> ow do I get rid of the "Post:
>>
>> The template render the form is {{field.label}} and {{field}}, you only
>> need to display {{filed}}, for example:
>>
>> {% for field in form %}
>> {{field}}
>> {% endfor %}
>>
>> Hope this can help you.
>>
>> --
>> 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.
>>
>
>  --
> 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.
>

-- 
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.



forms.CharField() remove text

2011-12-21 Thread Timothy Makobu
Hi,

I have this form:

class PostForm(forms.Form):
post = forms.CharField(label=None, help_text=None, max_length=160,
widget=forms.Textarea(attrs={'rows':3, "cols":70,}))

And the constructor looks like this:

PostForm(auto_id=False)


according to folks on the net, this should produce a form with no labeling
whatsoever, but still i get this:

Post: 

how do I get rid of the "Post: "?

-- 
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: Serving Django Admin Static Media Files with Apache WSGI on Ubuntu

2011-12-20 Thread Timothy Makobu
Also, here is a working wsgi settings file:

***

import os
import sys

sys.path.append(os.path.dirname(__file__).replace('\\','/'))
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'

from django.core.handlers.wsgi import WSGIHandler

application = WSGIHandler()

***


On Tue, Dec 20, 2011 at 11:39 AM, Timothy Makobu <
makobu.mwambir...@gmail.com> wrote:

> The way I do it, is I use the staticfilesapp
> https://docs.djangoproject.com/en/dev/howto/static-files/
> then i have the web server use the static folder in my project folder to
> serve requests for /static
>
> works well on ep.io
>
>
>
> On Tue, Dec 20, 2011 at 10:58 AM, Ganesh Kumar <bugcy...@gmail.com> wrote:
>
>> Hi guys, I trying with Serving Django Admin Static Media Files with
>> Apache WSGI on Ubuntu.10.04
>>
>> This my config files. example_proj.wsgi
>> http://dpaste.com/675674/
>>
>> apache config file. 000-default
>>
>> http://dpaste.com/675675/
>>
>> my setting.py
>>
>> http://dpaste.com/675678/
>>
>> please guide me. what mistakes I have do it.
>>
>> -Ganesh
>>
>>
>> Did I learn something today? If not, I wasted it.
>>
>> --
>> 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.
>>
>>
>

-- 
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: Serving Django Admin Static Media Files with Apache WSGI on Ubuntu

2011-12-20 Thread Timothy Makobu
The way I do it, is I use the staticfilesapp
https://docs.djangoproject.com/en/dev/howto/static-files/
then i have the web server use the static folder in my project folder to
serve requests for /static

works well on ep.io


On Tue, Dec 20, 2011 at 10:58 AM, Ganesh Kumar  wrote:

> Hi guys, I trying with Serving Django Admin Static Media Files with
> Apache WSGI on Ubuntu.10.04
>
> This my config files. example_proj.wsgi
> http://dpaste.com/675674/
>
> apache config file. 000-default
>
> http://dpaste.com/675675/
>
> my setting.py
>
> http://dpaste.com/675678/
>
> please guide me. what mistakes I have do it.
>
> -Ganesh
>
>
> Did I learn something today? If not, I wasted it.
>
> --
> 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.
>
>

-- 
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: django-facebook-graph

2011-12-19 Thread Timothy Makobu
Thanks Simon.

On Mon, Dec 19, 2011 at 6:23 PM, Simon Schmid | FEINHEIT 
<s...@feinheit.ch>wrote:

> Hi Timothy
>
> As the founder of this facebook toolset, i can't give you an objective
> answer. but i can tell you something about the project:
>
> First of all, it is still under heavy development. i started over a
> year ago and just wanted to share my code and experience with facebook
> graph and django with others, so i decided to collect all my internal
> used codes for different projects and put it together to something
> like a "framework". the more facebook projects we did, we implemented
> more and more features. but still, it doesn't cover all aspects of the
> facebook graph api.
>
> That said, i think it is a good starting point, a lot of common use
> cases are already covered, like: decrypting the signed_request, login
> with facebook as registration/authentication backend, make wallposts,
> upload photos, etc.
>
> If you just want to use the features already implemented and
> documented, then i suggest that you use the master branch:
> https://github.com/feinheit/django-facebook-graph
>
> But if you want to help us work on the project in any way (what we
> would really appreciate!), then go to the structured branch:
> https://github.com/feinheit/django-facebook-graph/tree/structured
> The structured branch is a new approach to organize all these facebook
> functionality into modules, so that you only load the modules, which
> you need for your project. it's something like the aim for a version
> 1.0. but at this point, experimental, undocumented and not fully
> tested.
>
> So if you have any question, feel free to write, open issues on
> github, etc.
>
> Have fun with Facebook Development
>
> Simon
>
> On Dec 19, 12:32 pm, Timothy Makobu <makobu.mwambir...@gmail.com>
> wrote:
> > Hi All,
> >
> > Im looking to post to my facebook wall via django. Facebook have
> > discontinued the python-sdk.
> >
> > I then came across django-facebook-graphhttp://
> readthedocs.org/docs/django-facebook-graph/en/latest/index.html
> >
> > What's your opinion on it? Is there a better library?
> >
> > Thanks.
>
> --
> 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.
>
>

-- 
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: Which IDE should I use for Django?

2011-12-19 Thread Timothy Makobu
Komodo Edit.

On Mon, Dec 19, 2011 at 5:27 PM, girish shabadimath <
girishmss.1...@gmail.com> wrote:

> wingware IDE.
>
>
> On Mon, Dec 19, 2011 at 6:59 PM, Ezequiel Bertti wrote:
>
>> pycharm +1
>>
>>
>> 2011/12/19 Lexa Po 
>>
>>> SublimeText2
>>> +1
>>>
>>> 19 декабря 2011 г. 15:47 пользователь nicolas HERSOG >> > написал:
>>>
>>> I'm using Aptana


 On Mon, Dec 19, 2011 at 1:37 PM, Anoop Thomas Mathew 
 wrote:

> Hi,
>
> PyCharm is awesome!!! But is paid ($70) and  not OpenSource.
> Best among the free is Aptana Studio.
>
> Thanks,
> Anoop Thomas Mathew
>
> atm
> ___
> Life is short, Live it hard.
>
>
>
>
>
> On 19 December 2011 16:41, Thomas Weholt wrote:
>
>> Pycharm +1
>>
>>
>>
>> On Mon, Dec 19, 2011 at 11:35 AM, Zhukov Pavel 
>> wrote:
>> > PyCharm?
>> >
>> > On Mon, Dec 19, 2011 at 2:34 PM, Alec Taylor <
>> alec.tayl...@gmail.com> wrote:
>> >> I'm looking for a Django IDE which incorporates the following
>> features:
>> >> - Syntax-highlighting
>> >> - Projects (all code file of the project shown separated by
>> directory
>> >> in a sidebar)
>> >> - Tabs (with close buttons on tab)
>> >> - Code-completion (with good introspection)
>> >> - Text-zoom support
>> >> - Start/stop Django server
>> >> - Run+restart Django server shell (manage.py shell) in project
>> (i.e. below code)
>> >>
>> >> I program on Windows and Linux, so it would be great if the IDE is
>> >> supported on both platforms.
>> >>
>> >> Previously I was using Editra, but I requested an automatic import
>> >> into embedded interpreter feature in April, which they still
>> haven't
>> >> integrated. So I am looking at alternatives :)
>> >>
>> >> Thanks for all suggestions,
>> >>
>> >> Alec Taylor
>> >>
>> >> --
>> >> 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.
>> >>
>> >
>> > --
>> > 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.
>> >
>>
>>
>>
>> --
>> Mvh/Best regards,
>> Thomas Weholt
>> http://www.weholt.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 options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>>
>  --
> 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.
>

  --
 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.

>>>
>>>  --
>>> 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.
>>>
>>
>>
>>
>> --
>> Ezequiel Bertti
>> E-Mail: eber...@gmail.com
>> MSN: eber...@hotmail.com
>> Cel: (21) 9188-4860
>>
>> VÁ PARA BÚZIOS!!!
>> http://www.agh.com.br/
>> Ane Guest House
>>
>>  --
>> 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 

django-facebook-graph

2011-12-19 Thread Timothy Makobu
Hi All,

Im looking to post to my facebook wall via django. Facebook have
discontinued the python-sdk.

I then came across django-facebook-graph
http://readthedocs.org/docs/django-facebook-graph/en/latest/index.html

What's your opinion on it? Is there a better library?

Thanks.

-- 
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: filesystem path in settings.py

2011-12-08 Thread Timothy Makobu
Hi Tanya,

Also have a look at this
https://docs.djangoproject.com/en/dev/howto/static-files/#serving-static-files-in-production

I personally leave Django out of static file serving entirely, and have the
webserver serve the static media, but I'll experiment and see
what advantage there is to using the staticfilesapp.


On Sun, Dec 4, 2011 at 11:01 AM, Timothy Makobu <makobu.mwambir...@gmail.com
> wrote:

> In Django 1.3:
>
> STATIC_ROOT = os.path.join(os.path.dirname(__file__),
> 'static').replace('\\','/')
>
> where the folder "static" is in the root of your project folder.
>
>
> On Sun, Nov 27, 2011 at 2:23 PM, TANYA <tani...@gmail.com> wrote:
>
>> I read it but after following all steps in it the error still remains.
>>
>>  '/usr/local/lib/python2.6/dist-packages/setuptools-0.6c11-py2.6.egg',
>>  '/usr/lib/python2.6',
>>  '/usr/lib/python2.6/plat-linux2',
>>
>>
>>  '/usr/lib/python2.6/lib-tk',
>>  '/usr/lib/python2.6/lib-old',
>>  '/usr/lib/python2.6/lib-dynload',
>>  '/usr/local/lib/python2.6/dist-packages',
>>  '/usr/lib/python2.6/dist-packages',
>>
>>
>>  '/usr/lib/python2.6/dist-packages/PIL',
>>  '/usr/lib/pymodules/python2.6',
>>  '/usr/lib/pymodules/python2.6/gtk-2.0',
>>  '/usr/lib/python2.6/dist-packages/wx-2.6-gtk2-unicode'
>>
>> I did symlink to /usr/bin/local but still get path error. Please help.
>>
>>
>>
>> On Fri, Nov 25, 2011 at 4:44 AM, Timothy Makobu <
>> makobu.mwambir...@gmail.com> wrote:
>>
>>> And this too http://www.djangobook.com/en/2.0/
>>>
>>>
>>> On Fri, Nov 25, 2011 at 7:41 AM, Timothy Makobu <
>>> makobu.mwambir...@gmail.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> Please read this whole thing
>>>> https://docs.djangoproject.com/en/dev/howto/static-files/
>>>>
>>>>
>>>> On Fri, Nov 25, 2011 at 6:28 AM, TANYA <tani...@gmail.com> wrote:
>>>>
>>>>> # Absolute filesystem path to the directory that will hold
>>>>> user-uploaded files.
>>>>> # Example: "/home/media/media.lawrence.com/media/"
>>>>> MEDIA_ROOT = ''
>>>>>
>>>>> I want to upload css files and images so must I put them in
>>>>> /home/media or /home/my/media/path/ ? Should the filesystem path in
>>>>> settings.py be changed or should MEDIA_ROOT be left empty?
>>>>>
>>>>> --
>>>>> TANYA
>>>>>
>>>>> --
>>>>> 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.
>>>>>
>>>>
>>>>
>>>  --
>>> 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.
>>>
>>
>>
>>
>> --
>> TANYA
>>
>> --
>> 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.
>>
>
>

-- 
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: filesystem path in settings.py

2011-12-04 Thread Timothy Makobu
In Django 1.3:

STATIC_ROOT = os.path.join(os.path.dirname(__file__),
'static').replace('\\','/')

where the folder "static" is in the root of your project folder.


On Sun, Nov 27, 2011 at 2:23 PM, TANYA <tani...@gmail.com> wrote:

> I read it but after following all steps in it the error still remains.
>
>  '/usr/local/lib/python2.6/dist-packages/setuptools-0.6c11-py2.6.egg',
>  '/usr/lib/python2.6',
>  '/usr/lib/python2.6/plat-linux2',
>
>  '/usr/lib/python2.6/lib-tk',
>  '/usr/lib/python2.6/lib-old',
>  '/usr/lib/python2.6/lib-dynload',
>  '/usr/local/lib/python2.6/dist-packages',
>  '/usr/lib/python2.6/dist-packages',
>
>  '/usr/lib/python2.6/dist-packages/PIL',
>  '/usr/lib/pymodules/python2.6',
>  '/usr/lib/pymodules/python2.6/gtk-2.0',
>  '/usr/lib/python2.6/dist-packages/wx-2.6-gtk2-unicode'
>
> I did symlink to /usr/bin/local but still get path error. Please help.
>
>
>
> On Fri, Nov 25, 2011 at 4:44 AM, Timothy Makobu <
> makobu.mwambir...@gmail.com> wrote:
>
>> And this too http://www.djangobook.com/en/2.0/
>>
>>
>> On Fri, Nov 25, 2011 at 7:41 AM, Timothy Makobu <
>> makobu.mwambir...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> Please read this whole thing
>>> https://docs.djangoproject.com/en/dev/howto/static-files/
>>>
>>>
>>> On Fri, Nov 25, 2011 at 6:28 AM, TANYA <tani...@gmail.com> wrote:
>>>
>>>> # Absolute filesystem path to the directory that will hold
>>>> user-uploaded files.
>>>> # Example: "/home/media/media.lawrence.com/media/"
>>>> MEDIA_ROOT = ''
>>>>
>>>> I want to upload css files and images so must I put them in /home/media
>>>> or /home/my/media/path/ ? Should the filesystem path in settings.py be
>>>> changed or should MEDIA_ROOT be left empty?
>>>>
>>>> --
>>>> TANYA
>>>>
>>>> --
>>>> 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.
>>>>
>>>
>>>
>>  --
>> 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.
>>
>
>
>
> --
> TANYA
>
> --
> 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.
>

-- 
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: Installation of Django

2011-11-27 Thread Timothy Makobu
Read that Python tutorial first, It will answer all your questions . You
need to read the WHOLE thing.

http://docs.python.org/tutorial/index.html



On Sun, Nov 27, 2011 at 3:52 AM, JJ Zolper <jzth...@gmail.com> wrote:

> Tim,
>
> Does our system include a Python Interpreter?
>
> "
>
> The interpreter’s line-editing features usually aren’t very sophisticated.
> On Unix, whoever installed the interpreter may have enabled support for the
> GNU readline library, which adds more elaborate interactive editing and
> history features. Perhaps the quickest check to see whether command line
> editing is supported is typing Control-P to the first Python prompt you
> get. If it beeps, you have command line editing; see Appendix *Interactive
> Input Editing and History 
> Substitution*<http://docs.python.org/tutorial/interactive.html#tut-interacting>
>  for
> an introduction to the keys. If nothing appears to happen, or if ^P is
> echoed, command line editing isn’t available; you’ll only be able to use
> backspace to remove characters from the current line.
>
> "
>
> JJ
>
> On Sat, Nov 26, 2011 at 6:55 PM, JJ Zolper <jzth...@gmail.com> wrote:
>
>> So you feel that that documentation of Python is the best reference? I'm
>> sure it is just wanted to ask.
>>
>> JJ
>>
>>
>> On Sat, Nov 26, 2011 at 2:20 PM, Timothy Makobu <
>> makobu.mwambir...@gmail.com> wrote:
>>
>>> But first, all of this http://docs.python.org/tutorial/index.html
>>>
>>>
>>> On Sat, Nov 26, 2011 at 10:19 PM, Timothy Makobu <
>>> makobu.mwambir...@gmail.com> wrote:
>>>
>>>> Nice. Now read ALL of this http://djangobook.com/en/2.0/
>>>>
>>>>
>>>> On Sat, Nov 26, 2011 at 9:55 PM, JJ Zolper <jzth...@gmail.cm> wrote:
>>>>
>>>>> Looks like I am in good shape!
>>>>>
>>>>> Thanks so much man!
>>>>>
>>>>> http://madtrak.com/success.png
>>>>>
>>>>> JJ
>>>>>
>>>>>
>>>>> On Sat, Nov 26, 2011 at 1:51 PM, JJ Zolper <jzth...@gmail.com> wrote:
>>>>>
>>>>>> Thanks! Yes sounds like something from my UNIX class. I have now
>>>>>> added it.
>>>>>>
>>>>>> What will django-admin.py do for me? Oh are you just saying I can run
>>>>>> it from anywhere now? Any of the commands I want to work with 
>>>>>> python/django?
>>>>>>
>>>>>> JJ
>>>>>>
>>>>>>
>>>>>> On Sat, Nov 26, 2011 at 12:56 AM, Timothy Makobu <
>>>>>> makobu.mwambir...@gmail.com> wrote:
>>>>>>
>>>>>>> Yes, iPython is installed now. But now you need to add  
>>>>>>> C:\Python27\Scripts
>>>>>>> to your PATH variable, so you wont have to keep going there to run 
>>>>>>> things.
>>>>>>> After you add it, you can run django-admin.py, easy_install, iPython ...
>>>>>>> from any directory in cmd.exe
>>>>>>>
>>>>>>> This link shows you how:
>>>>>>> http://geekswithblogs.net/renso/archive/2009/10/21/how-to-set-the-windows-path-in-windows-7.aspx
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Sat, Nov 26, 2011 at 12:49 AM, JJ Zolper <jzth...@gmail.com>wrote:
>>>>>>>
>>>>>>>> Tim,
>>>>>>>>
>>>>>>>> Okay I was able to get something to go there.
>>>>>>>>
>>>>>>>> At first I saw warnings so I wasn't sure but here are the images.
>>>>>>>>
>>>>>>>> http://madtrak.com/ipython1.png
>>>>>>>>
>>>>>>>> http://madtrak.com/ipython2.png
>>>>>>>>
>>>>>>>> Do you think I am in good shape with ipython?
>>>>>>>>
>>>>>>>> To perform the easy install of django would i execute: easy_install.exe
>>>>>>>> django?
>>>>>>>>
>>>>>>>> And if so would that just overwrite what I have already installed,
>>>>>>>> like would it be good to do it a second time even though I think it 
>>>>>>>> worked
>>>>>&

Re: Installation of Django

2011-11-26 Thread Timothy Makobu
But first, all of this http://docs.python.org/tutorial/index.html


On Sat, Nov 26, 2011 at 10:19 PM, Timothy Makobu <
makobu.mwambir...@gmail.com> wrote:

> Nice. Now read ALL of this http://djangobook.com/en/2.0/
>
>
> On Sat, Nov 26, 2011 at 9:55 PM, JJ Zolper <jzth...@gmail.cm> wrote:
>
>> Looks like I am in good shape!
>>
>> Thanks so much man!
>>
>> http://madtrak.com/success.png
>>
>> JJ
>>
>>
>> On Sat, Nov 26, 2011 at 1:51 PM, JJ Zolper <jzth...@gmail.com> wrote:
>>
>>> Thanks! Yes sounds like something from my UNIX class. I have now added
>>> it.
>>>
>>> What will django-admin.py do for me? Oh are you just saying I can run it
>>> from anywhere now? Any of the commands I want to work with python/django?
>>>
>>> JJ
>>>
>>>
>>> On Sat, Nov 26, 2011 at 12:56 AM, Timothy Makobu <
>>> makobu.mwambir...@gmail.com> wrote:
>>>
>>>> Yes, iPython is installed now. But now you need to add  C:\Python27\Scripts
>>>> to your PATH variable, so you wont have to keep going there to run things.
>>>> After you add it, you can run django-admin.py, easy_install, iPython ...
>>>> from any directory in cmd.exe
>>>>
>>>> This link shows you how:
>>>> http://geekswithblogs.net/renso/archive/2009/10/21/how-to-set-the-windows-path-in-windows-7.aspx
>>>>
>>>>
>>>>
>>>>
>>>> On Sat, Nov 26, 2011 at 12:49 AM, JJ Zolper <jzth...@gmail.com> wrote:
>>>>
>>>>> Tim,
>>>>>
>>>>> Okay I was able to get something to go there.
>>>>>
>>>>> At first I saw warnings so I wasn't sure but here are the images.
>>>>>
>>>>> http://madtrak.com/ipython1.png
>>>>>
>>>>> http://madtrak.com/ipython2.png
>>>>>
>>>>> Do you think I am in good shape with ipython?
>>>>>
>>>>> To perform the easy install of django would i execute: easy_install.exe
>>>>> django?
>>>>>
>>>>> And if so would that just overwrite what I have already installed,
>>>>> like would it be good to do it a second time even though I think it worked
>>>>> the first. Honestly, I'd probably leave it for now just wanted your
>>>>> thoughts on easy install.
>>>>>
>>>>> Thanks!
>>>>>
>>>>> JJ
>>>>>
>>>>> On Fri, Nov 25, 2011 at 1:20 PM, Timothy Makobu <
>>>>> makobu.mwambir...@gmail.com> wrote:
>>>>>
>>>>>> Hi, you're welcome.
>>>>>>
>>>>>> Easy install is usually in C:\Python27\Scripts
>>>>>>
>>>>>> you can go there from within cmd.exe and run "easy_install.exe
>>>>>> ipython"  It should work.
>>>>>>
>>>>>>
>>>>>> On Fri, Nov 25, 2011 at 7:56 PM, JJ Zolper <jzth...@gmail.com> wrote:
>>>>>>
>>>>>>> Tim,
>>>>>>>
>>>>>>> I had a confirmation from William that I installed Django but you
>>>>>>> said
>>>>>>> iPython would be helpful and since I don't remember much Python I was
>>>>>>> hoping to make that work.
>>>>>>>
>>>>>>> Thanks so much for taking the time to help me get started you're a
>>>>>>> life saver! : )
>>>>>>>
>>>>>>> JJ
>>>>>>>
>>>>>>> On Nov 24, 11:56 pm, Timothy Makobu <makobu.mwambir...@gmail.com>
>>>>>>> wrote:
>>>>>>> >- Install setup toolshttp://
>>>>>>> pypi.python.org/pypi/setuptools/0.6c11
>>>>>>> >- Go to the command line (cmd.exe) and type
>>>>>>> >   - easy_install django
>>>>>>> >   - easy_install ipython (not needed by django, but very
>>>>>>> useful, as you
>>>>>>> >   will see when you come to running "python manage.py shell"
>>>>>>> >
>>>>>>> > That's all!
>>>>>>> >
>>>>>>> >
>>>>>>> >
>>>>>>> >
>>>>>>> >
>>>>>>> >
>>

  1   2   >