Re: How to structure this django application

2017-04-07 Thread Sithembewena Lloyd Dube
Hey Rich,

Do take the time to peruse the book. It would be time well spent. Also, do
keep in mind that the recommendations therein do not apply to a Django blog
or CRM sustem etc, per se. They would apply just as well if you were
building a RESTful mobile app backend.

The problem you describe of managing users etc is just a requirements
specification. The advice in the book is general enough across
implementations of solutions in broad problem domains. It's not a recipe
book, but more a collection of chefs' knives.

Best regards,
Sithembewena

On Apr 8, 2017 01:34, "Rich Shepard" <rshep...@appl-ecosys.com> wrote:

> On Sat, 8 Apr 2017, Sithembewena Lloyd Dube wrote:
>
> My best recommendation for structuring Django projects (and for
>> optimization and a myriad other goodies) would be the book Two Scoops of
>> Django by Daniel and Audrey Roy Greenfeld. I could say a lot but the
>> bottom
>> line is, check the book out. It's at https://www.twoscoopspress.com/
>>
>
> Sithembewena,
>
>   I have that book (the 1.8 version); pulled it off the shelf earlier today
> to read again.
>
> There are various factors to consider and this book (to me, at least) best
>> encapsulates all those. I believe that it also applies for newer versions
>> of Django than v1.8.
>>
>
>   What I need to build is different from a blog, newspaper, e-commerce, and
> similar sites ... I think. In those, every visitor/user sees the same views
> and has the same options.
>
>   My proposed application needs to be slightly different for each category
> of user and keep each in his/her own private section. How to do this may be
> in 2 scoops, or may not. If I don't see how to do this I'll be back with
> more questions.
>
> Thanks,
>
> Rich
>

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCBMuQE%2BPMr4qW5fR6tY1FTdG%2BLJ7-yMYz3eQJL5JkDsUw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to structure this django application

2017-04-07 Thread Sithembewena Lloyd Dube
Hey Rich,

My best recommendation for structuring Django projects (and for
optimization and a myriad other goodies) would be the book Two Scoops of
Django by Daniel and Audrey Roy Greenfeld. I could say a lot but the bottom
line is, check the book out. It's at https://www.twoscoopspress.com/

There are various factors to consider and this book (to me, at least) best
encapsulates all those. I believe that it also applies for newer versions
of Django than v1.8.

Best regards,
Sithembewena

On Apr 8, 2017 00:53, "Rich Shepard"  wrote:

>   Caveat: I'm not a professional coder or web developer, but have written
> many applications over the years. Because I'm also new to django I need
> insights into how to structure an application application supporting
> multiple users, each in its own private section.
>
>   This application will allow my clients to upload data to the web site,
> each in his own space. Data will be stored in a postgres-9.6+ backend.
> Generated reports will be available for download.
>
>   I understand that a django application has many 'apps' in it and is not a
> single-file framework. If there is an example of how to set up and
> structure
> such an application please point me to it so I can learn from success.
>
>   Pointers, references to docs or web sites will be appreciated and used.
>
> TIA,
>
> Rich
>

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCBJniLDgeieJNskxoNpBrCE-b_rAuQh2zpj63PSUznM-g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Phone number field in form/ model

2016-12-14 Thread Sithembewena Lloyd Dube
Thanks guys!

On Wed, Dec 14, 2016 at 9:47 PM, Michal Petrucha <
michal.petru...@konk.org> wrote:

> On Wed, Dec 14, 2016 at 09:36:06PM +0200, Sithembewena Lloyd Dube wrote:
> > Hi,
> >
> > Has anyone captured phone number information using a Form/ModelForm
> > instance? I have the field as an IntegerField in my model and (for
> obvious
> > reasons) it truncates the leading '0'. How have you solved this problem,
> > anyone?
>
> Easy – don't use integer input fields for phone numbers, use input
> fields for short text strings with appropriate validation.
>
> For example, you might want to look at some of the phone number fields
> implemented in https://django-localflavor.readthedocs.io/en/latest/,
> and take some inspiration from them.
>
> Cheers,
>
> Michal
>
> --
> 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 https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/20161214194702.GK22986%40konk.org.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards,
Sithembewena

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCDAtBib3a8DpJX%3D9LF2u7eHVav%3D_vpdHgJ_YS-Hts4QcQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Phone number field in form/ model

2016-12-14 Thread Sithembewena Lloyd Dube
Hi,

Has anyone captured phone number information using a Form/ModelForm
instance? I have the field as an IntegerField in my model and (for obvious
reasons) it truncates the leading '0'. How have you solved this problem,
anyone?

-- 
Regards,
Sithembewena

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCD_zD980PLhau2eoGrKYy22%2BCorCB%2Bu%2BR5MwFUoY0rDhg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Djang freelance hourly rates

2016-08-28 Thread Sithembewena Lloyd Dube
Out of curiousity, what do those who are freelancing on Django projects
charge per hour?

-- 
Regards,
Sithembewena

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCAPH_1a04XGUwdS4vRPQBcUzHTT0Kw08%3D8wHqzeaENzsQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Debugging DJango app on production for High CPU Usage

2016-02-29 Thread Sithembewena Lloyd Dube
New Relic.

On Wed, Feb 24, 2016 at 6:59 AM, Web Architect  wrote:

> Hi,
>
> We have an ecommerce platform based on Django. We are using uwsgi to run
> the app. The issue the CPU usage is hitting the roof (sometimes going
> beyond 100%) for some scenarios. I would like to debug the platform on
> Production to see where the CPU consumption is happening. We have used
> Cache all over the place (including templates) as well - hence, the DB
> queries would be quite limited.
>
> I would refrain from using Django-debug toolbar as it slows down the
> platform further, increases the CPU usage and also need to turn the DEBUG
> on. Is there any other tool or way to debug the platform? Would appreciate
> any recommendations/suggestions.
>
> Also, does the Django ORM increase the CPU usage? Does it block the CPU?
> Would appreciate if anyone could throw some light on this.
>
> 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 https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/c2699791-6de9-4b94-975b-fd1d4f8bbd3c%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards,
Sithembewena

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCAu5Y5Q%2B%2Bk_BgCCmcabcPS5Hi5ArwbVRdV0P-AoCLKgCw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Home Page

2016-02-23 Thread Sithembewena Lloyd Dube
Have you done the tutorial? Django is suitable for everything you listed,
it's just that you need to learn how to implement those things in Django.
This means you need to know how to use Django.

I suggest you do the tutorial first.

On Tue, Feb 23, 2016 at 2:59 PM, Malik Rumi  wrote:

> Why is there so little information in the docs about how to build a home
> page, where to put the url, whether or not to build a separate app around
> it, why or why not to put it in the folder with settings in it, and how to
> handle a complex home page with a lot of changing content - like on a
> newspaper, where Django was created?
>
> And second, where (other than trial and error) do I find that kind of
> documentation / support?
>
> --
> 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 https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/82af7d52-2db2-449e-9f29-cb2f2b29e51d%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards,
Sithembewena

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCD%2BvBjfKmxEDzfZ0ftdkRhAQCY7GvttBbiJYAGw9%2B21fw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: What happens if pk value gets too big?

2015-04-03 Thread Sithembewena Lloyd Dube
Hahaha ... I like how that ended, Russ :D

Kind regards,
Lloyd

On Sat, Apr 4, 2015 at 12:57 AM, Russell Keith-Magee <
russ...@keith-magee.com> wrote:

>
> On Sat, Apr 4, 2015 at 6:25 AM, Mike  wrote:
>
>> Hi,
>> Is there risk of getting too big PK value while adding and deleting rows
>> for long time in same table?
>> -Mike
>>
>
> It depends on what you mean.
>
> This code:
>
> while True:
> obj = MyObject.objects.create()
> obj.delete()
>
> won't pose any problem at all. The primary key for each obj will
> *generally* increase with each new object that is created - but it's not
> *guaranteed* to increase. After a while, old, lower primary key values will
> be re-allocated to new objects. Exactly how and when this is done depends
> on the database. In short - don't assume that an object A created after
> object B will have a higher primary key value.
>
> However, if you remove the "obj.delete()" line, and you just keep creating
> new objects, you will *eventually* run out of available primary keys. When
> this happens will depend on what data type your primary key has. PostgreSQL
> and MySQL both default to 32 bit primary keys, so that means you can create
> over 2 billion objects before you run out. If this isn't enough, you can
> make your primary key a BIGINT, which will give a limit of 9 quintillion
> objects. If that's not enough... well... you need to stop creating a
> database row for every grain of sand on the beach :-)
>
> Yours,
> Russ Magee %-)
>
>  --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAJxq84-f1ORXSOF6i%3DW7AZVuMqRe_4S9G1ZxA%3DnxP-D8q%3DSA1g%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCBPh_JKD8Dov3nm6Q4Kg%2BieZ%2BL7Ja3EmfgFHFrKb9iKfg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Serving static files and media in Django 1.7.1

2015-01-06 Thread Sithembewena Lloyd Dube
Thanks @Vijay! Can't believe that caught me out like that.

Regards,
Sithu

On Wed, Jan 7, 2015 at 1:34 AM, Vijay Khemlani <vkhem...@gmail.com> wrote:

> the static tag should be
>
> {% static 'mainsite/bootstrap.css' %}
>
> according to the layout you said
>
> On Tue, Jan 6, 2015 at 8:30 PM, Sithembewena Lloyd Dube <zebr...@gmail.com
> > wrote:
>
>> Hi everyone,
>>
>> I have a Django 1.7.1 project structured as per documentation. In it, I
>> have an app called "mainsite". In mainsite, I have
>> templates/mainsite/index.html and static/mainsite/bootstrap.css. In the
>> index template, I use {% load staticfiles %} and then for css I have the
>> following link: > rel="stylesheet"> However, when I load the page in the browser, the css
>> does not load and when in "view source" mode, I click the link href
>> ("/static/css/bootstrap.css"). This generates a 404 error.
>>
>> What am I missing? Any suggestions welcome.
>>
>> P.S: I have the STATIC_URL = '/static/' setting defined in the settings
>> file.
>>
>> --
>> Regards,
>> Sithu Lloyd Dube
>>
>> --
>> 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.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAH-SnCBJamc9ZKzmy3y63fAo5n7p7xT6G8oAiu%3DFUbjM-KF%2Bbw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAH-SnCBJamc9ZKzmy3y63fAo5n7p7xT6G8oAiu%3DFUbjM-KF%2Bbw%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CALn3ei1gt%2BKmk9zU%3DGRuR8DFxmYiwyQ_cF%2Ba9fMTgMk3Vg0nmA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CALn3ei1gt%2BKmk9zU%3DGRuR8DFxmYiwyQ_cF%2Ba9fMTgMk3Vg0nmA%40mail.gmail.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCBeXSMWjKkr5WojN8%3DDSq3hn5%2B27jwqgEZvD65N_jeeOg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Serving static files and media in Django 1.7.1

2015-01-06 Thread Sithembewena Lloyd Dube
Hi everyone,

I have a Django 1.7.1 project structured as per documentation. In it, I
have an app called "mainsite". In mainsite, I have
templates/mainsite/index.html and static/mainsite/bootstrap.css. In the
index template, I use {% load staticfiles %} and then for css I have the
following link:  However, when I load the page in the browser, the css
does not load and when in "view source" mode, I click the link href
("/static/css/bootstrap.css"). This generates a 404 error.

What am I missing? Any suggestions welcome.

P.S: I have the STATIC_URL = '/static/' setting defined in the settings
file.

-- 
Regards,
Sithu Lloyd Dube

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCBJamc9ZKzmy3y63fAo5n7p7xT6G8oAiu%3DFUbjM-KF%2Bbw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: ANN: Django website redesign launched

2014-12-17 Thread Sithembewena Lloyd Dube
I second Rakan's suggestion regarding the use of logos. Here's a perfect
example of the concept (and how effective it is):
http://www.pylonsproject.org/

On Wed, Dec 17, 2014 at 2:04 PM, Rakan Alhneiti 
wrote:
>
> God job everyone!
>
> Do you think the Overview page  
> should
> have the logos of the "Sites using Django"? it would be more visually
> appealing, in addition, people might be more aware of the logos than just
> plain names. What do you think?
>
> Best Regards,
> Rakan
>
>
> On Tuesday, December 16, 2014 5:12:54 PM UTC+1, Jannis Leidel wrote:
>>
>> Hi everyone,
>>
>> We're incredibly proud to share with you the new design of the Django
>> website, the documentation and the issue tracker.
>>
>> This is a long time coming and we couldn't be happier to finally ship it
>> :)
>>
>> As you can imagine, there will be bugs, so please bear with us and report
>> issues to the issue tracker at https://github.com/django/
>> djangoproject.com/issues
>>
>> More infos about the redesign and its history can be found in the blog
>> post:
>>
>>   https://www.djangoproject.com/weblog/2014/dec/15/announcing-
>> django-website-redesign/
>>
>> Happy coding, everyone!
>>
>> Jannis
>>
>>  --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/845e4c2a-ff65-4691-b82d-02b5dfb193e6%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Regards,
Sithu Lloyd Dube

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCAPso1az%2B0egFvfVNmWssBwe-D2AcwDu03rtn6tVAi%2Bow%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: ANN: Django website redesign launched

2014-12-17 Thread Sithembewena Lloyd Dube
I like the new design. A lot. Thank you!

On Wed, Dec 17, 2014 at 6:20 AM, Torsten Bronger <
bron...@physik.rwth-aachen.de> wrote:
>
> Hallöchen!
>
> Cal Leeming writes:
>
> > [...]
> >
> > The footer menu contrast is a little bright with the white/light
> > green, however it's worth noting that the color/contrast
> > experience will vary depending on what equipment your
> > using. Typically if a site has been designed on an Apple
> > Thunderbolt/MBP Retina display, then it will look a bit crappy on
> > many PC monitors (even the higher quality ones).  [...]
>
> I think this doesn't matter.  Besides the fact that my screen is
> calibrated and I nevertheless tilt the screen when I visit the new
> website to gain contrast, a website should be optimized for
> sub-optimal conditions rather than the best ones.
>
> 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 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/87zjamzz30.fsf%40physik.rwth-aachen.de
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Regards,
Sithu Lloyd Dube

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCCJDXO9K9uqxjBeXHV0WmeZ8QdwGhVYqdJEH86RxKs8qw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Cannot import models from utility script

2014-10-05 Thread Sithembewena Lloyd Dube
Hi all,

I am using Django 1.7 and I have a package called 'utilities' next to my
app package like so:

--> my project
--> my_app
-- __init__.py
-- models.py
--> utilities
-- __init__.py
-- do_something.py

Inside do_something.py in utilities, I am getting an ImportError when
trying to do 'from my_app.models import Blah'.

 ImportError: No module named my_app.models

Any ideas as to what I am missing here?

-- 
Regards,
Sithu Lloyd Dube

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCC4DwWozvOPPJuOfgNjY7sN-F072VZa%3DMbQY%2BQaL9DMEg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Suggestions about building new ecommerce website

2014-09-08 Thread Sithembewena Lloyd Dube
As you are a one-man team and would like to minimise time to market and
cost, I highly recommend Django. Fantastic community, fairly straight
forward to learn framework. Rails has more magic than I find useful when
learning and Django's admin rocks.

On Mon, Sep 8, 2014 at 6:04 PM, Charly Román  wrote:

> If you ask in a django users list you might have answers recommending
> Django.
>
>
> 2014-09-08 8:16 GMT-05:00 Shreyans Jain :
>
> I want some suggestions on building a big eCommerce website . I
>> have a good experience of making website in asp.net ,asp.net Ajax and
>> sql server 2008 . Now I am thinking about moving from Microsoft (because
>> of cost) . Please
>> help me choose between php(plain),php with mvc framework,django (not
>> rails because of steep learning curve and updating the website after the
>> host has updated the version).I have no experience on any of the above
>> three.
>>
>> and I will develop alone and I want to cost to be on lower side and site
>> should be fast and scalable too.
>> Any help would be useful
>>
>> --
>> 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.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/f141c8f6-a8ce-4847-b6a4-432575b9a583%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Charly Román
> Software Developer
> http://croman.mx
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CABeWMUZEy%3DK-ML_n731aLtM7%2Bts4S0Ud7wjufS_nRFmV7oEy2w%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCAXyC0%3D2RjQ6mx__4TYe_JzxUM9Wi8SYu6mM5w_coF4jg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: ORM performance

2014-09-03 Thread Sithembewena Lloyd Dube
Thanks to the OP for asking this, and to all who answered. Ben, special
stars to you - you just shared some very valuable insight into efficieint
use of the ORM (wasn't obvious to me).

Kind regards,
Lloyd


On Thu, Sep 4, 2014 at 2:21 AM, Benjamin Scherrey 
wrote:

> The short answer to your question is no, the Django ORM is not inherently
> slower in that regard and it's very likely something you're doing. The
> useful answer is probably more complicated. :-) Naive usage of the ORM
> without an understanding of how it translates to SQL is likely to result in
> some really awful non-performant database requests for any reasonably
> complex models/queries. The good news is that it isn't very hard to get
> quite good performance out of it.
>
> Impossible to give you any more specific to your particular problem
> without seeing code, of course. That said, some common issues when grabbing
> individual model instances related to a larger query are often dramatically
> improved by using select_related() or fetch_related() as appropriate. Also
> for doing large amounts of writes/updates you should look into doing the
> transaction management yourself as Tom suggests. Postgres can really fly
> once you understand how the ORM works with it. MySQL does nicely as well
> but I have less experience with it. Ultimately, if your request can't be
> efficiently modeled with the ORM (rare but does happen) then you can use
> .extra() to pass in some direct SQL quite easily.
>
> Otherwise here's a decent little writeup of a good approach to providing
> better access to your ORM models:
> http://www.dabapps.com/blog/higher-level-query-api-django-orm/
>
> Good luck,
>
>   -- Ben
>
>
> On Thu, Sep 4, 2014 at 6:22 AM, msoulier 
> wrote:
>
>> Hi,
>>
>> I am looking at Django's performance with respect to modifying large
>> numbers of objects, each in a unique way that cannot be batched. If I make
>> a simple change to one of my Django models and save(), and then do the same
>> thing in sqlalchemy, I notice a performance difference of about 48 times as
>> far as the rate that the objects are processed to my postgresql db.
>>
>> The code is a simple property update and save, in a loop, trying to
>> process as many objects as possible.
>>
>> Is the Django ORM known to be slower in this regard, or is it likely
>> something that I'm doing?
>>
>> Thanks,
>> Mike
>>
>> --
>> 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.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/9049bff2-470e-4560-b93f-dee56bc924d4%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Chief Systems Architect Proteus Technologies 
> Chief Fan Biggest Fan Productions 
> Personal blog where I am not your demographic
> .
>
> This email intended solely for those who have received it. If you have
> received this email by accident - well lucky you!!
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHN%3D9D6ATHXVzDhwoXBx1xG0hS9n%3Do6egG450Js1Hrwv9KQTBg%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCCXzJYbdURYc2a-6ViouO8ZN4A-5FjJ%3Dk%3DSp2hNzgvNdQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ANNOUNCE] Django 1.7 released

