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 DJa

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 >

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 quest

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 wr

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

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 th

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

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:

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 wrote: > the static tag should be > > {% static 'mainsite/bootstrap.css' %} > > according to the layout you said > > On Tue, Jan 6, 2015

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

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=smal

Re: The Django 1.7 tees!

2014-05-01 Thread Sithembewena Lloyd Dube
eek. > > 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

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 German

Re: PyCountry currency formatting woes

2014-05-04 Thread Sithembewena Lloyd Dube
e? On Sun, May 4, 2014 at 10:25 PM, Sithembewena Lloyd Dube 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

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 wrote: > On Sun, May 4, 2014 at 1:55 PM, Sithembewena Lloyd Dube > wrote: > >> Thanks, i was actually getting the error information to update the post. >> Apoligi

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 byt

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

Re: The Django 1.7 tees!

2014-05-21 Thread Sithembewena Lloyd Dube
t; 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 %-) > > &

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 wrote: > Hi Russell, > > Thank you! I really appreciate you bri

Re: The Django 1.7 tees!

2014-06-07 Thread Sithembewena Lloyd Dube
rts 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 > wrote: &g

Re: The Django 1.7 tees!

2014-06-07 Thread Sithembewena Lloyd Dube
s 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 > wrote: > >> H

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

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 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 wrote:

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 >

Re: The Django 1.7 tees!

2014-06-29 Thread Sithembewena Lloyd Dube
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 > wrote: > >> Hi Russell, >> &g

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 th

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 Googl

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

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

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

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

Re: How to structure this django application

2017-04-07 Thread Sithembewena Lloyd Dube
Shepard" 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 lo

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 the

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

<    1   2   3   4