2014-09-02 Thread Sithembewena Lloyd Dube
Awesome! Thanks to everyone who's made this release possible.


On Wed, Sep 3, 2014 at 12:13 AM, James Bennett 
wrote:

> Django 1.7 is now available:
>
> https://www.djangoproject.com/weblog/2014/sep/02/release-17-final/
>
> Alongside this are bugfix releases for 1.4, 1.5 and 1.6. The bugfix 1.5
> release is the final releae in the 1.5 series, as Django 1.5 has now
> reached end-of-life.
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAL13Cg_Cdzf3aYLxfV0qgrMY3CqbOqt%3D0DxEm1V27%2BzF65O_cA%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCD8hQfAf0hYAqoMctgwOqk0ZLYV8H2gm1_r3fv2H2Y%2Btw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django 1.7 tutorial: Use generic views

2014-08-30 Thread Sithembewena Lloyd Dube
I suggest typing:
- manage.py shell
- from polls import views
- dir(views)

What output do you get? i.e, nspect views like the regular python module
that it is.


On Sat, Aug 30, 2014 at 6:41 PM, Pitchblack  wrote:

> I need to use Jython instead of Python, I found that jython2.7b2 works
> with DJango 1.7. So, I am stuck using the beta version. I am trying to
> follow the current Django tutorial and I have ran into a problem. I am not
> sure if I am using generic views properly. When I try to change the urls.py
> (polls) file. I see that pydev complains that views.IndexView,
> views.DetailView, and ResultsView don't exist. Am I doing something wrong?
> Or did they change the way generics work in version 1.7?
>
> My System:
>
>- Windows 7
>- jython2.7b2
>- Django-1.7c3
>- postgresql-9.3.5-1-windows-x64
>- postgresql-9.3-1102.jdbc41.jar
>
> Here is the url for the tutorial, go to the section "Use generic views:
> Less code is better"
> https://docs.djangoproject.com/en/dev/intro/tutorial04/
>
>
> 
>
>
> 
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/5be54cfd-ed53-40ca-b7e1-297814c1727d%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCBTSo-C_99JOZuu4fZd3Uyc_UyOU5JEW%2BPYDqdJMYhYag%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Preparing virtualenvwrapper for Django 1.6 development

2014-08-22 Thread Sithembewena Lloyd Dube
Hi everyone,

I am developing on a Windows 8.1 machine and wold like to setup
virtualenvironment via virtualenvwrapper so as to have a properly set up
Python development environment.

I am referring to Jeff Knupp's guide at
http://www.jeffknupp.com/blog/2013/12/18/starting-a-django-16-project-the-right-way/

After installation of virtualenvwrapper via pip, the guide says:
"
After it's installed, add the following lines to your shell's start-up file
(.zshrc, .bashrc, .profile, etc).

export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/directory-you-do-development-in
source /usr/local/bin/virtualenvwrapper.sh
"

My issue is, I do not understand what these lines are doing (I have a vague
idea but assumptions can be deadly). Moreover, it is clear that the
instructions were authored with a UNIX environment in mind.

Would anyone be so kind as to translate this to Windows speak, as well as
perhaps pointing out what file this would go into in a Windows environment?

Thanks in advance :)

Kind regards,
Sithu.
-- 
Regards,
Sithu Lloyd Dube

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCDF50yA8RT6%3DoSMkzLLdW-8Ug6EbnDyuQJVcRKMYVr%3D1w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: django beginner

2014-07-02 Thread Sithembewena Lloyd Dube
I suggest you do so. It is important to understand how the framework works
before attempting to create your own projects or even using existing apps.


On Wed, Jul 2, 2014 at 10:21 AM, ngangsia akumbo  wrote:

> no i did not
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/a94a48b6-5e9a-4a7d-bd96-0b5941b86758%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCD%3DZY_Afg6LKFfVBN9zrC8rAbvH-8Yo7yMU7%2BpL2%3DjQ%2BA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: django beginner

2014-07-02 Thread Sithembewena Lloyd Dube
Did you complete the entire tutorial?


On Wed, Jul 2, 2014 at 10:14 AM, ngangsia akumbo  wrote:

> i do the installation, create the virtualenv, startproject, startapp,
> create models, activate admin,
>
> i still confuse with one thing, if i randomly create this apps how do i
> present them on the html page
>
> That is where my prob is
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/672a0fde-7804-4652-a18d-05d2a80610d0%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCA8Lm7XF_Tpwo1%3DYXN5rygErXmNFK93bi8MhXgw%3DD8sUA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: The Django 1.7 tees!

2014-06-29 Thread Sithembewena Lloyd Dube
Hi Russell,

I hope you are well. As it turned out, my order was never received (I never
got the confirmation emails in question). Is there the slightest
possibility that you could start a *final* TeeSpring campaign for the final
release of 1.7? I see that RC1 is out.

Any concession would be hugely appreciated.

Kind regards,
Lloyd


On Sun, Jun 8, 2014 at 10:46 AM, Russell Keith-Magee <
russ...@keith-magee.com> wrote:

> Hi Lloyd,
>
> You should have got an email when you placed your order, and another when
> the campaign completed (i.e., last Sunday). If you didn't get either of
> those emails, then I don't know what's happened with your order - you might
> want to contact TeeSpring support.
>
> Yours,
> Russ Magee %-)
>
> On Sunday, June 8, 2014, Sithembewena Lloyd Dube <zebr...@gmail.com>
> wrote:
>
>> Hi Russell,
>>
>> Emails from Teespring? I cannot seem to find any - not even in my trash??
>> :( You are right though, the currency arbitrage at most banks is shocking -
>> and the fees are not insignificant.
>>
>> I am not sure what went on here and I am really jittery because I badly
>> want a 1.7 tee. This is a milestone release and I want to keep  a memento.
>> I actually wanted to go back and buy a second, which is when I realised I
>> knew nothing of the first transaction. If nothign happens i will just ask
>> the mailing list if anyone has a small tee they want to let go off.
>>
>> Again, thanks for your help (and patience).
>>
>> Kind regards,
>> Lloyd
>>
>>
>> On Sun, Jun 8, 2014 at 2:32 AM, Russell Keith-Magee <
>> russ...@keith-magee.com> wrote:
>>
>>> Hi Lloyd;
>>>
>>> The emails you've received from Teespring give all the details,
>>> including a link that should let you track progress of your order. I
>>> don't have access to any info beyond that.
>>>
>>> However, personally, I wouldn't take absence of a bank record to be
>>> evidence of anything. Interbank currency arbitrage is a mess :-)
>>>
>>> Yours,
>>> Russ Magee %-)
>>>
>>>
>>> On Sunday, June 8, 2014, Sithembewena Lloyd Dube <zebr...@gmail.com>
>>> wrote:
>>>
>>>  Hi Russell,
>>>
>>> Thanks for the feedback. I still do not see anything processed on the
>>> card - am getting a bit worried here. Is there some way I could find out
>>> what happened to my order?
>>>
>>> Kind regards,
>>> Lloyd
>>>
>>>
>>> On Tue, Jun 3, 2014 at 1:56 AM, Russell Keith-Magee <
>>> russ...@keith-magee.com> wrote:
>>>
>>> Hi Lloyd,
>>>
>>> The card won't be debited until the campaign completes, which was over
>>> the weekend; I'm guessing that means the bank wouldn't have processed
>>> anything until Monday, and as with all bank things, it might take a day or
>>> two to show up in statements.
>>>
>>> The actual shirts should have gone into production on Monday as well,
>>> and generally ship within 2 weeks. US deliveries take 7-14 days from end of
>>> campaign; international take 14-21 days.
>>>
>>> Yours,
>>> Russ Magee %-)
>>>
>>>
>>> On Mon, Jun 2, 2014 at 8:13 PM, Sithembewena Lloyd Dube <
>>> zebr...@gmail.com> wrote:
>>>
>>> Hey Russell,
>>>
>>> I placed an order for a small tee, but I see my card has not been
>>> debited in my bank statement? When do they get charged/ shipped?
>>>
>>> Thanks,
>>> Lloyd
>>>
>>>
>>> On Wed, May 21, 2014 at 2:17 PM, Sithembewena Lloyd Dube <
>>> zebr...@gmail.com> wrote:
>>>
>>> Hi Russell,
>>>
>>> Thank you! I really appreciate you bringing the campaign back :)
>>>
>>> Kind regards,
>>> Sithu
>>>
>>>
>>> On Wed, May 21, 2014 at 1:35 PM, Russell Keith-Magee <
>>> russ...@keith-magee.com> wrote:
>>>
>>> Hi Sithu,
>>>
>>> Good news! It turns out you weren't the only person to have problems
>>> placing an order, so we've re-opened the campaign for one last run to make
>>> sure everyone who wants a shirt can get one. You can place your order here:
>>>
>>> http://teespring.com/django17-v2
>>>
>>> You have until the end of May.
>>>
>>> Yours,
>>> Russ Magee %-)
>>>
>>>
>>>
>>> On Thu, May 1, 2014 at 7:03 PM, Sithembewena Lloyd Dube <
>>>

Re: apps for hotel site

2014-06-25 Thread Sithembewena Lloyd Dube
That really depends on what functionality you want. Booking? Reporting? etc
...


On Wed, Jun 25, 2014 at 3:41 PM, ngangsia akumbo  wrote:

> please what are the basic apps i need to include in my hotel website?
>
>
>  --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/f82691fe-413d-41f4-aee4-51f90cc43ef7%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCDZ5LBkGO0Q72QnYN_FtsdA5Z8cKN-KdGXiLYWa8q638A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Any position for Django/Python Developer?

2014-06-18 Thread Sithembewena Lloyd Dube
Also search on Indeed.com.


On Wed, Jun 18, 2014 at 6:20 PM, Sithembewena Lloyd Dube <zebr...@gmail.com>
wrote:

> Hey,
>
> Try www.djangogigs.com? Also, search LinkedIn - I always see stuff posted
> there. Join the Django and Python groups.
>
>
> On Wed, Jun 18, 2014 at 5:08 PM, Kannan <kanna...@gmail.com> wrote:
>
>> Guys,
>> I have not got a single reply.
>> Please let me know where I can search for a remote job or part time job
>> in Python/Django technologies.
>>
>>
>> On Tue, Jun 17, 2014 at 5:48 PM, Kannan <kanna...@gmail.com> wrote:
>>
>>>
>>> Hi All,
>>> I am looking for job for Django Developer. And I am ready to work on
>>> part time role also.
>>> I have 3 year of experience as a Software Developer, and if anyone
>>> accepting my application, please send me an email. I will send you the
>>> resume.
>>>
>>> Email: kanna...@gmail.com
>>>
>>> Note: I am living in India, and ready to relocate or ready to work
>>> remote.
>>>
>>> --
>>> With regards,
>>>
>>> Kannan. R. P,
>>> Blog @: http://kannan4k.wordpress.com/
>>>
>>
>>
>>
>> --
>> With regards,
>>
>> Kannan. R. P,
>> Blog @: http://kannan4k.wordpress.com/
>>
>> --
>> 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.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAL4xV_A85m1%3DSv92tiVwYD%2BPK7QkwpZ1YRC%3DC9X7p7RUz5JHuQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAL4xV_A85m1%3DSv92tiVwYD%2BPK7QkwpZ1YRC%3DC9X7p7RUz5JHuQ%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Regards,
> Sithu Lloyd Dube
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCD%2BHBSyUGKYgTuEatTLVcoHwJiQtFGQm-W2rs%2BT%2BrX4Ng%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Any position for Django/Python Developer?

2014-06-18 Thread Sithembewena Lloyd Dube
Hey,

Try www.djangogigs.com? Also, search LinkedIn - I always see stuff posted
there. Join the Django and Python groups.


On Wed, Jun 18, 2014 at 5:08 PM, Kannan  wrote:

> Guys,
> I have not got a single reply.
> Please let me know where I can search for a remote job or part time job in
> Python/Django technologies.
>
>
> On Tue, Jun 17, 2014 at 5:48 PM, Kannan  wrote:
>
>>
>> Hi All,
>> I am looking for job for Django Developer. And I am ready to work on part
>> time role also.
>> I have 3 year of experience as a Software Developer, and if anyone
>> accepting my application, please send me an email. I will send you the
>> resume.
>>
>> Email: kanna...@gmail.com
>>
>> Note: I am living in India, and ready to relocate or ready to work remote.
>>
>> --
>> With regards,
>>
>> Kannan. R. P,
>> Blog @: http://kannan4k.wordpress.com/
>>
>
>
>
> --
> With regards,
>
> Kannan. R. P,
> Blog @: http://kannan4k.wordpress.com/
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAL4xV_A85m1%3DSv92tiVwYD%2BPK7QkwpZ1YRC%3DC9X7p7RUz5JHuQ%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCDD52yPBe4UwWCLRfHRBLxd7BhPAtto9WNbTVzDjwG8%2BQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: The Django 1.7 tees!

2014-06-07 Thread Sithembewena Lloyd Dube
Hi Russell,

Emails from Teespring? I cannot seem to find any - not even in my trash??
:( You are right though, the currency arbitrage at most banks is shocking -
and the fees are not insignificant.

I am not sure what went on here and I am really jittery because I badly
want a 1.7 tee. This is a milestone release and I want to keep  a memento.
I actually wanted to go back and buy a second, which is when I realised I
knew nothing of the first transaction. If nothign happens i will just ask
the mailing list if anyone has a small tee they want to let go off.

Again, thanks for your help (and patience).

Kind regards,
Lloyd


On Sun, Jun 8, 2014 at 2:32 AM, Russell Keith-Magee <russ...@keith-magee.com
> wrote:

> Hi Lloyd;
>
> The emails you've received from Teespring give all the details, including
> a link that should let you track progress of your order. I don't have
> access to any info beyond that.
>
> However, personally, I wouldn't take absence of a bank record to be
> evidence of anything. Interbank currency arbitrage is a mess :-)
>
> Yours,
> Russ Magee %-)
>
>
> On Sunday, June 8, 2014, Sithembewena Lloyd Dube <zebr...@gmail.com>
> wrote:
>
>> Hi Russell,
>>
>> Thanks for the feedback. I still do not see anything processed on the
>> card - am getting a bit worried here. Is there some way I could find out
>> what happened to my order?
>>
>> Kind regards,
>> Lloyd
>>
>>
>> On Tue, Jun 3, 2014 at 1:56 AM, Russell Keith-Magee <
>> russ...@keith-magee.com> wrote:
>>
>>> Hi Lloyd,
>>>
>>> The card won't be debited until the campaign completes, which was over
>>> the weekend; I'm guessing that means the bank wouldn't have processed
>>> anything until Monday, and as with all bank things, it might take a day or
>>> two to show up in statements.
>>>
>>> The actual shirts should have gone into production on Monday as well,
>>> and generally ship within 2 weeks. US deliveries take 7-14 days from end of
>>> campaign; international take 14-21 days.
>>>
>>> Yours,
>>> Russ Magee %-)
>>>
>>>
>>> On Mon, Jun 2, 2014 at 8:13 PM, Sithembewena Lloyd Dube <
>>> zebr...@gmail.com> wrote:
>>>
>>> Hey Russell,
>>>
>>> I placed an order for a small tee, but I see my card has not been
>>> debited in my bank statement? When do they get charged/ shipped?
>>>
>>> Thanks,
>>> Lloyd
>>>
>>>
>>> On Wed, May 21, 2014 at 2:17 PM, Sithembewena Lloyd Dube <
>>> zebr...@gmail.com> wrote:
>>>
>>> Hi Russell,
>>>
>>> Thank you! I really appreciate you bringing the campaign back :)
>>>
>>> Kind regards,
>>> Sithu
>>>
>>>
>>> On Wed, May 21, 2014 at 1:35 PM, Russell Keith-Magee <
>>> russ...@keith-magee.com> wrote:
>>>
>>> Hi Sithu,
>>>
>>> Good news! It turns out you weren't the only person to have problems
>>> placing an order, so we've re-opened the campaign for one last run to make
>>> sure everyone who wants a shirt can get one. You can place your order here:
>>>
>>> http://teespring.com/django17-v2
>>>
>>> You have until the end of May.
>>>
>>> Yours,
>>> Russ Magee %-)
>>>
>>>
>>>
>>> On Thu, May 1, 2014 at 7:03 PM, Sithembewena Lloyd Dube <
>>> zebr...@gmail.com> wrote:
>>>
>>> Hi Russell,
>>>
>>> Thank you for the feedback. I'm hoping that others may show interest so
>>> that the campaign could be re-opened. I will be watching this closely :)
>>>
>>> Kind regards,
>>> Sithu
>>>
>>>
>>> On Thu, May 1, 2014 at 2:39 AM, Russell Keith-Magee <
>>> russ...@keith-magee.com> wrote:
>>>
>>> Hi Sithu,
>>>
>>> Unfortunately, we can't add orders once the campaign is closed - this is
>>> one of the features of TeeSpring as a fund raising method.
>>>
>>> We *can* relaunch the campaign, but that campaign would be independent
>>> to the original. It would have its own sales target, its own closing date,
>>> and so on.
>>>
>>> The lowest we can set the sales target is 20 shirts. I know there are
>>> about 6 other orders out there from people who missed the deadline; if
>>> there's any other interest out there (speak up in a reply if you're
>>> interested), we might consider reopening the campaign for a week.
>>>
>>>

Re: The Django 1.7 tees!

2014-06-07 Thread Sithembewena Lloyd Dube
Hi Russell,

Thanks for the feedback. I still do not see anything processed on the card
- am getting a bit worried here. Is there some way I could find out what
happened to my order?

Kind regards,
Lloyd


On Tue, Jun 3, 2014 at 1:56 AM, Russell Keith-Magee <russ...@keith-magee.com
> wrote:

> Hi Lloyd,
>
> The card won't be debited until the campaign completes, which was over the
> weekend; I'm guessing that means the bank wouldn't have processed anything
> until Monday, and as with all bank things, it might take a day or two to
> show up in statements.
>
> The actual shirts should have gone into production on Monday as well, and
> generally ship within 2 weeks. US deliveries take 7-14 days from end of
> campaign; international take 14-21 days.
>
> Yours,
> Russ Magee %-)
>
>
> On Mon, Jun 2, 2014 at 8:13 PM, Sithembewena Lloyd Dube <zebr...@gmail.com
> > wrote:
>
>> Hey Russell,
>>
>> I placed an order for a small tee, but I see my card has not been debited
>> in my bank statement? When do they get charged/ shipped?
>>
>> Thanks,
>> Lloyd
>>
>>
>> On Wed, May 21, 2014 at 2:17 PM, Sithembewena Lloyd Dube <
>> zebr...@gmail.com> wrote:
>>
>>> Hi Russell,
>>>
>>> Thank you! I really appreciate you bringing the campaign back :)
>>>
>>> Kind regards,
>>> Sithu
>>>
>>>
>>> On Wed, May 21, 2014 at 1:35 PM, Russell Keith-Magee <
>>> russ...@keith-magee.com> wrote:
>>>
>>>> Hi Sithu,
>>>>
>>>> Good news! It turns out you weren't the only person to have problems
>>>> placing an order, so we've re-opened the campaign for one last run to make
>>>> sure everyone who wants a shirt can get one. You can place your order here:
>>>>
>>>> http://teespring.com/django17-v2
>>>>
>>>> You have until the end of May.
>>>>
>>>> Yours,
>>>> Russ Magee %-)
>>>>
>>>>
>>>>
>>>> On Thu, May 1, 2014 at 7:03 PM, Sithembewena Lloyd Dube <
>>>> zebr...@gmail.com> wrote:
>>>>
>>>>> Hi Russell,
>>>>>
>>>>> Thank you for the feedback. I'm hoping that others may show interest
>>>>> so that the campaign could be re-opened. I will be watching this closely 
>>>>> :)
>>>>>
>>>>> Kind regards,
>>>>> Sithu
>>>>>
>>>>>
>>>>> On Thu, May 1, 2014 at 2:39 AM, Russell Keith-Magee <
>>>>> russ...@keith-magee.com> wrote:
>>>>>
>>>>>> Hi Sithu,
>>>>>>
>>>>>> Unfortunately, we can't add orders once the campaign is closed - this
>>>>>> is one of the features of TeeSpring as a fund raising method.
>>>>>>
>>>>>> We *can* relaunch the campaign, but that campaign would be
>>>>>> independent to the original. It would have its own sales target, its own
>>>>>> closing date, and so on.
>>>>>>
>>>>>> The lowest we can set the sales target is 20 shirts. I know there are
>>>>>> about 6 other orders out there from people who missed the deadline; if
>>>>>> there's any other interest out there (speak up in a reply if you're
>>>>>> interested), we might consider reopening the campaign for a week.
>>>>>>
>>>>>> Yours,
>>>>>> Russ Magee %-)
>>>>>>
>>>>>>
>>>>>> On Wed, Apr 30, 2014 at 11:58 PM, Sithembewena Lloyd Dube <
>>>>>> zebr...@gmail.com> wrote:
>>>>>>
>>>>>>> To Whom It May Concern,
>>>>>>>
>>>>>>> I am devastated that I could not place an order for one of the new
>>>>>>> Django 1.7 tees. Now that I am ready to go, the campaign has ended on 
>>>>>>> the
>>>>>>> merchant website.
>>>>>>>
>>>>>>> May I please place an order for one? I'd dearly like a memento of
>>>>>>> this milestone release. Pretty please? Size=small :)
>>>>>>>
>>>>>>> --
>>>>>>> Regards,
>>>>>>> Sithu Lloyd Dube
>>>>>>>
>>>>>>> --
>>>>>>> You received this message because you are subscribed to the Google
>>>

Re: The Django 1.7 tees!

2014-06-02 Thread Sithembewena Lloyd Dube
Hey Russell,

I placed an order for a small tee, but I see my card has not been debited
in my bank statement? When do they get charged/ shipped?

Thanks,
Lloyd


On Wed, May 21, 2014 at 2:17 PM, Sithembewena Lloyd Dube <zebr...@gmail.com>
wrote:

> Hi Russell,
>
> Thank you! I really appreciate you bringing the campaign back :)
>
> Kind regards,
> Sithu
>
>
> On Wed, May 21, 2014 at 1:35 PM, Russell Keith-Magee <
> russ...@keith-magee.com> wrote:
>
>> Hi Sithu,
>>
>> Good news! It turns out you weren't the only person to have problems
>> placing an order, so we've re-opened the campaign for one last run to make
>> sure everyone who wants a shirt can get one. You can place your order here:
>>
>> http://teespring.com/django17-v2
>>
>> You have until the end of May.
>>
>> Yours,
>> Russ Magee %-)
>>
>>
>>
>> On Thu, May 1, 2014 at 7:03 PM, Sithembewena Lloyd Dube <
>> zebr...@gmail.com> wrote:
>>
>>> Hi Russell,
>>>
>>> Thank you for the feedback. I'm hoping that others may show interest so
>>> that the campaign could be re-opened. I will be watching this closely :)
>>>
>>> Kind regards,
>>> Sithu
>>>
>>>
>>> On Thu, May 1, 2014 at 2:39 AM, Russell Keith-Magee <
>>> russ...@keith-magee.com> wrote:
>>>
>>>> Hi Sithu,
>>>>
>>>> Unfortunately, we can't add orders once the campaign is closed - this
>>>> is one of the features of TeeSpring as a fund raising method.
>>>>
>>>> We *can* relaunch the campaign, but that campaign would be independent
>>>> to the original. It would have its own sales target, its own closing date,
>>>> and so on.
>>>>
>>>> The lowest we can set the sales target is 20 shirts. I know there are
>>>> about 6 other orders out there from people who missed the deadline; if
>>>> there's any other interest out there (speak up in a reply if you're
>>>> interested), we might consider reopening the campaign for a week.
>>>>
>>>> Yours,
>>>> Russ Magee %-)
>>>>
>>>>
>>>> On Wed, Apr 30, 2014 at 11:58 PM, Sithembewena Lloyd Dube <
>>>> zebr...@gmail.com> wrote:
>>>>
>>>>> To Whom It May Concern,
>>>>>
>>>>> I am devastated that I could not place an order for one of the new
>>>>> Django 1.7 tees. Now that I am ready to go, the campaign has ended on the
>>>>> merchant website.
>>>>>
>>>>> May I please place an order for one? I'd dearly like a memento of this
>>>>> milestone release. Pretty please? Size=small :)
>>>>>
>>>>> --
>>>>> Regards,
>>>>> Sithu Lloyd Dube
>>>>>
>>>>> --
>>>>> 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.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/django-users/CAH-SnCB%2BVP%2BVpM3g4Uj4qP5sWfMv4%3DFvcuiNFvbYAErJknTnmw%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/django-users/CAH-SnCB%2BVP%2BVpM3g4Uj4qP5sWfMv4%3DFvcuiNFvbYAErJknTnmw%40mail.gmail.com?utm_medium=email_source=footer>
>>>>> .
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>>  --
>>>> 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.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/CAJxq84-mq6pnpX3WaSGrfBccE-hT1e7MY3xWRp_O62pkUpZGxw%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAJxq84-mq6pnpX3WaSGrfBccE-hT1e7MY3xWRp_O62pkUpZGxw%40

Re: The Django 1.7 tees!

2014-05-21 Thread Sithembewena Lloyd Dube
Hi Russell,

Thank you! I really appreciate you bringing the campaign back :)

Kind regards,
Sithu


On Wed, May 21, 2014 at 1:35 PM, Russell Keith-Magee <
russ...@keith-magee.com> wrote:

> Hi Sithu,
>
> Good news! It turns out you weren't the only person to have problems
> placing an order, so we've re-opened the campaign for one last run to make
> sure everyone who wants a shirt can get one. You can place your order here:
>
> http://teespring.com/django17-v2
>
> You have until the end of May.
>
> Yours,
> Russ Magee %-)
>
>
>
> On Thu, May 1, 2014 at 7:03 PM, Sithembewena Lloyd Dube <zebr...@gmail.com
> > wrote:
>
>> Hi Russell,
>>
>> Thank you for the feedback. I'm hoping that others may show interest so
>> that the campaign could be re-opened. I will be watching this closely :)
>>
>> Kind regards,
>> Sithu
>>
>>
>> On Thu, May 1, 2014 at 2:39 AM, Russell Keith-Magee <
>> russ...@keith-magee.com> wrote:
>>
>>> Hi Sithu,
>>>
>>> Unfortunately, we can't add orders once the campaign is closed - this is
>>> one of the features of TeeSpring as a fund raising method.
>>>
>>> We *can* relaunch the campaign, but that campaign would be independent
>>> to the original. It would have its own sales target, its own closing date,
>>> and so on.
>>>
>>> The lowest we can set the sales target is 20 shirts. I know there are
>>> about 6 other orders out there from people who missed the deadline; if
>>> there's any other interest out there (speak up in a reply if you're
>>> interested), we might consider reopening the campaign for a week.
>>>
>>> Yours,
>>> Russ Magee %-)
>>>
>>>
>>> On Wed, Apr 30, 2014 at 11:58 PM, Sithembewena Lloyd Dube <
>>> zebr...@gmail.com> wrote:
>>>
>>>> To Whom It May Concern,
>>>>
>>>> I am devastated that I could not place an order for one of the new
>>>> Django 1.7 tees. Now that I am ready to go, the campaign has ended on the
>>>> merchant website.
>>>>
>>>> May I please place an order for one? I'd dearly like a memento of this
>>>> milestone release. Pretty please? Size=small :)
>>>>
>>>> --
>>>> Regards,
>>>> Sithu Lloyd Dube
>>>>
>>>> --
>>>> 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.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/CAH-SnCB%2BVP%2BVpM3g4Uj4qP5sWfMv4%3DFvcuiNFvbYAErJknTnmw%40mail.gmail.com<https://groups.google.com/d/msgid/django-users/CAH-SnCB%2BVP%2BVpM3g4Uj4qP5sWfMv4%3DFvcuiNFvbYAErJknTnmw%40mail.gmail.com?utm_medium=email_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>  --
>>> 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.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAJxq84-mq6pnpX3WaSGrfBccE-hT1e7MY3xWRp_O62pkUpZGxw%40mail.gmail.com<https://groups.google.com/d/msgid/django-users/CAJxq84-mq6pnpX3WaSGrfBccE-hT1e7MY3xWRp_O62pkUpZGxw%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Regards,
>> Sithu Lloyd Dube
>>
>> --
>> 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.
>> To v

Re: [Tutor] PyCountry currency formatting woes

2014-05-08 Thread Sithembewena Lloyd Dube
Thank you all, babel works just fine. I also tried ccy, which isn't bad
either - except that it returns non-unicode currency letters for countries
in the Eurozone.


On Mon, May 5, 2014 at 10:10 AM, Peter Otten <__pete...@web.de> wrote:

> Sithembewena Lloyd Dube wrote:
>
> > Thanks, i was actually getting the error information to update the post.
> > Apoligies to waste your time posting here - I could not find an
> > appropriate PyCountry discussion list and my next best bet seemed to be a
> > Python users' list.
> >
> > For those who care to look, the error is as follows (a concise example
> > from an interactive shell:
> >
> > import pycountry
> > country = pycountry.countries.get(alpha2='DE')
> > currency = pycountry.currencies.get(numeric=country.numeric)
> > Traceback (most recent call last):
> > File "", line 1, in
> > File "/usr/lib/pymodules/python2.6/pycountry/db.py", line 83, in get
> > return self.indices[field][value]
> > KeyError: '276'
> >
> > The obvious issue here is that the pycountry.countries collection does
> not
> > contain a currency with a numeric of 276 (Germany's numeric) - yet it
> does
> > contain the Euro. Any ideas as to what the way around this may be?
>
> It looks like the development version of babel
>
>
> http://babel.pocoo.org/docs/api/numbers/#babel.numbers.get_territory_currencies
>
> can do what you want:
>
> $ LANG=en_US.UTF-8 python
> Python 2.7.5+ (default, Feb 27 2014, 19:37:08)
> [GCC 4.8.1] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import babel.numbers as bn
> >>> bn.get_territory_currencies("DE")
> ['EUR']
> >>> print bn.format_currency(1.234, "EUR")
> €1.23
> >>> print bn.format_currency(1.234, "EUR", locale="DE")
> 1,23 €
> >>> import babel
> >>> babel.__version__
> '2.0-dev'
>
> ___
> Tutor maillist  -  tu...@python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCDmUJPseY7q27xifgkaKJou5Xbvo5_OWf-DFBsrP85m0A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: What is different of handling character code between pure Python and Django?

2014-05-06 Thread Sithembewena Lloyd Dube
That should be ".encode('utf-8') - it is separated by a dash.


On Tue, May 6, 2014 at 4:31 PM, 杉田臣輔  wrote:

> Hello
>
> Thank you for replying.
> I tried to use the ".encode('utf8')" method before.
>
> I also tried your suggestion. But error happened like below.
>
> 'ascii' codec can't decode byte 0xe3 in position 0: ordinal not in
> range(128)
>
>
>
>
> 2014-05-06 17:10 GMT+09:00 Hannu Krosing :
>
>>  On 05/06/2014 08:28 AM, Sugita Shinsuke wrote:
>>
>> ...
>>
>>
>>> If it is the cause. Can I change encode type of locale.
>>> getpreferredencoding?
>>>
>>  ...
>>
>>>
 > So, I run the stand-alone Python program like below could run fine.
 > —
 > java_file = ‘javaprogram’
 > file_name = ‘filename’
 > text = ‘あいうえお’ #Japanese character
 > java_file_path = ‘/path/to/‘
 > class_path = ‘-cp ' + java_file_path
 >
 > cmd = “java {0} {1} {2} {3}".format(class_path, java_file, text,
 file_name)

>>>You can check if encoding the arguments manually works:
>>
>> cmd = "java {0} {1} {2} {3}".format(*[s.encode('utf8') for s in
>> (class_path, java_file, text, file_name)])
>>
>>
>> Cheers
>>
>> --
>> Hannu Krosing
>> PostgreSQL Consultant
>> Performance, Scalability and High Availability
>> 2ndQuadrant Nordic OÜ
>>
>>
>  --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAJ5zBj6H-HE60KJpB4-KbQkE9sY5Hri_vnQApeSPGSbkzLMV9g%40mail.gmail.com
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCDv5mdABctR1V4Gw0w%2B9MzLK%2BY-CMv8zzp8hRm8tyzL8g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Tutor] PyCountry currency formatting woes

2014-05-06 Thread Sithembewena Lloyd Dube
Thanks for this response, this is exactly what I needed to know.


On Mon, May 5, 2014 at 6:26 AM, Marc Tompkins <marc.tompk...@gmail.com>wrote:

> On Sun, May 4, 2014 at 1:55 PM, Sithembewena Lloyd Dube <zebr...@gmail.com
> > wrote:
>
>> Thanks, i was actually getting the error information to update the post.
>> Apoligies to waste your time posting here - I could not find an appropriate
>> PyCountry discussion list and my next best bet seemed to be a Python users'
>> list.
>>
>>
> You also posted on StackOverflow; I just answered you there.  In short:
> the currency numeric is not guaranteed to be the same as the country
> numeric (in the case of the Euro, how could it possibly be?)  The numeric
> for DE is 276; the numeric for the Euro is 978.  Obviously they don't match.
>
> PyCountry is a wrapper around some tables provided by Debian; those tables
> don't include a country/currency mapping.  You can find those mapping
> tables at
>  http://www.currency-iso.org/en/home/tables/table-a1.html
> and roll your own wrapper; I'm sure it's been done a thousand times
> before, but I'm not aware of a Python package that does this.
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCAxM%2Bnz4%2Bi24QePUHceR_AKovcXbTpnBu%3DBc7R3_1q5ug%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: PyCountry currency formatting woes

2014-05-04 Thread Sithembewena Lloyd Dube
Thanks, i was actually getting the error information to update the post.
Apoligies to waste your time posting here - I could not find an appropriate
PyCountry discussion list and my next best bet seemed to be a Python users'
list.

For those who care to look, the error is as follows (a concise example from
an interactive shell:

import pycountry
country = pycountry.countries.get(alpha2='DE')
currency = pycountry.currencies.get(numeric=country.numeric)
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/pymodules/python2.6/pycountry/db.py", line 83, in get
return self.indices[field][value]
KeyError: '276'

The obvious issue here is that the pycountry.countries collection does not
contain a currency with a numeric of 276 (Germany's numeric) - yet it does
contain the Euro. Any ideas as to what the way around this may be?


On Sun, May 4, 2014 at 10:25 PM, Sithembewena Lloyd Dube
<zebr...@gmail.com>wrote:

> Hi everyone,
>
> I have a function which accepts an alpha2 country code and a price string,
> where the aim is to get the country's currency and use the currency.letter
> property of that currency to format the supplied price string.
>
> The above works fine so far - yet it falls over when called with Germany
> as the country as follows:
>
> currency = pycountry.currencies.get(numeric=country.numeric)
>
> The function implementation is as follows:
>
> def formatPrice(self, alpha2CountryCode, price):
> """
> @param alpha2CountryCode: The 2-character country code for which
> to format the price value
> @param price: The price value as a string
> @return: A string representing the formatted monetary value for
> this country for this price.
>
> #Get country by alpha2 code
> country = pc.countries.get(alpha2=alpha2CountryCode.upper())
>
> #Get currency by country's numeric and format price
> currency = pc.currencies.get(numeric=country.numeric)
> letter = currency.letter
> formattedCurrency = "%s %s" % (letter, price)
>
> return formattedCurrency
>
> Any ideas as to what the issue may be?
>
> Thanks :)
>
> --
> Regards,
> Sithu Lloyd Dube
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCD%2BY24XvE796wyqNXYaXhT8djSE%3DhHXmYaXJmSpZ%2BwDkQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


PyCountry currency formatting woes

2014-05-04 Thread Sithembewena Lloyd Dube
Hi everyone,

I have a function which accepts an alpha2 country code and a price string,
where the aim is to get the country's currency and use the currency.letter
property of that currency to format the supplied price string.

The above works fine so far - yet it falls over when called with Germany as
the country as follows:

currency = pycountry.currencies.get(numeric=country.numeric)

The function implementation is as follows:

def formatPrice(self, alpha2CountryCode, price):
"""
@param alpha2CountryCode: The 2-character country code for which to
format the price value
@param price: The price value as a string
@return: A string representing the formatted monetary value for
this country for this price.

#Get country by alpha2 code
country = pc.countries.get(alpha2=alpha2CountryCode.upper())

#Get currency by country's numeric and format price
currency = pc.currencies.get(numeric=country.numeric)
letter = currency.letter
formattedCurrency = "%s %s" % (letter, price)

return formattedCurrency

Any ideas as to what the issue may be?

Thanks :)

-- 
Regards,
Sithu Lloyd Dube

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCD4j8Ae5Qtbg%3DLQQJeQettxgbA4zcwRDDDvSS6copZgaw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: The Django 1.7 tees!

2014-05-01 Thread Sithembewena Lloyd Dube
Hi Russell,

Thank you for the feedback. I'm hoping that others may show interest so
that the campaign could be re-opened. I will be watching this closely :)

Kind regards,
Sithu


On Thu, May 1, 2014 at 2:39 AM, Russell Keith-Magee <russ...@keith-magee.com
> wrote:

> Hi Sithu,
>
> Unfortunately, we can't add orders once the campaign is closed - this is
> one of the features of TeeSpring as a fund raising method.
>
> We *can* relaunch the campaign, but that campaign would be independent to
> the original. It would have its own sales target, its own closing date, and
> so on.
>
> The lowest we can set the sales target is 20 shirts. I know there are
> about 6 other orders out there from people who missed the deadline; if
> there's any other interest out there (speak up in a reply if you're
> interested), we might consider reopening the campaign for a week.
>
> Yours,
> Russ Magee %-)
>
>
> On Wed, Apr 30, 2014 at 11:58 PM, Sithembewena Lloyd Dube <
> zebr...@gmail.com> wrote:
>
>> To Whom It May Concern,
>>
>> I am devastated that I could not place an order for one of the new Django
>> 1.7 tees. Now that I am ready to go, the campaign has ended on the merchant
>> website.
>>
>> May I please place an order for one? I'd dearly like a memento of this
>> milestone release. Pretty please? Size=small :)
>>
>> --
>> Regards,
>> Sithu Lloyd Dube
>>
>> --
>> 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.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAH-SnCB%2BVP%2BVpM3g4Uj4qP5sWfMv4%3DFvcuiNFvbYAErJknTnmw%40mail.gmail.com<https://groups.google.com/d/msgid/django-users/CAH-SnCB%2BVP%2BVpM3g4Uj4qP5sWfMv4%3DFvcuiNFvbYAErJknTnmw%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAJxq84-mq6pnpX3WaSGrfBccE-hT1e7MY3xWRp_O62pkUpZGxw%40mail.gmail.com<https://groups.google.com/d/msgid/django-users/CAJxq84-mq6pnpX3WaSGrfBccE-hT1e7MY3xWRp_O62pkUpZGxw%40mail.gmail.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCDxqkEtBvUMxiKTp4%3DAhofb-1OBiNw65YccEQuCdd_Fow%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


The Django 1.7 tees!

2014-04-30 Thread Sithembewena Lloyd Dube
To Whom It May Concern,

I am devastated that I could not place an order for one of the new Django
1.7 tees. Now that I am ready to go, the campaign has ended on the merchant
website.

May I please place an order for one? I'd dearly like a memento of this
milestone release. Pretty please? Size=small :)

-- 
Regards,
Sithu Lloyd Dube

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCB%2BVP%2BVpM3g4Uj4qP5sWfMv4%3DFvcuiNFvbYAErJknTnmw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Best way to learn Django considering Python versions and etc.

2013-12-11 Thread Sithembewena Lloyd Dube
Thanks for this - interesting. Another option would be Two Scoops of Django
by PyDanny and Audrey.


On Wed, Dec 11, 2013 at 5:41 AM, Ashutosh Das  wrote:

>
> Hi
> there  is a great book for Django http://www.tangowithdjango.com/
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/3a4cfa57-29ab-44f5-9c2f-95cc66e6c4c6%40googlegroups.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCAwz61CkB4mFKSnBxAyaSF2%3D92G-tz7n2iJvuimh%2BAxjg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [ANNOUNCE] Django 1.6 and Django 1.4.10 released

2013-11-07 Thread Sithembewena Lloyd Dube
Thank you to everyone who's making this framework better :)


On Thu, Nov 7, 2013 at 1:30 PM, Mário Neto  wrote:

> Thanks for all! =)
>
>
> 2013/11/6 wudiweb 
>
>> Thanks for all contributors
>>
>> 在 2013年11月6日星期三UTC+8下午11时09分45秒,James Bennett写道:
>>
>>> Django 1.6 and Django 1.4.10 are out today; the latter is a bugfix
>>> release to restore Python 2.5 compatibility in the 1.4 series.
>>>
>>> Full details are in the blog post:
>>>
>>> https://www.djangoproject.com/weblog/2013/nov/06/django-16-released/
>>>
>>  --
>> 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.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/b1715b43-ca4c-4c17-8863-beca7501fcdd%40googlegroups.com
>> .
>>
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> --
> Att. *Mário Araújo Chaves Neto*
> *Programmer, Designer and U.I. Engineer*
>
> *MBA in Design Digital* - 2008 - FIC
> *Analysis and Systems Development* - 2011 - Estácio
> *D**esign and Implementation of Internet Environments* - 2003 - FIC
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAJthOzDVtAct8gwa1g92f_865kycAnY7eBPtTerQ%3DAROpab93w%40mail.gmail.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCDCRfu1eear2k%2Bz01JzXUK53QMpsbTBARGgWOo55ok-Ww%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: New to Django

2013-10-16 Thread Sithembewena Lloyd Dube
Hey guys,

For those asking how to setup databases with Django, all this is covered in
the section on how to install Django on the main website.

https://docs.djangoproject.com/en/1.5/intro/install/
and, more specifically,
https://docs.djangoproject.com/en/1.5/topics/install/#database-installation

Cheers.


On Wed, Oct 16, 2013 at 5:04 AM, Bryan Kim Artificio <
bryankim.artifi...@gmail.com> wrote:

> HI,
>
> good day!
>
> i would like to know id there's a way to connect the postgresSQL with
> django?
>
> regards,
>
>
> On Tuesday, October 15, 2013 1:55:01 PM UTC+8, Mahantesh U wrote:
>>
>> Hi All,
>>
>>   I am new to Django framework. I worked on Flask framework using python.
>> Please share the sites to learn Django easily.
>>
>> Thanks
>> Mahantesh
>>
>  --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/d6099d99-2967-4686-b20a-7be9d2257327%40googlegroups.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCBByhWds5xaMMQk7d6U%2BtQp744Pf%2Bgph_O4J-t_CF-u3A%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: New to Django

2013-10-15 Thread Sithembewena Lloyd Dube
You're welcome, Mahantesh :) Did you find the tutorial I mentioned?


On Tue, Oct 15, 2013 at 3:56 PM, Mahantesh U wrote:

> Thanks a lot Lloyd Dube  :)
>
>
> On Tuesday, October 15, 2013 5:38:33 PM UTC+5:30, Lloyd Dube wrote:
>
>> Hi,
>>
>> Do the tutorial on the official Django website - it will show you where
>> else to look when you are done :)
>>
>>
>> On Tue, Oct 15, 2013 at 7:55 AM, Mahantesh U wrote:
>>
>>> Hi All,
>>>
>>>   I am new to Django framework. I worked on Flask framework using
>>> python. Please share the sites to learn Django easily.
>>>
>>> Thanks
>>> Mahantesh
>>>
>>> --
>>> 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...@**googlegroups.com.
>>> To post to this group, send email to django...@googlegroups.com.
>>>
>>> Visit this group at 
>>> http://groups.google.com/**group/django-users
>>> .
>>> To view this discussion on the web visit https://groups.google.com/d/**
>>> msgid/django-users/78b41661-**9ac0-4433-bb16-fd8ea7b8ccd2%**
>>> 40googlegroups.com
>>> .
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out
>>> .
>>>
>>
>>
>>
>> --
>> Regards,
>> Sithu Lloyd Dube
>>
>  --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/ceaab487-fd63-4fc0-bfb1-b37b765fa577%40googlegroups.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCB_7aHO2szLDa_w7gbQnAxSjHQNSXECUT3fRkoBPHkh6g%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: New to Django

2013-10-15 Thread Sithembewena Lloyd Dube
Hi,

Do the tutorial on the official Django website - it will show you where
else to look when you are done :)


On Tue, Oct 15, 2013 at 7:55 AM, Mahantesh U wrote:

> Hi All,
>
>   I am new to Django framework. I worked on Flask framework using python.
> Please share the sites to learn Django easily.
>
> Thanks
> Mahantesh
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/78b41661-9ac0-4433-bb16-fd8ea7b8ccd2%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCD9U4wfNO94KeJn6xkbiNKH3wmnc9zOp5S8Ry%2B0QddQHw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: We are hiring!

2013-10-15 Thread Sithembewena Lloyd Dube
Are you only hiring UK developers?


On Tue, Oct 15, 2013 at 8:11 AM, Team UK  wrote:

> Independent freelance Django developers. 2 years minimum experience
>  required in Django/python, CSS, HTML5, Bootstrap and JS backbone.
>
> Please email your CV.
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/93d68be5-a3e4-4de7-93b5-162ded47b2da%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCCfjafBRDeU1yXO512bxtCxnnTjbU_DPbD6fP1DqHCq4A%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: We are hiring!

2013-10-15 Thread Sithembewena Lloyd Dube
There's a typo in your company name on your website (in the copyright
message at bottom left) :-)


On Tue, Oct 15, 2013 at 8:11 AM, Team UK  wrote:

> Independent freelance Django developers. 2 years minimum experience
>  required in Django/python, CSS, HTML5, Bootstrap and JS backbone.
>
> Please email your CV.
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/93d68be5-a3e4-4de7-93b5-162ded47b2da%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH-SnCBJ%2BZ4GHu-6U5cyLpFgrD-s5%3DwaO8t9kaKEGZCmooLzJA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Any good books for learning django?

2013-09-18 Thread Sithembewena Lloyd Dube
I asked PyDanny and Audrey for a free copy and they graciously obliged.
Very good book, too.


On Wed, Sep 18, 2013 at 12:29 PM, Yinka  wrote:

> These were not written for beginners, but they certainly can be helpful to
> the beginnner:
>
>1. *Pro Django** **
>
> http://www.amazon.com/Pro-Django-Marty-Alchin/dp/1430258098/ref=sr_1_2?s=books=UTF8=1379499898=1-2=django
>*
>2. *Instant Django 1.5 Application Development Starter **
>
> http://www.amazon.com/Instant-Django-Application-Development-Starter/dp/1782163565/ref=sr_1_6?s=books=UTF8=1379499898=1-6=django
>
> *
>
>
> Thanks
>
>
>
> On Thursday, February 7, 2013 5:49:36 PM UTC, frocco wrote:
>
>> Hello,
>> Most of what I find are dated, 2008,2009.
>> Are these still good for learning django 1.4?
>>
>> Which books do you recommend?
>>
>> 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.
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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 redorder app

2013-09-06 Thread Sithembewena Lloyd Dube
If you are referring to reordering fields, yes it is possible. For details,
see the official Django tutorial's section on setting up the admin site at
https://docs.djangoproject.com/en/1.5/intro/tutorial02/

HTH.


On Fri, Sep 6, 2013 at 10:16 AM, Ranjith Kumar wrote:

> Hello,
> I trying to reorder the app in django admin, is there anyways we can do it
> via admin.py?
>
> Thank you!
>
> --
> Cheers,
> Ranjith Kumar K,
> Chennai.
>
> http://ranjithtenz.wordpress.com
>
>
>  --
> 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.
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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 driving me nuts

2013-08-31 Thread Sithembewena Lloyd Dube
Please describe your problem a bit more and/ or show code samples? We can
help out if we understand the issue.


On Sat, Aug 31, 2013 at 2:50 PM, Gerd Koetje wrote:

> Why is it so hard to get as a former php programmer.
>
> I'm trying to cut my form in difrant sections , what seemed to work when i
> use list(forms)
> But then my forms dont save anymore
>
> anyone willing to help me over this part?
>
>
>
>  --
> 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.
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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 refreshing problem

2013-08-30 Thread Sithembewena Lloyd Dube
Clear your browser cache and check your preferences. Then restart the
browser.


On Fri, Aug 30, 2013 at 8:28 AM, Harjot Mann wrote:

> On Mon, Aug 26, 2013 at 2:36 PM, Harjot Mann 
> wrote:
> > In django whenever I make some template I need to refresh it. I am not
> > getting what is the problem, is it some cache problem, even I disabled
> > it using never_cache but nothing worked, Is there anyone who faced the
> > same problem. Please help me I want to know that exactly what is
> > happening and why?
>
>
> Waiting for reply.
>
> --
> Harjot Kaur Mann
> Blog: http://harjotmann.wordpress.com/
> Daily Dairy: http://harjotmann.wordpress.com/daily-diary/
>
> --
> 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.
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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 2 tables one query?

2013-08-28 Thread Sithembewena Lloyd Dube
http://stackoverflow.com/questions/16597709/randomize-a-django-queryset-once-then-iterate-through-it


On Tue, Aug 27, 2013 at 11:16 PM, piasek piasek  wrote:

> Hi
>
> I was wondering is it possible to get information about two tables in one
> query?
> I have two models
> Team (id, name, active, country) and Player (id, first_name, second_name,
> active, team)
> where Player.team = ForeignKey(Team)
> Of course one team may have several players and one player have one team.
>
> Is it possible to get only one, random, player of each team?
> for db i use mysql
>
> best regards
> slawek
>
> --
> 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.
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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 2 tables one query?

2013-08-28 Thread Sithembewena Lloyd Dube
Yes it is.


On Tue, Aug 27, 2013 at 11:16 PM, piasek piasek  wrote:

> Hi
>
> I was wondering is it possible to get information about two tables in one
> query?
> I have two models
> Team (id, name, active, country) and Player (id, first_name, second_name,
> active, team)
> where Player.team = ForeignKey(Team)
> Of course one team may have several players and one player have one team.
>
> Is it possible to get only one, random, player of each team?
> for db i use mysql
>
> best regards
> slawek
>
> --
> 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.
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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: Script to move django 1.4.3 to 1.5.1

2013-08-27 Thread Sithembewena Lloyd Dube
Error analysis + reading documentation = solution. Well, most of the time
anyway. For help with errors, please share the errors?



On Tue, Aug 27, 2013 at 7:37 PM, Harjot Mann wrote:

>
>
> On Thursday, June 20, 2013 8:55:07 AM UTC+5:30, Deepak Sharma wrote:
>>
>> Okay but my situation is bit different. I am updating my university
>> software. That software is wrote in django version 1.3.1. My challenge was
>> to run that software on 1.5.1 and i completed that. As many things changed
>> in django 1.5.1 like < direct_to_template > changed to  < TemplateView> and
>> few more. So my next target is that, that i make one script ( shell script
>> ) so that i give command in terminal like $ sudo apt-get install  and
>> it install. Shifting from 1.3 to 1.5.1 is it possible? If yes than how?
>>
>> If i want to run my software which is currently running on 1.5.1 with
>> command in terminal i.e i write $ sudo apt-get install mysoftware and it
>> install. I don't want to install it manually. How i do that process with
>> shell script?
>>
>
>   I also want to shift my app from django version 1.4.5 to 1.5.1. You are
> right there should be some script which automatically upgrades the version
> without affecting the application. Right now I upgraded to 1.5.1 but I ma
> getting Internal server error in my app. Dont have any idea what to do?
> Can you tell me how the urls should be like in this version?
>
> --
> 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.
>



-- 
Regards,
Sithu Lloyd Dube

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


Paginating YouTube API results

2013-08-26 Thread Sithembewena Lloyd Dube
Hi everyone,

I am using django-endless-pagination to paginate YouTube API results. I
have a view called 'search' and a url pattern as follows:
url(r'^search/$', 'find_music.views.search', name='search'),

In the view, I check request.method and handle it as follows:
- if POST, get search term and fetch youtube api results as list, which i
paginate in template
- if GET (user clicks pagination, url e.g. '/search/?page=2'), i look for
request.GET['page'] , which I would like to use to paginate my video list
created in the POST.

Question is, how best can i keep my video list from the POST method across
requests, so that i can paginate the same list? I have no search params
when users paginate, so I need to keep the original list and paginate that.
Any ideas?

Thank you.

-- 
Regards,
Sithu Lloyd Dube

-- 
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: Capturing a search query + params in Django 1.5

2013-08-19 Thread Sithembewena Lloyd Dube
Thank you, Daniel. That works great.


On Sat, Aug 17, 2013 at 9:58 PM, Daniel Roseman wrote:

> On Saturday, 17 August 2013 20:04:22 UTC+1, Lloyd Dube wrote:
>>
>> Hi,
>>
>> I have a simple web application in which I have a search box. When a user
>> enters a query in the box and hits "search", they get a list of results via
>> a popular search API.
>>
>> My issue is that I am using django-endless-pagination to paginate (no
>> kidding!) the API response - after some formatting, of course. When I click
>> next, the pagination appends url parameters. I am wondering which url
>> pattern to use to capture said parameters. The url scheme is as follows:
>>
>> http://127.0.0.1:8000/search/ -> works fine, goes to my search view.
>> http://127.0.0.1:8000/search/?**page=2->
>>  after a user clicks on the pagination links. I have no url pattern to
>> handle this.
>>
>> I am no regex expert. I also do not have an XKCD tee :-/
>>
>> SOS?
>>
>> Thanks.
>>
>> --
>> Regards,
>> Sithu Lloyd Dube
>>
>
> These are both caught by the pattern '^search/$'. Parameters after the ?
> are not part of the path, so are not processed in the URLconf, but are
> passed as part of request.GET, which you can examine in your view.
> --
> DR.
>
> --
> 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.
>



-- 
Regards,
Sithu Lloyd Dube

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


Capturing a search query + params in Django 1.5

2013-08-17 Thread Sithembewena Lloyd Dube
Hi,

I have a simple web application in which I have a search box. When a user
enters a query in the box and hits "search", they get a list of results via
a popular search API.

My issue is that I am using django-endless-pagination to paginate (no
kidding!) the API response - after some formatting, of course. When I click
next, the pagination appends url parameters. I am wondering which url
pattern to use to capture said parameters. The url scheme is as follows:

http://127.0.0.1:8000/search/ -> works fine, goes to my search view.
http://127.0.0.1:8000/search/?page=2 -> after a user clicks on the
pagination links. I have no url pattern to handle this.

I am no regex expert. I also do not have an XKCD tee :-/

SOS?

Thanks.

-- 
Regards,
Sithu Lloyd Dube

-- 
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: Adding YouTube video id to url

2013-08-10 Thread Sithembewena Lloyd Dube
Sorted. I got owned by regex :-/

In urls.py, it should be:

url(r'^watch/(?P[\w{}.-]{1,40})/$', 'find_music.views.watch',
name='watch'),

(see
http://stackoverflow.com/questions/15951948/django-url-for-40-characters-alphanumeric
)

Thanks.


On Sat, Aug 10, 2013 at 10:36 PM, Sithembewena Lloyd Dube <zebr...@gmail.com
> wrote:

> P.S: The view looks like the following:
>
> def watch(request, video_id):
> return HttpResponse("This is the watch page for %s") % video_id
>
>
> On Sat, Aug 10, 2013 at 10:31 PM, Sithembewena Lloyd Dube <
> zebr...@gmail.com> wrote:
>
>> Hi,
>>
>> I am using the YouTube API to fetch video data and display it on a web
>> page. As part of the html template I have an anchor tag with an href
>> directing to my Django 1.5 app. as follows:
>>
>> 
>>
>> The url definition in urls.py is as follows:
>>
>> url(r'^(?P\w+)$', 'find_music.views.watch', name='watch'),
>>
>> When I load the page, I get a NoReverseMatch exception as follows:
>>
>> Reverse for 'watch' with arguments '()' and keyword arguments '{u'video_id': 
>> 'D-dNA0NwLSw'}' not found.
>>
>>
>> What could I be missing?
>>
>> Thanks.
>>
>> --
>> Regards,
>> Sithu Lloyd Dube
>>
>
>
>
> --
> Regards,
> Sithu Lloyd Dube
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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: Adding YouTube video id to url

2013-08-10 Thread Sithembewena Lloyd Dube
P.S: The view looks like the following:

def watch(request, video_id):
return HttpResponse("This is the watch page for %s") % video_id


On Sat, Aug 10, 2013 at 10:31 PM, Sithembewena Lloyd Dube <zebr...@gmail.com
> wrote:

> Hi,
>
> I am using the YouTube API to fetch video data and display it on a web
> page. As part of the html template I have an anchor tag with an href
> directing to my Django 1.5 app. as follows:
>
> 
>
> The url definition in urls.py is as follows:
>
> url(r'^(?P\w+)$', 'find_music.views.watch', name='watch'),
>
> When I load the page, I get a NoReverseMatch exception as follows:
>
> Reverse for 'watch' with arguments '()' and keyword arguments '{u'video_id': 
> 'D-dNA0NwLSw'}' not found.
>
>
> What could I be missing?
>
> Thanks.
>
> --
> Regards,
> Sithu Lloyd Dube
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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: Adding YouTube video id to url

2013-08-10 Thread Sithembewena Lloyd Dube
P.S: The view looks like the following:

def watch(request, video_id):
return HttpResponse("This is the watch page for ...") % video_id


On Sat, Aug 10, 2013 at 10:31 PM, Sithembewena Lloyd Dube <zebr...@gmail.com
> wrote:

> Hi,
>
> I am using the YouTube API to fetch video data and display it on a web
> page. As part of the html template I have an anchor tag with an href
> directing to my Django 1.5 app. as follows:
>
> 
>
> The url definition in urls.py is as follows:
>
> url(r'^(?P\w+)$', 'find_music.views.watch', name='watch'),
>
> When I load the page, I get a NoReverseMatch exception as follows:
>
> Reverse for 'watch' with arguments '()' and keyword arguments '{u'video_id': 
> 'D-dNA0NwLSw'}' not found.
>
>
> What could I be missing?
>
> Thanks.
>
> --
> Regards,
> Sithu Lloyd Dube
>



-- 
Regards,
Sithu Lloyd Dube

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




Adding YouTube video id to url

2013-08-10 Thread Sithembewena Lloyd Dube
Hi,

I am using the YouTube API to fetch video data and display it on a web
page. As part of the html template I have an anchor tag with an href
directing to my Django 1.5 app. as follows:



The url definition in urls.py is as follows:

url(r'^(?P\w+)$', 'find_music.views.watch', name='watch'),

When I load the page, I get a NoReverseMatch exception as follows:

Reverse for 'watch' with arguments '()' and keyword arguments
'{u'video_id': 'D-dNA0NwLSw'}' not found.


What could I be missing?

Thanks.

-- 
Regards,
Sithu Lloyd Dube

-- 
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: problem writing a view that displays http request

2013-08-09 Thread Sithembewena Lloyd Dube
Try the following:

# In your case, just add 'include' to your conf.urls imports
from django.conf.urls import include

Then use it in the url declaration (see the official Django tutorial).


On Fri, Aug 9, 2013 at 12:04 PM, Dinesh Gudi  wrote:

> *urls.py*
> from django.conf.urls import patterns, url
> from testform import views
> urlpatterns = patterns('',
> url(r'^$', views.testhandler),
> )
>
>
> *views.py*
> from django.http import HttpResponse
> def testhandler(request):
> return HttpResponse(request)
>
>  --
> 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.
>
>
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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 for corporate web site

2013-08-06 Thread Sithembewena Lloyd Dube
Hi Sean,

You definitely can do that in Django.


On Tue, Aug 6, 2013 at 6:18 AM, Mike Dewhirst  wrote:

> On 6/08/2013 2:07pm, sean chen wrote:
>
>> I need to build a site for a small law firm. I looked at the poweredby
>> pages http://www.djangosites.org/, but I found it shows sites for
>> different purposes and I did not find a good example site for me to
>> spark my thoughts further.
>>
>> I see there exists a focus area for e-commerce site at
>> https://www.djangopackages.**com/grids/g/ecommerce/,
>> is there a focus area
>> for corporate websites?
>>
>
> What do they want?
>
> Mike
>
>
>
>> Thanks,
>> Sean
>>
>> --
>> 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+unsubscribe@**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+unsubscribe@**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
> .
>
>
>


-- 
Regards,
Sithu Lloyd Dube

-- 
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 installation on vanilla Mac OSX 10.8.2 mountain lion

2013-08-03 Thread Sithembewena Lloyd Dube
I installed Django successfully. If ever caught in the same situation, try
using the "sudo" command :-)

Thanks!


On Fri, Aug 2, 2013 at 8:31 PM, Nikolas Stevenson-Molnar <
nik.mol...@consbio.org> wrote:

> Right: wget isn't necessary when you have a GUI. However, chances are
> you'll need gcc for something eventually (e.g., any package that isn't
> pure Python), so it's probably worth installing XCode /w command line
> tools package (incl. gcc) anyway. I agree it's a hassle to install
> everything else when all you want is gcc. It's possible you could get
> gcc on it's own:
> http://osxdaily.com/2012/07/06/install-gcc-without-xcode-in-mac-os-x/
> ... not sure if it applies to 10.8.
>
> _Nik
>
> On 8/2/2013 7:50 AM, Larry Martell wrote:
> > On Fri, Aug 2, 2013 at 8:41 AM, Sithembewena Lloyd Dube
> > <zebr...@gmail.com> wrote:
> >> Hi everyone,
> >>
> >> I just began using a new Mac at work (running OSX 10.8.2 Mountain Lion)
> and
> >> it seems such a mission to install Django. Python 2.7.2. is already
> >> installed. Following the official Django installation instructions, I
> get no
> >> further than trying to get wget-> which I will ned to compile with a C
> >> Compiler -> which I can get by downloading 1+ gigs of xCode. Really?
> >>
> >> Could somebody please point out a safe and straight-forward way to
> install
> >> Django on Mountain Lion?
> > For me it was as simple as:
> >
> > download from https://www.djangoproject.com/download/1.5/tarball/
> > tar xzvf Django-1.5.tar.gz
> > cd Django-1.5
> > sudo python setup.py install
> >
>
> --
> 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.
>
>
>


-- 
Regards,
Sithu Lloyd Dube

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




Django installation on vanilla Mac OSX 10.8.2 mountain lion

2013-08-02 Thread Sithembewena Lloyd Dube
Hi everyone,

I just began using a new Mac at work (running OSX 10.8.2 Mountain Lion) and
it seems such a mission to install Django. Python 2.7.2. is already
installed. Following the official Django installation instructions, I get
no further than trying to get wget-> which I will ned to compile with a C
Compiler -> which I can get by downloading 1+ gigs of xCode. Really?

Could somebody please point out a safe and straight-forward way to install
Django on Mountain Lion?

Thanks.

-- 
Regards,
Sithu Lloyd Dube

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




Travelport API integration with Django

2013-07-17 Thread Sithembewena Lloyd Dube
Hi,

I am working on a component of a Django web application (travel booking
engine) which aims to integrate with the Travelport Universal API. It would
be great to find out if anyone here has had to do something similar and, if
applicable, to hear how they handled the integration.

The API provides workflows, which are really units of work such as creating
and booking itineraries. I have ideas, but i would like to find out how
others have approached this.

Thoughts welcome. Thanks.

-- 
Regards,
Sithu Lloyd Dube

-- 
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: 'SimpleLazyObject'

2013-07-12 Thread Sithembewena Lloyd Dube
What does the trace information say in your browser (or shell)? The trace
should be giving more information - such as, in which line number of which
file is the error showing up?.


On Fri, Jul 12, 2013 at 8:45 PM, Kakar Arunachal Service <
kakararunachalserv...@gmail.com> wrote:

> I've got a TypeError:
>
> int() argument must be a string or a number, not 'SimpleLazyObject'
>
>
> Here's my view:
>
> def bookmark_save_page(request):
> if request.method == 'POST':
> form = BookmarkSaveForm(request.POST)
> if form.is_valid():
> # Create or get link.
> link, dummy = Link.objects.get_or_create(
> url=form.cleaned_data['url']
> )
> # Create or get bookmarks.
> bookmark, created = Bookmark.objects.get_or_create(
> user = request.user,
> link = link
> )
> # Update bookmark title.
> bookmark.title = form.cleaned_data['title']
> # If the bookmark is being updated, clear old tag list.
> if not created:
> bookmark.tag_set.clear()
> # Create new tag list.
> tag_names = form.cleaned_data['tags'].split()
> for tag_name in tag_names:
> tag, dummy = Tag.objects.get_or_create(name=tag_name)
> bookmark.tag_set.add(tag)
> # Save bookmark to database.
> bookmark.save()
> return HttpResponseRedirect(
> '/user/%s/' %request.user.username
> )
> else:
> form = BookmarkSaveForm()
>
> variables = RequestContext(request, {'form': form})
> return render_to_response('bookmark_save.html',variables)
>
> I really don't know what's going on here. Please guide me.
>
> --
> 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.
>
>
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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: Python Fabric manage.py problem

2013-07-03 Thread Sithembewena Lloyd Dube
I had a similar issue - running manage.py through Fabric simply didn't pan
out - even after following the Fabric documentation. Also tried the
--noinput switch with no luck? I do not have a ready answer right now, but
I do intend to look into this. I am sure it has (and is being) done plenty
times with good result.


On Mon, Jul 1, 2013 at 8:28 AM, Eduardo Basílio <
eduardoafonsobasi...@gmail.com> wrote:

> I use Python Fabric to deploy. Works great for accessing the remote
> server, install dependencies, run linux commands, etc..
>
> But when I try to run *file commands manage.py Django*, NOT work!
>
>
> Example of my fabfile.py:
>
> with prefix ('source/home/user/env/bin/activate'):
>
> with cd ('path/to/your/project/django'):
>
> *run ('python manage.py help --settings=path.for.settings')*
>
>
> Fatal error: runstrong text() received nonzero return code while executing
> one!
>
>
> I've tried putting a --noinput but the error remains:
>
> *run ('python manage.py help --settings=caminho.para.settings --noinput')*
>
> Does anyone know how to solve?
>
> --
> 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.
>
>
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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: Returning data from view to ajax call

2013-07-02 Thread Sithembewena Lloyd Dube
What data format is your view returning? Django views return HTTP response
objects (by default, at least) - although Python lists (and other Python
collections?) should work when passed into a view in its context (I have
found Django querysets to be an exception).

AJAX is Asynchronous Javascript, so I presume that an AJAX call would
expect something like JSON output from a callable. I guess with some pain
one could get Javascript to ingest Django querysets? I couldn't think of a
sensible reason to do so - and I stand to be corrected.


On Wed, Jul 3, 2013 at 12:06 AM, Larry Martell wrote:

> I'm invoking a view from an ajax call and I want to return data. But
> the browser interpertates the return as a 500 (internal sever error)
> and my ajax success function does not get called. How can I return a
> successful status (like a 201) and also return data?
>
> --
> 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.
>
>
>


-- 
Regards,
Sithu Lloyd Dube

-- 
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: London based Django Dev: UX/UI (£300 per day)

2013-07-02 Thread Sithembewena Lloyd Dube
I'd churn out code for that budget. In my neck of the woods, it's nothing
to scoff at.

However, I have not seen the code, so I cannot say whether or not the
time-frame and remuneration tally. It is an easy mistake to accept a
time-frame and a rate without seeing code, only to find that the code base
needs a lot of refactoring, or even a re-write. Also, good developers are
hard to bring on-board nowadays due to any combination of budget, time and
location factors. Flexibility on one of those three factors would help
catalyse the search.


On Tue, Jul 2, 2013 at 11:11 PM, Frank Bieniek <
frank.bien...@produktlaunch.de> wrote:

>  Hi George,
> for that kind of money do not expect to get a senior
>
> Cheers Frank
>
>
> Am 02.07.2013 21:57, schrieb George Kazarian:
>
> By way of introduction my name is George and I'm the founder and CEO of
> www.therecipekit.co.uk. We are a London based online retail startup
> selling recipe kits that include amazing ingredients and simple to follow
> cooking instructions.
>
> Right now, I'm looking for a freelance django developer to take our
> website to the next level and improve the UX/UI both on front and back end.
> The website is currently up and running with a integrated payment system.
>
> I'm looking for a creative and experienced *London based* django
> developer who can join us on site ASAP and dedicate a few days per week to
> improve UX/UI. Experience in A/B testing is also required.
>
> Please let me know if you're interested!
>
> geo...@recipekit.com
> --
> 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.
>
>
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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: Getting URL root

2013-07-01 Thread Sithembewena Lloyd Dube
It sounds like you want to get the subdomain. Havew a look at the urlparse
module and its usage.

http://stackoverflow.com/questions/6925825/get-subdomain-from-url-using-python


On Tue, Jul 2, 2013 at 2:09 AM, Larry Martell wrote:

> I have an app I distribute to clients.
>
> When I run the app on my local machine I connect to http://127.0.0.1/...
> When I'm VPN-ed into a client site I connect to the app on their
> machine with http://xx.xx.xx.xx/...
> When a client is running locally at their site they connect with
> http://myappsname.company.com/
>
> I need to get that initial part of the URL from the python side. Is
> there some way to do that? (I may be using the wrong terminology here
> when I say 'url root'.)
>
> --
> 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.
>
>
>


-- 
Regards,
Sithu Lloyd Dube

-- 
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: Static files not served

2013-06-27 Thread Sithembewena Lloyd Dube
Hi @der_fenix,

My STATIC_URL setting is as follows: STATIC_URL = '/static/'

I suspect that Django's development server's static serving does not like
noscript tags? I have no idea. I might poke around later ... starting from
Django's 'django.contrib.staticfiles.views.serve()' call.


On Thu, Jun 27, 2013 at 10:47 PM, der_fenix <derfe...@gmail.com> wrote:

> Is there you main static dir in STATIC_URL in settings.py?
>
> > Update: removing the noscript tags around the css tags in the template
> > solves the issue. I am no clientside scripting expert, but it is my
> > understanding that noscript tags accommodate browsers with scripting
> turned
> > off, or legacy browsers? Surely the css should work by default?
> >
> > I know this is not an html mailing list, but has anybody else encountered
> > this?
> >
> > Another thing i noticed is that all this is not a problem when i view the
> > templates from outside a Django project - i.e. as a standalone html
> website.
> >
> >
> > On Thu, Jun 27, 2013 at 10:08 PM, Sithembewena Lloyd Dube <
> zebr...@gmail.com
> > > wrote:
> > >
> > > Hi all,
> > >
> > > I have a local development project where I put all static media in a
> > > 'static' subdirectory of my app (/project/app/static/). I then created
> a
> > > 'static' directory in the root folder of my project (/project/static/)
> and
> > > specified that as my STATIC_ROOT in settings.py.
> > >
> > > When I run the './manage.py collectstatic' command, all static media
> are
> > > added to the static root as expected. In the templates, usage is as
> > > follows: '' and
> so
> > > on, but when I view the page in a browser the CSS and js are not
> applied.
> > > If I view page source and click on the generated links to static
> > > resources,
> > > I do see them.
> > >
> > > One thing I do notice is that two of the missing css files are in the
> > > document's noscript tag and the links for all three are not clickable
> when
> > > viewing source. There are three in there, so one loads fine.
> > >
> > > Any pointers to what I could be missing? Thanks.
> > > --
> > > Regards,
> > > Sithu Lloyd Dube
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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: Static files not served

2013-06-27 Thread Sithembewena Lloyd Dube
Update: removing the noscript tags around the css tags in the template
solves the issue. I am no clientside scripting expert, but it is my
understanding that noscript tags accommodate browsers with scripting turned
off, or legacy browsers? Surely the css should work by default?

I know this is not an html mailing list, but has anybody else encountered
this?

Another thing i noticed is that all this is not a problem when i view the
templates from outside a Django project - i.e. as a standalone html website.


On Thu, Jun 27, 2013 at 10:08 PM, Sithembewena Lloyd Dube <zebr...@gmail.com
> wrote:

> Hi all,
>
> I have a local development project where I put all static media in a
> 'static' subdirectory of my app (/project/app/static/). I then created a
> 'static' directory in the root folder of my project (/project/static/) and
> specified that as my STATIC_ROOT in settings.py.
>
> When I run the './manage.py collectstatic' command, all static media are
> added to the static root as expected. In the templates, usage is as
> follows: '' and so
> on, but when I view the page in a browser the CSS and js are not applied.
> If I view page source and click on the generated links to static resources,
> I do see them.
>
> One thing I do notice is that two of the missing css files are in the
> document's noscript tag and the links for all three are not clickable when
> viewing source. There are three in there, so one loads fine.
>
> Any pointers to what I could be missing? Thanks.
> --
> Regards,
> Sithu Lloyd Dube
>



-- 
Regards,
Sithu Lloyd Dube

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




Static files not served

2013-06-27 Thread Sithembewena Lloyd Dube
Hi all,

I have a local development project where I put all static media in a
'static' subdirectory of my app (/project/app/static/). I then created a
'static' directory in the root folder of my project (/project/static/) and
specified that as my STATIC_ROOT in settings.py.

When I run the './manage.py collectstatic' command, all static media are
added to the static root as expected. In the templates, usage is as
follows: '' and so
on, but when I view the page in a browser the CSS and js are not applied.
If I view page source and click on the generated links to static resources,
I do see them.

One thing I do notice is that two of the missing css files are in the
document's noscript tag and the links for all three are not clickable when
viewing source. There are three in there, so one loads fine.

Any pointers to what I could be missing? Thanks.
-- 
Regards,
Sithu Lloyd Dube

-- 
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 can I have two unicode methods?

2013-06-25 Thread Sithembewena Lloyd Dube
I have previously achieved this by using an if statement as follows:

if :
return 
else:
return 

What is your specific requirement, i.e. why do you need to implement this?


On Wed, Jun 26, 2013 at 3:47 AM, yeswanth nadella wrote:

> In my models file, I have the following unicode method-
>
> def __unicode__(self):
> return u'%s %s %s %s %s %s' % (self.first_name, self.last_name,
> self.course, self.lab, self.start_time, self.end_time)
>
> How can I have another unicode method which will return only first_name
> and last_name? I understand unicode is a constructor. So is there any
> alternative for this?
>
> --
> 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.
>
>
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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-Tastypie and MySQL

2013-06-14 Thread Sithembewena Lloyd Dube
Much better. I don't think that you have to put quotes when you define
player_club. Just go, player_club = models.ForeignKey(Club) - you want to
pass the Club model, not a string.

Regarding the question, if the player can only belong to one club, then a
foreignkey relationship is correct because it's a ManyToOne (Many Players,
One Club). If the player can belong to many clubs, and a club can have many
players, then use a ManyToMany relationship (Many Players in one Club, Many
Clubs for One Player).

See the following, imagine that the Article is a Player and the Publication
is a Club:
https://docs.djangoproject.com/en/1.5/topics/db/examples/many_to_many/


On Fri, Jun 14, 2013 at 6:20 PM, Hélio Miranda  wrote:

> Ok, so what I did was this:
> Código (Python):
> class Player(models.Model):
> player_name = models.CharField(max_length=200)
> player_age = models.CharField(max_length=200)
> player_club = models.ForeignKey('Club')
>
> class Club(models.Model):
> club_name = models.CharField(max_length=200)
>
> It seems that it is working, but I'm not here set up a many to many.
>
> I have to add the option ManyToManyField at some place?
> Am I wrong?
>
> --
> 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.
>
>
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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: Newbie with Demo issues

2013-06-14 Thread Sithembewena Lloyd Dube
Hi Strat,

Tom is right - the issue is the name of the view in your template. Reverse
takes the name of your view and builds it's url. In this case, you are
calling the view 'detail/' (with a trailing slash) instead of 'detail'.

Cheers,
Lloyd


On Fri, Jun 14, 2013 at 3:42 PM, Tom Evans  wrote:

> On Fri, Jun 14, 2013 at 10:12 AM, Strat Parrott 
> wrote:
> >
> >
> > I have done the tutorial three times and everything is fine up until I
> get
> > to Tutorial 3
> > https://docs.djangoproject.com/en/1.5/intro/tutorial03/
> >
> >
> > I must be missing something but at this point I've done it all three
> times
> > so I'm not sure what the issue is. I've tried looking up solutions to 'No
> > reverse' and they are beyond me at this time.
> >
> >
> > >>>
> >
> > Now let’s update our index view in polls/views.py to use the template:
> >
> > from django.http import HttpResponse
> > from django.template import Context, loader
> >
> > from polls.models import Poll
> >
> > def index(request):
> > latest_poll_list = Poll.objects.order_by('-pub_date')[:5]
> > template = loader.get_template('polls/index.html')
> > context = Context({
> > 'latest_poll_list': latest_poll_list,
> > })
> > return HttpResponse(template.render(context))
> >
> > That code loads the template called polls/index.html and passes it a
> > context. The context is a dictionary mapping template variable names to
> > Python objects.
> >
> > Load the page by pointing your browser at “/polls/”, and you should see a
> > bulleted-list containing the “What’s up” poll from Tutorial 1. The link
> > points to the poll’s detail page.
> >
> > <<<
> >
> >
> > Once I set that view I get
> >
> >
> > NoReverseMatch at /polls/
> >
> > Reverse for 'detail/' with arguments '(2L,)' and keyword arguments '{}'
> > not found.
> >
> > Request Method:GET
> > Request URL:http://127.0.0.1:8000/polls/
> > Django Version:1.5.1
> > Exception Type:NoReverseMatch
> > Exception Value:
> >
> > Reverse for 'detail/' with arguments '(2L,)' and keyword arguments '{}'
> > not found.
>
>
> What name did you give the url in your urls.py? Was it "detail/" or
> was it "detail".
>
> 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.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>


-- 
Regards,
Sithu Lloyd Dube

-- 
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-Tastypie and MySQL

2013-06-14 Thread Sithembewena Lloyd Dube
I meant, delete the PlayerClub linking table/ model. The foreignkey
relationship takes care of that need.


On Fri, Jun 14, 2013 at 4:41 PM, Sithembewena Lloyd Dube
<zebr...@gmail.com>wrote:

> Hey,
>
> The player belongs to a club. So in the player model you should have
>
> player_club = models.ForeignKey(Club)
>
> then remove the foreign key in the Club model. Also, notice casing - your
> variable names should be lowercase and if it's more than one word, join it
> with underscores. It's Python convention.
>
>
> On Fri, Jun 14, 2013 at 2:51 PM, Hélio Miranda <helio...@gmail.com> wrote:
>
>> After reading a bit what I did was the following:
>> Código (Python):
>> from django.db import models
>> class Player(models.Model):
>> #idPlayer = models.AutoField(primary_key=True)
>> PlayerName = models.CharField(max_length=200)
>> PlayerAge = models.CharField(max_length=200)
>> #Clubs = models.ManyToManyField('Club', through='PlayerClub', null =
>> True, blank = True)
>>
>> class Club(models.Model):
>> #idClub = models.AutoField(primary_key=True)
>> ClubName = models.CharField(max_length=200)
>> Players = models.ManyToManyField(Player, through='PlayerClub')
>>
>> class PlayerClub(models.Model):
>> Player = models.ForeignKey(Player)
>> Club = models.ForeignKey(Club)
>>
>> But for example when I am inserting the player wanted to say that club he
>> belongs, as is how do I right?
>> What I wanted to do was enter the club, and when I select the player to
>> enter the club he belongs.
>> When to see the player, the data comes from the player and the club that
>> belongs to consult a club and when I say that players belong to this club.
>> I'm going the right way?
>>
>> --
>> 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.
>>
>>
>>
>
>
>
> --
> Regards,
> Sithu Lloyd Dube
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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-Tastypie and MySQL

2013-06-14 Thread Sithembewena Lloyd Dube
Hey,

The player belongs to a club. So in the player model you should have

player_club = models.ForeignKey(Club)

then remove the foreign key in the Club model. Also, notice casing - your
variable names should be lowercase and if it's more than one word, join it
with underscores. It's Python convention.


On Fri, Jun 14, 2013 at 2:51 PM, Hélio Miranda  wrote:

> After reading a bit what I did was the following:
> Código (Python):
> from django.db import models
> class Player(models.Model):
> #idPlayer = models.AutoField(primary_key=True)
> PlayerName = models.CharField(max_length=200)
> PlayerAge = models.CharField(max_length=200)
> #Clubs = models.ManyToManyField('Club', through='PlayerClub', null =
> True, blank = True)
>
> class Club(models.Model):
> #idClub = models.AutoField(primary_key=True)
> ClubName = models.CharField(max_length=200)
> Players = models.ManyToManyField(Player, through='PlayerClub')
>
> class PlayerClub(models.Model):
> Player = models.ForeignKey(Player)
> Club = models.ForeignKey(Club)
>
> But for example when I am inserting the player wanted to say that club he
> belongs, as is how do I right?
> What I wanted to do was enter the club, and when I select the player to
> enter the club he belongs.
> When to see the player, the data comes from the player and the club that
> belongs to consult a club and when I say that players belong to this club.
> I'm going the right way?
>
> --
> 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.
>
>
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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: Using Fabric to clear database records

2013-06-14 Thread Sithembewena Lloyd Dube
Thank you, Avraham.


On Fri, Jun 14, 2013 at 2:26 PM, Avraham Serour <tovm...@gmail.com> wrote:

> manage.py flush
>
>
> On Fri, Jun 14, 2013 at 3:16 PM, Sithembewena Lloyd Dube <
> zebr...@gmail.com> wrote:
>
>> Greetings,
>>
>> I've got a Django 1.5.1. project where I have a Video model (basically
>> saving video metadata). I would like to create a fabfile in my project
>> folder so that when I run 'fab production refresh', the list of videos
>> saved in the production environment (Amazon EC2) should be cleared out and
>> any new videos added should have ids starting from 1 again.
>>
>> Any ideas on implementing this?
>>
>> --
>> Regards,
>> Sithu Lloyd Dube
>>
>> --
>> 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.
>
>
>



-- 
Regards,
Sithu Lloyd Dube

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




Using Fabric to clear database records

2013-06-14 Thread Sithembewena Lloyd Dube
Greetings,

I've got a Django 1.5.1. project where I have a Video model (basically
saving video metadata). I would like to create a fabfile in my project
folder so that when I run 'fab production refresh', the list of videos
saved in the production environment (Amazon EC2) should be cleared out and
any new videos added should have ids starting from 1 again.

Any ideas on implementing this?

-- 
Regards,
Sithu Lloyd Dube

-- 
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-Tastypie and MySQL

2013-06-14 Thread Sithembewena Lloyd Dube
Hi Hélio,

I happen to be using Tastypie for the first time as well and so far, the
documentation is comprehensive enough. You could start here:

http://django-tastypie.readthedocs.org/en/latest/tutorial.html
http://django-tastypie.readthedocs.org/en/latest/cookbook.html
http://django-tastypie.readthedocs.org/en/latest/resources.html#id11

Just FYI, the documentation assumes that one has working knowledge of
Django.


On Thu, Jun 13, 2013 at 4:16 PM, Hélio Miranda  wrote:

> I'm trying to make an application using django and mysql tastypie.
> Does anyone have any examples using the three technologies that can tell
> me for me to see, and follow me?
>
> thank you
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving 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.
>
>
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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: Please help me in Django

2013-06-10 Thread Sithembewena Lloyd Dube
Start with the Django installation guide and tutorial. They will show you
everything you need to know to get started.

https://docs.djangoproject.com/en/1.5/intro/install/
https://docs.djangoproject.com/en/1.5/intro/tutorial01/


On Mon, Jun 10, 2013 at 12:57 PM, Abhimanyu Choithramani <
life.abhi.l...@gmail.com> wrote:

> I downloaded Python 2.7.5 and it started working.
> And I downloaded Django 1.5.1 BUT I am not being able to start it.
> Can someone please guide me step by step..
> PLEASE please please..
>
> Would be obliged if I also get a voice guidance over Skype.
>  my skype id is:  abhimanyu.choithramani89
>
> --
> 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.
>
>
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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: Can´t get Django Administration page to show

2013-06-05 Thread Sithembewena Lloyd Dube
You're welcome, Oliver :-)

Regards,
Sithu


On Wed, Jun 5, 2013 at 6:51 PM, Oliver Hilmarsson <
oliver.hilmars...@gmail.com> wrote:

> Thanks, Sithu, I didn´t uncomment the lines in urls.py.  It´s working now
> :o)
>
> Regards,
> Óliver
>
>
> On Wednesday, June 5, 2013 11:47:49 AM UTC, Oliver Hilmarsson wrote:
>>
>> I´m finished part 1 in django tutorial https://docs.**
>> djangoproject.com/en/dev/**intro/tutorial01/
>>
>>
>> Everything worked great, but starting in part 2 I can´t get the admin
>> page to show up.  I always just get the initial "It worked! Congratulations
>> on your first Django-powered page" page when I go to
>> http://127.0.0.1:8000/**admin/ 
>>
>> Any help would be great, 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.
>
>
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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: Can´t get Django Administration page to show

2013-06-05 Thread Sithembewena Lloyd Dube
Hi Oliver,

please provide more information. Did you follow all steps, such as: add
your app/s to INSTALLED_APPS in your settings file, run the manage.py
syncdb command, create an admin.py file where you register your model/s,
comment out the lines that activate your admin site in urls.py?


On Wed, Jun 5, 2013 at 1:47 PM, Oliver Hilmarsson <
oliver.hilmars...@gmail.com> wrote:

> I´m finished part 1 in django tutorial
> https://docs.djangoproject.com/en/dev/intro/tutorial01/
>
> Everything worked great, but starting in part 2 I can´t get the admin page
> to show up.  I always just get the initial "It worked! Congratulations on
> your first Django-powered page" page when I go to
> http://127.0.0.1:8000/admin/
>
> Any help would be great, 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.
>
>
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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: Use different apps or not?

2013-05-13 Thread Sithembewena Lloyd Dube
You're welcome. Enjoy the book!


On Sun, May 12, 2013 at 9:54 PM, Philippe Schraepen <
schraepen.phili...@gmail.com> wrote:

> Thanks for the clarification!
> I'll definitely read the book!
>
> On Saturday, May 11, 2013 12:28:50 AM UTC, Lloyd Dube wrote:
>
>> Hi Phillipe,
>>
>> I think that it really depends on how modular you would like your Django
>> project to be. Do you want the stats generation functionality to be
>> separately pluggable from the pie-charting functionality? Is your
>> gather_data app large enough (number of models) to warrant breaking it
>> down? If so, perhaps you could separate the apps. If not, you might want to
>> just have one.
>>
>> Django apps are really Python packages. Do not worry about how you will
>> pass data "between" them - if they are enabled in your INSTALLED_APPS
>> global variable in settings.py, they will be loaded and you can import each
>> from the other in your views.py file or wherever you need to import them,
>> then call functions from each as you require and pass the necessary
>> arguments.
>>
>> A good place to look for this sort of advice is Daniel Greenfeld and
>> Audrey Roy's new book found at https://django.2scoops.org/ (see Chapter
>> 4: ''Fundamentals of Django App Design") . In it, they say (quote): "In
>> essence, each app should be tightly focused on its task. If an app can’t be
>> explained in a single
>> sentence of moderate length, or you need to say ‘and’ more than once, it
>> probably means the app is
>> too big and should be broken up.
>> "
>>
>>
>> On Sat, May 11, 2013 at 12:45 AM, Philippe Schraepen <
>> schraepen...@gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> I'm new to Python and Django so don't be to hard on me please :)
>>>
>>> I'm writing a Django project which analyses your music folders, gives
>>> back statistics about it (like file-extentions, mp3 bitrate, number of
>>> unique artists,...) and generates pie charts of these stats.
>>>
>>> My project currently consists of one 'gather_data' app which gathers the
>>> necessary stats-data from my music libary. Now I want to create pie charts
>>> of this data with the help of Mathplotlib.
>>>
>>> Now here are my three questions:
>>> -Should I create a new 'piechart' app to create the pie charts or should
>>> I just add another function to my first gather_data app?
>>> -If I should use a different app for this, how can I let Django load the
>>> first 'gather_data' app, and after this load the 'piechart' app?
>>> -In case you guys recommend using a second app, should I move the data
>>> between the two apps with the help of session variables?
>>>
>>> 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...@**googlegroups.com.
>>> To post to this group, send email to django...@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
>>> .
>>>
>>>
>>>
>>
>>
>>
>> --
>> Regards,
>> Sithu Lloyd Dube
>>
>  --
> 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.
>
>
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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: Use different apps or not?

2013-05-10 Thread Sithembewena Lloyd Dube
Hi Philippe,

I think that it really depends on how modular you would like your Django
project to be. Do you want the stats generation functionality to be
separately pluggable from the pie-charting functionality? Is your
gather_data app large enough (number of models) to warrant breaking it
down? If so, perhaps you could separate the apps. If not, you might want to
just have one.

A good place to look for this sort of advice is Daniel Greenfeld and Audrey
Roy's new book found at https://django.2scoops.org/ (see Chapter 4:
''Fundamentals of Django App Design") . In it, they say (quote): "In
essence, each app should be tightly focused on its task. If an app can’t be
explained in a single
sentence of moderate length, or you need to say ‘and’ more than once, it
probably means the app is
too big and should be broken up.


On Sat, May 11, 2013 at 2:35 AM, Sithembewena Lloyd Dube
<zebr...@gmail.com>wrote:

> By the way, the book mentioned above - "Two Scoops of Django" - makes very
> good reading for Django in general. I believe a good way to get apps
> talking to each other is through the use urls.py configurations in
> conjunction with views. More on that in the official Django tutorial.
>
>
> On Sat, May 11, 2013 at 2:28 AM, Sithembewena Lloyd Dube <
> zebr...@gmail.com> wrote:
>
>> Hi Phillipe,
>>
>> I think that it really depends on how modular you would like your Django
>> project to be. Do you want the stats generation functionality to be
>> separately pluggable from the pie-charting functionality? Is your
>> gather_data app large enough (number of models) to warrant breaking it
>> down? If so, perhaps you could separate the apps. If not, you might want to
>> just have one.
>>
>> Django apps are really Python packages. Do not worry about how you will
>> pass data "between" them - if they are enabled in your INSTALLED_APPS
>> global variable in settings.py, they will be loaded and you can import each
>> from the other in your views.py file or wherever you need to import them,
>> then call functions from each as you require and pass the necessary
>> arguments.
>>
>> A good place to look for this sort of advice is Daniel Greenfeld and
>> Audrey Roy's new book found at https://django.2scoops.org/ (see Chapter
>> 4: ''Fundamentals of Django App Design") . In it, they say (quote): "In
>> essence, each app should be tightly focused on its task. If an app can’t be
>> explained in a single
>> sentence of moderate length, or you need to say ‘and’ more than once, it
>> probably means the app is
>> too big and should be broken up.
>> "
>>
>>
>> On Sat, May 11, 2013 at 12:45 AM, Philippe Schraepen <
>> schraepen.phili...@gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> I'm new to Python and Django so don't be to hard on me please :)
>>>
>>> I'm writing a Django project which analyses your music folders, gives
>>> back statistics about it (like file-extentions, mp3 bitrate, number of
>>> unique artists,...) and generates pie charts of these stats.
>>>
>>> My project currently consists of one 'gather_data' app which gathers the
>>> necessary stats-data from my music libary. Now I want to create pie charts
>>> of this data with the help of Mathplotlib.
>>>
>>> Now here are my three questions:
>>> -Should I create a new 'piechart' app to create the pie charts or should
>>> I just add another function to my first gather_data app?
>>> -If I should use a different app for this, how can I let Django load the
>>> first 'gather_data' app, and after this load the 'piechart' app?
>>> -In case you guys recommend using a second app, should I move the data
>>> between the two apps with the help of session variables?
>>>
>>> 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.
>>>
>>>
>>>
>>
>>
>>
>> --
>> Regards,
>> Sithu Lloyd Dube
>>
>
>
>
> --
> Regards,
> Sithu Lloyd Dube
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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: Use different apps or not?

2013-05-10 Thread Sithembewena Lloyd Dube
By the way, the book mentioned above - "Two Scoops of Django" - makes very
good reading for Django in general. I believe a good way to get apps
talking to each other is through the use urls.py configurations in
conjunction with views. More on that in the official Django tutorial.


On Sat, May 11, 2013 at 2:28 AM, Sithembewena Lloyd Dube
<zebr...@gmail.com>wrote:

> Hi Phillipe,
>
> I think that it really depends on how modular you would like your Django
> project to be. Do you want the stats generation functionality to be
> separately pluggable from the pie-charting functionality? Is your
> gather_data app large enough (number of models) to warrant breaking it
> down? If so, perhaps you could separate the apps. If not, you might want to
> just have one.
>
> Django apps are really Python packages. Do not worry about how you will
> pass data "between" them - if they are enabled in your INSTALLED_APPS
> global variable in settings.py, they will be loaded and you can import each
> from the other in your views.py file or wherever you need to import them,
> then call functions from each as you require and pass the necessary
> arguments.
>
> A good place to look for this sort of advice is Daniel Greenfeld and
> Audrey Roy's new book found at https://django.2scoops.org/ (see Chapter
> 4: ''Fundamentals of Django App Design") . In it, they say (quote): "In
> essence, each app should be tightly focused on its task. If an app can’t be
> explained in a single
> sentence of moderate length, or you need to say ‘and’ more than once, it
> probably means the app is
> too big and should be broken up.
> "
>
>
> On Sat, May 11, 2013 at 12:45 AM, Philippe Schraepen <
> schraepen.phili...@gmail.com> wrote:
>
>> Hi all,
>>
>> I'm new to Python and Django so don't be to hard on me please :)
>>
>> I'm writing a Django project which analyses your music folders, gives
>> back statistics about it (like file-extentions, mp3 bitrate, number of
>> unique artists,...) and generates pie charts of these stats.
>>
>> My project currently consists of one 'gather_data' app which gathers the
>> necessary stats-data from my music libary. Now I want to create pie charts
>> of this data with the help of Mathplotlib.
>>
>> Now here are my three questions:
>> -Should I create a new 'piechart' app to create the pie charts or should
>> I just add another function to my first gather_data app?
>> -If I should use a different app for this, how can I let Django load the
>> first 'gather_data' app, and after this load the 'piechart' app?
>> -In case you guys recommend using a second app, should I move the data
>> between the two apps with the help of session variables?
>>
>> 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.
>>
>>
>>
>
>
>
> --
> Regards,
> Sithu Lloyd Dube
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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: Use different apps or not?

2013-05-10 Thread Sithembewena Lloyd Dube
By the way, the book mentioned above - "Two Scoops of Django" - makes very
good reading for Django in general. I believe a good way to get apps
talking to each other is through urls.py configurations. More on that in
the official Django tutorial.


On Sat, May 11, 2013 at 2:28 AM, Sithembewena Lloyd Dube
<zebr...@gmail.com>wrote:

> Hi Phillipe,
>
> I think that it really depends on how modular you would like your Django
> project to be. Do you want the stats generation functionality to be
> separately pluggable from the pie-charting functionality? Is your
> gather_data app large enough (number of models) to warrant breaking it
> down? If so, perhaps you could separate the apps. If not, you might want to
> just have one.
>
> Django apps are really Python packages. Do not worry about how you will
> pass data "between" them - if they are enabled in your INSTALLED_APPS
> global variable in settings.py, they will be loaded and you can import each
> from the other in your views.py file or wherever you need to import them,
> then call functions from each as you require and pass the necessary
> arguments.
>
> A good place to look for this sort of advice is Daniel Greenfeld and
> Audrey Roy's new book found at https://django.2scoops.org/ (see Chapter
> 4: ''Fundamentals of Django App Design") . In it, they say (quote): "In
> essence, each app should be tightly focused on its task. If an app can’t be
> explained in a single
> sentence of moderate length, or you need to say ‘and’ more than once, it
> probably means the app is
> too big and should be broken up.
> "
>
>
> On Sat, May 11, 2013 at 12:45 AM, Philippe Schraepen <
> schraepen.phili...@gmail.com> wrote:
>
>> Hi all,
>>
>> I'm new to Python and Django so don't be to hard on me please :)
>>
>> I'm writing a Django project which analyses your music folders, gives
>> back statistics about it (like file-extentions, mp3 bitrate, number of
>> unique artists,...) and generates pie charts of these stats.
>>
>> My project currently consists of one 'gather_data' app which gathers the
>> necessary stats-data from my music libary. Now I want to create pie charts
>> of this data with the help of Mathplotlib.
>>
>> Now here are my three questions:
>> -Should I create a new 'piechart' app to create the pie charts or should
>> I just add another function to my first gather_data app?
>> -If I should use a different app for this, how can I let Django load the
>> first 'gather_data' app, and after this load the 'piechart' app?
>> -In case you guys recommend using a second app, should I move the data
>> between the two apps with the help of session variables?
>>
>> 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.
>>
>>
>>
>
>
>
> --
> Regards,
> Sithu Lloyd Dube
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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: Use different apps or not?

2013-05-10 Thread Sithembewena Lloyd Dube
By the way, the book mentioned above - "Two Scoops of Django" - makes very
good reading for Django in general.


On Sat, May 11, 2013 at 2:28 AM, Sithembewena Lloyd Dube
<zebr...@gmail.com>wrote:

> Hi Phillipe,
>
> I think that it really depends on how modular you would like your Django
> project to be. Do you want the stats generation functionality to be
> separately pluggable from the pie-charting functionality? Is your
> gather_data app large enough (number of models) to warrant breaking it
> down? If so, perhaps you could separate the apps. If not, you might want to
> just have one.
>
> Django apps are really Python packages. Do not worry about how you will
> pass data "between" them - if they are enabled in your INSTALLED_APPS
> global variable in settings.py, they will be loaded and you can import each
> from the other in your views.py file or wherever you need to import them,
> then call functions from each as you require and pass the necessary
> arguments.
>
> A good place to look for this sort of advice is Daniel Greenfeld and
> Audrey Roy's new book found at https://django.2scoops.org/ (see Chapter
> 4: ''Fundamentals of Django App Design") . In it, they say (quote): "In
> essence, each app should be tightly focused on its task. If an app can’t be
> explained in a single
> sentence of moderate length, or you need to say ‘and’ more than once, it
> probably means the app is
> too big and should be broken up.
> "
>
>
> On Sat, May 11, 2013 at 12:45 AM, Philippe Schraepen <
> schraepen.phili...@gmail.com> wrote:
>
>> Hi all,
>>
>> I'm new to Python and Django so don't be to hard on me please :)
>>
>> I'm writing a Django project which analyses your music folders, gives
>> back statistics about it (like file-extentions, mp3 bitrate, number of
>> unique artists,...) and generates pie charts of these stats.
>>
>> My project currently consists of one 'gather_data' app which gathers the
>> necessary stats-data from my music libary. Now I want to create pie charts
>> of this data with the help of Mathplotlib.
>>
>> Now here are my three questions:
>> -Should I create a new 'piechart' app to create the pie charts or should
>> I just add another function to my first gather_data app?
>> -If I should use a different app for this, how can I let Django load the
>> first 'gather_data' app, and after this load the 'piechart' app?
>> -In case you guys recommend using a second app, should I move the data
>> between the two apps with the help of session variables?
>>
>> 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.
>>
>>
>>
>
>
>
> --
> Regards,
> Sithu Lloyd Dube
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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: Use different apps or not?

2013-05-10 Thread Sithembewena Lloyd Dube
Hi Phillipe,

I think that it really depends on how modular you would like your Django
project to be. Do you want the stats generation functionality to be
separately pluggable from the pie-charting functionality? Is your
gather_data app large enough (number of models) to warrant breaking it
down? If so, perhaps you could separate the apps. If not, you might want to
just have one.

Django apps are really Python packages. Do not worry about how you will
pass data "between" them - if they are enabled in your INSTALLED_APPS
global variable in settings.py, they will be loaded and you can import each
from the other in your views.py file or wherever you need to import them,
then call functions from each as you require and pass the necessary
arguments.

A good place to look for this sort of advice is Daniel Greenfeld and Audrey
Roy's new book found at https://django.2scoops.org/ (see Chapter 4:
''Fundamentals of Django App Design") . In it, they say (quote): "In
essence, each app should be tightly focused on its task. If an app can’t be
explained in a single
sentence of moderate length, or you need to say ‘and’ more than once, it
probably means the app is
too big and should be broken up.
"


On Sat, May 11, 2013 at 12:45 AM, Philippe Schraepen <
schraepen.phili...@gmail.com> wrote:

> Hi all,
>
> I'm new to Python and Django so don't be to hard on me please :)
>
> I'm writing a Django project which analyses your music folders, gives back
> statistics about it (like file-extentions, mp3 bitrate, number of unique
> artists,...) and generates pie charts of these stats.
>
> My project currently consists of one 'gather_data' app which gathers the
> necessary stats-data from my music libary. Now I want to create pie charts
> of this data with the help of Mathplotlib.
>
> Now here are my three questions:
> -Should I create a new 'piechart' app to create the pie charts or should I
> just add another function to my first gather_data app?
> -If I should use a different app for this, how can I let Django load the
> first 'gather_data' app, and after this load the 'piechart' app?
> -In case you guys recommend using a second app, should I move the data
> between the two apps with the help of session variables?
>
> 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.
>
>
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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: {% url %} template tag not resolving app url in template

2013-04-09 Thread Sithembewena Lloyd Dube
Issue resolved.

The problem was a similar usage of a url template tag without a namespace -
in the same template. All I had to do was check the correct line number in
the template.

Thanks to all. Time for a walk outside.


On Tue, Apr 9, 2013 at 5:36 PM, Sithembewena Lloyd Dube
<zebr...@gmail.com>wrote:

> New trace below: I am stumped.
>
> Request Method: GET  Request URL: http://127.0.0.1:8000/contact_us/  Django
> Version: 1.5.1  Exception Type: NoReverseMatch  Exception Value:
>
> Reverse for 'contact_us' with arguments '()' and keyword arguments '{}' not 
> found.
>
>
>
>
> On Tue, Apr 9, 2013 at 5:34 PM, Sithembewena Lloyd Dube <zebr...@gmail.com
> > wrote:
>
>> Hi all,
>>
>> I have the correct url, but the dev server seems to be caching my old
>> template, even though I updated it to include namespacing. I have restarted
>> the server and cleared my browser cache.
>>
>> contacts
>>
>>
>> On Tue, Apr 9, 2013 at 5:11 PM, Sithembewena Lloyd Dube <
>> zebr...@gmail.com> wrote:
>>
>>> Tom,
>>>
>>> The latter. I did not call reverse explicitly (not yet). I have
>>> implemented namespacing as recommended.
>>>
>>> Contact Us
>>>
>>> Sinister indeed.
>>>
>>>
>>> On Tue, Apr 9, 2013 at 4:59 PM, Tom Evans <tevans...@googlemail.com>wrote:
>>>
>>>> On Tue, Apr 9, 2013 at 3:56 PM, Sithembewena Lloyd Dube
>>>> <zebr...@gmail.com> wrote:
>>>> > Hi Tom,
>>>> >
>>>> > I see what you meant. In the documentation (tutorial) namespacing is
>>>> used in
>>>> > the form example. Even with that in place, I am having trouble.
>>>> >
>>>> > I did notice that I am not getting a 404 error instead, because the
>>>> url
>>>> > being built is dumplicated. Please see the trace below (errant line
>>>> ibeing
>>>> > #8):
>>>> >
>>>> > Using the URLconf defined in tjbengineeringsite.urls, Django tried
>>>> these URL
>>>> > patterns, in this order:
>>>> >
>>>> > ^$ [name='plant_refurbishment']
>>>> > ^about_us/$ [name='about_us']
>>>> > ^instrumentation_and_control/$ [name='instrumentation_and_control']
>>>> > ^machining/$ [name='machining']
>>>> > ^industrial_solutions/$ [name='industrial_solutions']
>>>> > ^trailer_refurbishment/$ [name='trailer_refurbishment']
>>>> > ^trailer_spares/$ [name='trailer_spares']
>>>> > ^contact_us/ ^$ [name='contact_us']
>>>> > ^admin/
>>>> >
>>>> > The current URL, contact_us/contact_us/, didn't match any of these.
>>>> >
>>>>
>>>> Are you saying that this url was the result of calling reverse() (or {%
>>>> url %})?
>>>>
>>>> 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.
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Regards,
>>> Sithu Lloyd Dube
>>>
>>
>>
>>
>> --
>> Regards,
>> Sithu Lloyd Dube
>>
>
>
>
> --
> Regards,
> Sithu Lloyd Dube
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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: {% url %} template tag not resolving app url in template

2013-04-09 Thread Sithembewena Lloyd Dube
Issue resolved.

The problem was a similar usage of a url template tag without a namespace.
All I had to do was check the correct line number in the template.

Thanks to all. Time for a walk outside.


On Tue, Apr 9, 2013 at 5:36 PM, Sithembewena Lloyd Dube
<zebr...@gmail.com>wrote:

> New trace below: I am stumped.
>
> Request Method: GET  Request URL: http://127.0.0.1:8000/contact_us/  Django
> Version: 1.5.1  Exception Type: NoReverseMatch  Exception Value:
>
> Reverse for 'contact_us' with arguments '()' and keyword arguments '{}' not 
> found.
>
>
>
>
> On Tue, Apr 9, 2013 at 5:34 PM, Sithembewena Lloyd Dube <zebr...@gmail.com
> > wrote:
>
>> Hi all,
>>
>> I have the correct url, but the dev server seems to be caching my old
>> template, even though I updated it to include namespacing. I have restarted
>> the server and cleared my browser cache.
>>
>> contacts
>>
>>
>> On Tue, Apr 9, 2013 at 5:11 PM, Sithembewena Lloyd Dube <
>> zebr...@gmail.com> wrote:
>>
>>> Tom,
>>>
>>> The latter. I did not call reverse explicitly (not yet). I have
>>> implemented namespacing as recommended.
>>>
>>> Contact Us
>>>
>>> Sinister indeed.
>>>
>>>
>>> On Tue, Apr 9, 2013 at 4:59 PM, Tom Evans <tevans...@googlemail.com>wrote:
>>>
>>>> On Tue, Apr 9, 2013 at 3:56 PM, Sithembewena Lloyd Dube
>>>> <zebr...@gmail.com> wrote:
>>>> > Hi Tom,
>>>> >
>>>> > I see what you meant. In the documentation (tutorial) namespacing is
>>>> used in
>>>> > the form example. Even with that in place, I am having trouble.
>>>> >
>>>> > I did notice that I am not getting a 404 error instead, because the
>>>> url
>>>> > being built is dumplicated. Please see the trace below (errant line
>>>> ibeing
>>>> > #8):
>>>> >
>>>> > Using the URLconf defined in tjbengineeringsite.urls, Django tried
>>>> these URL
>>>> > patterns, in this order:
>>>> >
>>>> > ^$ [name='plant_refurbishment']
>>>> > ^about_us/$ [name='about_us']
>>>> > ^instrumentation_and_control/$ [name='instrumentation_and_control']
>>>> > ^machining/$ [name='machining']
>>>> > ^industrial_solutions/$ [name='industrial_solutions']
>>>> > ^trailer_refurbishment/$ [name='trailer_refurbishment']
>>>> > ^trailer_spares/$ [name='trailer_spares']
>>>> > ^contact_us/ ^$ [name='contact_us']
>>>> > ^admin/
>>>> >
>>>> > The current URL, contact_us/contact_us/, didn't match any of these.
>>>> >
>>>>
>>>> Are you saying that this url was the result of calling reverse() (or {%
>>>> url %})?
>>>>
>>>> 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.
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Regards,
>>> Sithu Lloyd Dube
>>>
>>
>>
>>
>> --
>> Regards,
>> Sithu Lloyd Dube
>>
>
>
>
> --
> Regards,
> Sithu Lloyd Dube
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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: {% url %} template tag not resolving app url in template

2013-04-09 Thread Sithembewena Lloyd Dube
New trace below: I am stumped.

Request Method: GET  Request URL: http://127.0.0.1:8000/contact_us/  Django
Version: 1.5.1  Exception Type: NoReverseMatch  Exception Value:

Reverse for 'contact_us' with arguments '()' and keyword arguments
'{}' not found.




On Tue, Apr 9, 2013 at 5:34 PM, Sithembewena Lloyd Dube
<zebr...@gmail.com>wrote:

> Hi all,
>
> I have the correct url, but the dev server seems to be caching my old
> template, even though I updated it to include namespacing. I have restarted
> the server and cleared my browser cache.
>
> contacts
>
>
> On Tue, Apr 9, 2013 at 5:11 PM, Sithembewena Lloyd Dube <zebr...@gmail.com
> > wrote:
>
>> Tom,
>>
>> The latter. I did not call reverse explicitly (not yet). I have
>> implemented namespacing as recommended.
>>
>> Contact Us
>>
>> Sinister indeed.
>>
>>
>> On Tue, Apr 9, 2013 at 4:59 PM, Tom Evans <tevans...@googlemail.com>wrote:
>>
>>> On Tue, Apr 9, 2013 at 3:56 PM, Sithembewena Lloyd Dube
>>> <zebr...@gmail.com> wrote:
>>> > Hi Tom,
>>> >
>>> > I see what you meant. In the documentation (tutorial) namespacing is
>>> used in
>>> > the form example. Even with that in place, I am having trouble.
>>> >
>>> > I did notice that I am not getting a 404 error instead, because the url
>>> > being built is dumplicated. Please see the trace below (errant line
>>> ibeing
>>> > #8):
>>> >
>>> > Using the URLconf defined in tjbengineeringsite.urls, Django tried
>>> these URL
>>> > patterns, in this order:
>>> >
>>> > ^$ [name='plant_refurbishment']
>>> > ^about_us/$ [name='about_us']
>>> > ^instrumentation_and_control/$ [name='instrumentation_and_control']
>>> > ^machining/$ [name='machining']
>>> > ^industrial_solutions/$ [name='industrial_solutions']
>>> > ^trailer_refurbishment/$ [name='trailer_refurbishment']
>>> > ^trailer_spares/$ [name='trailer_spares']
>>> > ^contact_us/ ^$ [name='contact_us']
>>> > ^admin/
>>> >
>>> > The current URL, contact_us/contact_us/, didn't match any of these.
>>> >
>>>
>>> Are you saying that this url was the result of calling reverse() (or {%
>>> url %})?
>>>
>>> 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.
>>>
>>>
>>>
>>
>>
>> --
>> Regards,
>> Sithu Lloyd Dube
>>
>
>
>
> --
> Regards,
> Sithu Lloyd Dube
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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: {% url %} template tag not resolving app url in template

2013-04-09 Thread Sithembewena Lloyd Dube
Hi all,

I have the correct url, but the dev server seems to be caching my old
template, even though I updated it to include namespacing. I have restarted
the server and cleared my browser cache.

contacts


On Tue, Apr 9, 2013 at 5:11 PM, Sithembewena Lloyd Dube
<zebr...@gmail.com>wrote:

> Tom,
>
> The latter. I did not call reverse explicitly (not yet). I have
> implemented namespacing as recommended.
>
> Contact Us
>
> Sinister indeed.
>
>
> On Tue, Apr 9, 2013 at 4:59 PM, Tom Evans <tevans...@googlemail.com>wrote:
>
>> On Tue, Apr 9, 2013 at 3:56 PM, Sithembewena Lloyd Dube
>> <zebr...@gmail.com> wrote:
>> > Hi Tom,
>> >
>> > I see what you meant. In the documentation (tutorial) namespacing is
>> used in
>> > the form example. Even with that in place, I am having trouble.
>> >
>> > I did notice that I am not getting a 404 error instead, because the url
>> > being built is dumplicated. Please see the trace below (errant line
>> ibeing
>> > #8):
>> >
>> > Using the URLconf defined in tjbengineeringsite.urls, Django tried
>> these URL
>> > patterns, in this order:
>> >
>> > ^$ [name='plant_refurbishment']
>> > ^about_us/$ [name='about_us']
>> > ^instrumentation_and_control/$ [name='instrumentation_and_control']
>> > ^machining/$ [name='machining']
>> > ^industrial_solutions/$ [name='industrial_solutions']
>> > ^trailer_refurbishment/$ [name='trailer_refurbishment']
>> > ^trailer_spares/$ [name='trailer_spares']
>> > ^contact_us/ ^$ [name='contact_us']
>> > ^admin/
>> >
>> > The current URL, contact_us/contact_us/, didn't match any of these.
>> >
>>
>> Are you saying that this url was the result of calling reverse() (or {%
>> url %})?
>>
>> 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.
>>
>>
>>
>
>
> --
> Regards,
> Sithu Lloyd Dube
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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: {% url %} template tag not resolving app url in template

2013-04-09 Thread Sithembewena Lloyd Dube
Tom,

The latter. I did not call reverse explicitly (not yet). I have implemented
namespacing as recommended.

Contact Us




On Tue, Apr 9, 2013 at 4:59 PM, Tom Evans <tevans...@googlemail.com> wrote:

> On Tue, Apr 9, 2013 at 3:56 PM, Sithembewena Lloyd Dube
> <zebr...@gmail.com> wrote:
> > Hi Tom,
> >
> > I see what you meant. In the documentation (tutorial) namespacing is
> used in
> > the form example. Even with that in place, I am having trouble.
> >
> > I did notice that I am not getting a 404 error instead, because the url
> > being built is dumplicated. Please see the trace below (errant line
> ibeing
> > #8):
> >
> > Using the URLconf defined in tjbengineeringsite.urls, Django tried these
> URL
> > patterns, in this order:
> >
> > ^$ [name='plant_refurbishment']
> > ^about_us/$ [name='about_us']
> > ^instrumentation_and_control/$ [name='instrumentation_and_control']
> > ^machining/$ [name='machining']
> > ^industrial_solutions/$ [name='industrial_solutions']
> > ^trailer_refurbishment/$ [name='trailer_refurbishment']
> > ^trailer_spares/$ [name='trailer_spares']
> > ^contact_us/ ^$ [name='contact_us']
> > ^admin/
> >
> > The current URL, contact_us/contact_us/, didn't match any of these.
> >
>
> Are you saying that this url was the result of calling reverse() (or {%
> url %})?
>
> 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.
>
>
>


-- 
Regards,
Sithu Lloyd Dube

-- 
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: {% url %} template tag not resolving app url in template

2013-04-09 Thread Sithembewena Lloyd Dube
Hi Tom,

I see what you meant. In the documentation (tutorial) namespacing is used
in the form example. Even with that in place, I am having trouble.

I did notice that I am not getting a 404 error instead, because the url
being built is dumplicated. Please see the trace below (errant line ibeing
#8):

 Using the URLconf defined in mysite.urls, Django tried these URL patterns,
in this order:

   1. ^$ [name='plant_refurbishment']
   2. ^about_us/$ [name='about_us']
   3. ^instrumentation_and_control/$ [name='instrumentation_and_control']
   4. ^machining/$ [name='machining']
   5. ^industrial_solutions/$ [name='industrial_solutions']
   6. ^trailer_refurbishment/$ [name='trailer_refurbishment']
   7. ^trailer_spares/$ [name='trailer_spares']
   8. ^contact_us/ ^$ [name='contact_us']
   9. ^admin/

The current URL, contact_us/contact_us/, didn't match any of these.


On Tue, Apr 9, 2013 at 4:43 PM, Sithembewena Lloyd Dube
<zebr...@gmail.com>wrote:

> Thanks, Tom.
>
> I am not sure how you mean? In the contact_us app, I am not explicitly
> calling reverse. I only have the following:
>
> from django.shortcuts import render, reverse
>
> def contact_us(request):
> return render(request, 'contact_us/contact_us.html')
>
>
>
>
> On Tue, Apr 9, 2013 at 4:22 PM, Tom Evans <tevans...@googlemail.com>wrote:
>
>> On Tue, Apr 9, 2013 at 2:31 PM, Sithembewena Lloyd Dube
>> <zebr...@gmail.com> wrote:
>> > Hi everyone,
>> >
>> > I have a project based on the latest Django version (1.5.1.) where I
>> created
>> > a contact_us application. The project has a urls.py file with some url
>> > patterns. The contact_us app implements its own urls.py file
>> (decoupling).
>> > In the project's urls.py file (just above the admin site's url
>> pattern), i
>> > have the following url pattern:
>> >
>> > url(r'^contact_us/', include('contact_us.urls',
>> namespace="contact_us")),
>> >
>> > and in the contact_us app's urls.py file, I have the following url
>> pattern:
>> >
>> > urlpatterns = patterns('',
>> > url(r'^$', views.contact_us, name='contact_us'),
>> > )
>> >
>> > In a template residing in the contact_us app's own templates folder, I
>> use
>> > the url template tag as follows:
>> >
>> > Contact Us
>> >
>> > resulting in the following exception:
>> >
>> > NoReverseMatch at /contact_us/
>> >
>> > Reverse for 'contact_us' with arguments '()' and keyword arguments '{}'
>> not
>> > found.
>> >
>> > Any ideas what I could be missing? I namespaced the contact_us urls
>> include
>> > in the main urls'py file and there is a simple contact_us view in the
>> > contact_us app which renders an existing template.
>> >
>> > Thanks.
>>
>> You've omitted the namespace when reversing the url. Use
>> 'contact_us:contact_us'.
>>
>> 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.
>>
>>
>>
>
>
> --
> Regards,
> Sithu Lloyd Dube
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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: {% url %} template tag not resolving app url in template

2013-04-09 Thread Sithembewena Lloyd Dube
Hi Tom,

I see what you meant. In the documentation (tutorial) namespacing is used
in the form example. Even with that in place, I am having trouble.

I did notice that I am not getting a 404 error instead, because the url
being built is dumplicated. Please see the trace below (errant line ibeing
#8):

 Using the URLconf defined in tjbengineeringsite.urls, Django tried these
URL patterns, in this order:

   1. ^$ [name='plant_refurbishment']
   2. ^about_us/$ [name='about_us']
   3. ^instrumentation_and_control/$ [name='instrumentation_and_control']
   4. ^machining/$ [name='machining']
   5. ^industrial_solutions/$ [name='industrial_solutions']
   6. ^trailer_refurbishment/$ [name='trailer_refurbishment']
   7. ^trailer_spares/$ [name='trailer_spares']
   8. ^contact_us/ ^$ [name='contact_us']
   9. ^admin/

The current URL, contact_us/contact_us/, didn't match any of these.



On Tue, Apr 9, 2013 at 4:43 PM, Sithembewena Lloyd Dube
<zebr...@gmail.com>wrote:

> Thanks, Tom.
>
> I am not sure how you mean? In the contact_us app, I am not explicitly
> calling reverse. I only have the following:
>
> from django.shortcuts import render, reverse
>
> def contact_us(request):
> return render(request, 'contact_us/contact_us.html')
>
>
>
>
> On Tue, Apr 9, 2013 at 4:22 PM, Tom Evans <tevans...@googlemail.com>wrote:
>
>> On Tue, Apr 9, 2013 at 2:31 PM, Sithembewena Lloyd Dube
>> <zebr...@gmail.com> wrote:
>> > Hi everyone,
>> >
>> > I have a project based on the latest Django version (1.5.1.) where I
>> created
>> > a contact_us application. The project has a urls.py file with some url
>> > patterns. The contact_us app implements its own urls.py file
>> (decoupling).
>> > In the project's urls.py file (just above the admin site's url
>> pattern), i
>> > have the following url pattern:
>> >
>> > url(r'^contact_us/', include('contact_us.urls',
>> namespace="contact_us")),
>> >
>> > and in the contact_us app's urls.py file, I have the following url
>> pattern:
>> >
>> > urlpatterns = patterns('',
>> > url(r'^$', views.contact_us, name='contact_us'),
>> > )
>> >
>> > In a template residing in the contact_us app's own templates folder, I
>> use
>> > the url template tag as follows:
>> >
>> > Contact Us
>> >
>> > resulting in the following exception:
>> >
>> > NoReverseMatch at /contact_us/
>> >
>> > Reverse for 'contact_us' with arguments '()' and keyword arguments '{}'
>> not
>> > found.
>> >
>> > Any ideas what I could be missing? I namespaced the contact_us urls
>> include
>> > in the main urls'py file and there is a simple contact_us view in the
>> > contact_us app which renders an existing template.
>> >
>> > Thanks.
>>
>> You've omitted the namespace when reversing the url. Use
>> 'contact_us:contact_us'.
>>
>> 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.
>>
>>
>>
>
>
> --
> Regards,
> Sithu Lloyd Dube
>



-- 
Regards,
Sithu Lloyd Dube

-- 
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: {% url %} template tag not resolving app url in template

2013-04-09 Thread Sithembewena Lloyd Dube
Thanks, Tom.

I am not sure how you mean? In the contact_us app, I am not explicitly
calling reverse. I only have the following:

from django.shortcuts import render, reverse

def contact_us(request):
return render(request, 'contact_us/contact_us.html')




On Tue, Apr 9, 2013 at 4:22 PM, Tom Evans <tevans...@googlemail.com> wrote:

> On Tue, Apr 9, 2013 at 2:31 PM, Sithembewena Lloyd Dube
> <zebr...@gmail.com> wrote:
> > Hi everyone,
> >
> > I have a project based on the latest Django version (1.5.1.) where I
> created
> > a contact_us application. The project has a urls.py file with some url
> > patterns. The contact_us app implements its own urls.py file
> (decoupling).
> > In the project's urls.py file (just above the admin site's url pattern),
> i
> > have the following url pattern:
> >
> > url(r'^contact_us/', include('contact_us.urls', namespace="contact_us")),
> >
> > and in the contact_us app's urls.py file, I have the following url
> pattern:
> >
> > urlpatterns = patterns('',
> > url(r'^$', views.contact_us, name='contact_us'),
> > )
> >
> > In a template residing in the contact_us app's own templates folder, I
> use
> > the url template tag as follows:
> >
> > Contact Us
> >
> > resulting in the following exception:
> >
> > NoReverseMatch at /contact_us/
> >
> > Reverse for 'contact_us' with arguments '()' and keyword arguments '{}'
> not
> > found.
> >
> > Any ideas what I could be missing? I namespaced the contact_us urls
> include
> > in the main urls'py file and there is a simple contact_us view in the
> > contact_us app which renders an existing template.
> >
> > Thanks.
>
> You've omitted the namespace when reversing the url. Use
> 'contact_us:contact_us'.
>
> 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.
>
>
>


-- 
Regards,
Sithu Lloyd Dube

-- 
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: {% url %} template tag not resolving app url in template

2013-04-09 Thread Sithembewena Lloyd Dube
Hi Andrey,

Thanks for the suggestion. I tried that with no success. According to the
current documentation, that would be an issue with versions older than 1.5?
(where one would use url from future).

For some reason, i suspect that the url tag cannot resolve a url for a view
in a "plugged-in" app? (base url + app-view url?).


On Tue, Apr 9, 2013 at 3:40 PM, Andrey Kostakov <b...@dzen.ws> wrote:

> Try this without quotes:
> Contact Us
>
> On Tue, Apr 9, 2013 at 5:31 PM, Sithembewena Lloyd Dube
> <zebr...@gmail.com> wrote:
> > Hi everyone,
> >
> > I have a project based on the latest Django version (1.5.1.) where I
> created
> > a contact_us application. The project has a urls.py file with some url
> > patterns. The contact_us app implements its own urls.py file
> (decoupling).
> > In the project's urls.py file (just above the admin site's url pattern),
> i
> > have the following url pattern:
> >
> > url(r'^contact_us/', include('contact_us.urls', namespace="contact_us")),
> >
> > and in the contact_us app's urls.py file, I have the following url
> pattern:
> >
> > urlpatterns = patterns('',
> > url(r'^$', views.contact_us, name='contact_us'),
> > )
> >
> > In a template residing in the contact_us app's own templates folder, I
> use
> > the url template tag as follows:
> >
> > Contact Us
> >
> > resulting in the following exception:
> >
> > NoReverseMatch at /contact_us/
> >
> > Reverse for 'contact_us' with arguments '()' and keyword arguments '{}'
> not
> > found.
> >
> > Any ideas what I could be missing? I namespaced the contact_us urls
> include
> > in the main urls'py file and there is a simple contact_us view in the
> > contact_us app which renders an existing template.
> >
> > Thanks.
> > --
> > Regards,
> > Sithu Lloyd Dube
> >
> > --
> > 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.
> >
> >
>
>
>
> --
> Best regards,
> Andrey Kostakov
> Email/Gtalk: b...@dzen.ws
>
> --
> 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.
>
>
>


-- 
Regards,
Sithu Lloyd Dube

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




{% url %} template tag not resolving app url in template

2013-04-09 Thread Sithembewena Lloyd Dube
Hi everyone,

I have a project based on the latest Django version (1.5.1.) where I
created a contact_us application. The project has a urls.py file with some
url patterns. The contact_us app implements its own urls.py file
(decoupling). In the project's urls.py file (just above the admin site's
url pattern), i have the following url pattern:

url(r'^contact_us/', include('contact_us.urls', namespace="contact_us")),

and in the contact_us app's urls.py file, I have the following url pattern:

urlpatterns = patterns('',
url(r'^$', views.contact_us, name='contact_us'),
)

In a template residing in the contact_us app's own templates folder, I use
the url template tag as follows:

Contact Us

resulting in the following exception:

*NoReverseMatch at /contact_us/*

Reverse for 'contact_us' with arguments '()' and keyword arguments '{}' not
found.

Any ideas what I could be missing? I namespaced the contact_us urls include
in the main urls'py file and there is a simple contact_us view in the
contact_us app which renders an existing template.

Thanks.
-- 
Regards,
Sithu Lloyd Dube

-- 
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: What's your opinion about nested apps?

2013-01-12 Thread Sithembewena Lloyd Dube
I also suspect that this sort of nesting will affect plugability of apps -
what is wrong with a simple approach?

On Sat, Jan 12, 2013 at 11:02 PM, Sam Solomon  wrote:

> We've not had any trouble and we have a very nested structure:
>
> project/main_app/sub_apps/
>
> project has manage.py, main_app has main urls.py, etc.
>
> sub_apps have models/views/urls, etc.
>
> We also have:
>
> project/main_app/utils/other_apps/ with no issues (and utils and
> other_apps both have models, even though utils/models.py may not have been
> the best decision).
>
> Also note that many third party apps do stuff like this too
> (django-allauth is one that comes to mind).
>
> --
> 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/-/XOwYE_Yj9vQJ.
>
> 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,
Sithu Lloyd Dube

-- 
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: What's your opinion about nested apps?

2013-01-12 Thread Sithembewena Lloyd Dube
Why does this sort of nesting even occur? Why not use the generic Django
project/ app structure, where you have a project and apps under a project,
instead of apps under other apps? Why would it ever be necessary to 'nest'
apps in other apps?

On Sat, Jan 12, 2013 at 11:02 PM, Sam Solomon  wrote:

> We've not had any trouble and we have a very nested structure:
>
> project/main_app/sub_apps/
>
> project has manage.py, main_app has main urls.py, etc.
>
> sub_apps have models/views/urls, etc.
>
> We also have:
>
> project/main_app/utils/other_apps/ with no issues (and utils and
> other_apps both have models, even though utils/models.py may not have been
> the best decision).
>
> Also note that many third party apps do stuff like this too
> (django-allauth is one that comes to mind).
>
> --
> 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/-/XOwYE_Yj9vQJ.
>
> 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,
Sithu Lloyd Dube

-- 
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-20 Thread Sithembewena Lloyd Dube
"Working with a framework is like any relationship... you make sacrifices..
*the love you get back depends on what you put in*.." - hehe ... moving on
swiftly ...

Vis. the bears, I can only recommend bear spray - and a good one, at that.

To address the queries at hand - coming from several languages and
platforms, I was asking the same questions a few years ago. I evaluated
other popular MVC frameworks and stuck with Django. Not a regret had to
date.

- Django "just works" for a large share of "general" uses. The admin app is
a boon for those not too keen on reinventing the wheel when it comes to
"must-have" admin site functionality
- Django documentation is the amongst the best of any framework docs I have
had to consult. It is updated frequently and is never lagging too far back
from the current framework release. I will refrain from mentioning the
names of certain alternatives in this regard
- the Django community is sizeable and very active
- Django plays well on an array of development platforms. Linux, Windows,
Mac? Behaviour is consistent. This would be attributable in no small part
to Python's own cross-platform usability.
- Python. I do appreciate that the right tool must be used for each job,
but I am also still waiting to see that tool which would outdo Python in
most problem domains, at least relating to developer productivity.

On Thu, Dec 20, 2012 at 4:34 PM, patrick wrote:

> Two good resources off the top of my head (among many others that will
> probably be mentioned):
>
> Buddy Lindsey's GoDjango screencasts, they cover some good ground:
> http://godjango.com
>
> Also like Kenneth Love and Chris Jones' articles at  http://brack3t.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/-/-pgwVdiekTYJ.
>
> 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,
Sithu Lloyd Dube

-- 
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-20 Thread Sithembewena Lloyd Dube
"Working with a framework is like any relationship... you make sacrifices..
*the love you get back depends on what you put in*.." - hehe ... moving on
swiftly ...

Vis. the bears, I can only recommend bear spray, or a dictionary -
dependent on one's particular circumstances.

To address the queries at hand - coming from several languages and
platforms, I was asking the same questions a few years ago. I evaluated
other popular MVC frameworks and stuck with Django. Not a regret had to
date.

- Django "just works" for a large share of "general" uses. The admin app is
a boon for those not too keen on reinventing the wheel when it comes to
"must-have" admin site functionality
- Django documentation is the amongst the best of any framework docs I have
had to consult. It is updated frequently and is never lagging too far back
from the current framework release. I will refrain from mentioning the
names of certain alternatives in this regard
- the Django community is sizeable and very active
- Django plays well on an array of development platforms. Linux, Windows,
Mac? Behaviour is consistent. This would be attributable in no small part
to Python's own cross-platform usability.
- Python. I do appreciate that the right tool must be used for each job,
but I am also still waiting to see that tool which would outdo Python in
most problem domains, at least relating to developer productivity.


On Thu, Dec 20, 2012 at 4:34 PM, patrick wrote:

> Two good resources off the top of my head (among many others that will
> probably be mentioned):
>
> Buddy Lindsey's GoDjango screencasts, they cover some good ground:
> http://godjango.com
>
> Also like Kenneth Love and Chris Jones' articles at  http://brack3t.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/-/-pgwVdiekTYJ.
>
> 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,
Sithu Lloyd Dube

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



  1   2   3   4   >