Re: Audio Streaming from server

2012-04-20 Thread yati sagade
Hi,
You need to be much more specific. If the problem is related to Django,
someone will help you out. But if it is help with Icecast2 you're looking
for, you should probably try their mailing lists/forums/IRC channel.

Regards

On Fri, Apr 20, 2012 at 12:15 PM, atul khairnar wrote:

> Hi,
> I am writing an Internet Radio App. But when i start the app from the
> localhost, it does not stream the audio. Streaming just stops. I tried to
> use Icecast2 media streaming server, even it is not working. Or may be I am
> not using it properly.
> SO I wanted to ask how to stream audio from server to the client? Please
> Help
>
>
> --
> Atul Khairnar
> College of Engineering , Pune, India.
>
>
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
Yati Sagade 

Twitter: @yati_itay 

Organizing member of TEDx EasternMetropolitanBypass
http://www.ted.com/tedx/events/4933
https://www.facebook.com/pages/TEDx-EasternMetropolitanBypass/337763226244869

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



Content type raw_id_fields

2012-04-20 Thread dobrysmak
Hi, i have got a question, been figthing with this pass few days.

How to make raw_id_fields in content type model in admin backend?
Or how to display formset for picked content type in inline forms?

Cheers!

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



Developing first Django Site -- any advice on co-developing effectively with a professional?

2012-04-20 Thread Michael A
Dear Django community,

I'm excited to develop my first site in Django and am trying
understand the best way to approach things. I don't have a strong
coding background, but I'm comfortable with the tutorial, ~3 hours of
screencasts, and "Beginning Django E-Commerce" by James McGaw.

Designed the database and coded the model layer myself... hiring a
designer for the front-end work, and hiring a django developer to co-
develop via github. Worked out the development roadmap and features
needed for launch (below).

My goal is to develop 30-50% myself with feedback/review from the
professional, with them coding the rest and me learning from their
code. Has anyone tried something similar before? Any concerns or
advice on partnering effectively?

Our feature list is below, with hourly estimates from the developer.
I've starred those I'm aspiring to code myself.
Also interested in whether we can leverage existing code/libraries to
solve some of these challenges. Thanks!!

* - Account Sign-Up with Lost Password - 15 hours
* - Admin Tool: User Manager - 30 hours
Admin Tool: Managing PDF Content - 30 hours
Community Forums - 45 hours
FAQ/Help Center Module - 35 hours
Single Item Purchase - 15 hours
Digital Asset Delivery - 30 hours
* - Customer Internal: Simple Account Management (password, email) - 5
hours
Customer Internal: User Dashboard - 10 hours
* - Customer Internal: Contact Form - 3 hours
* - System Generated Emails - 15 hours
Data Export Tools (Customer Data) - 12 hours
Secure Storage/Delivery of PDFs - 5 hours
Page/Form Builds - 20 hours
U/X Development - 25 hours
Slice Art / Build Templates - 25 hours

Appreciate any advice you may have on how to approach this project
effectively!

Cheers from Tokyo,

-Michael

-- 
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: Bus Error: 10 (Intro Tutorial)

2012-04-20 Thread Xavier Ordoquy
Hi,

I've never faced such issue with Django on OSX.
Do you use or import non pure python apps ?
What python version do you use ? Stock osx one ? homebrew ? homemade ?

Regards,
Xavier.

Le 19 avr. 2012 à 18:16, Harald Sigh Andertun a écrit :

> I'll attach a screenshot. It works for some time, but eventually crashes.
> 
> I'm on Mac OS X Lion.
> 
> 
> 
> Den torsdag den 19. april 2012 17.50.16 UTC+2 skrev David Markey:
> Bus error is usually a very low level problem.
> 
> Can you give a screen shot?
> 
> If you are on linux, also post dmesg.
> 
> On 19 April 2012 16:36, Harald Sigh Andertun  
> wrote:
> Hi all
> 
> I am totally new to django. Have followed the intro tutorial until part 2, 
> but when I start the development server and tries to access the admin page 
> Python crashes immediately. The console prints "Bus error: 10".
> I have been googling for a while now, but can't figure out why this error 
> occurs.
> 
> Is it a code error, or an environment issue?
> 
> I use Python 2.6.2 and Django 1.4.0, and I have choosen sqlite3 as db.
> 
> I hope someone can enlighten me in what direction the problem might be ;)
> 
> Cheers,
> Harald
> 
> -- 
> 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/-/8EP1qv3APR4J.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/django-users/-/c4km0y-4gekJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
> 

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



Re: Bus Error: 10 (Intro Tutorial)

2012-04-20 Thread Harald Sigh Andertun
Hi Xavier

I now use Python 2.7 and reinstalled django-1.4 with pip this time. It 
solved the problem. :)

- Harald

Den fredag den 20. april 2012 13.31.19 UTC+2 skrev Xavier Ordoquy:
>
> Hi,
>
> I've never faced such issue with Django on OSX.
> Do you use or import non pure python apps ?
> What python version do you use ? Stock osx one ? homebrew ? homemade ?
>
> Regards,
> Xavier.
>
> Le 19 avr. 2012 à 18:16, Harald Sigh Andertun a écrit :
>
> I'll attach a screenshot. It works for some time, but eventually crashes.
>
> I'm on Mac OS X Lion.
>
>
>
> Den torsdag den 19. april 2012 17.50.16 UTC+2 skrev David Markey:
>>
>> Bus error is usually a very low level problem.
>>
>> Can you give a screen shot?
>>
>> If you are on linux, also post dmesg.
>>
>> On 19 April 2012 16:36, Harald Sigh Andertun 
>> wrote:
>>
>>> Hi all
>>>
>>> I am totally new to django. Have followed the intro tutorial until part 
>>> 2 , but when I 
>>> start the development server and tries to access the admin page Python 
>>> crashes immediately. The console prints "Bus error: 10".
>>> I have been googling for a while now, but can't figure out why this 
>>> error occurs.
>>>
>>> Is it a code error, or an environment issue?
>>>
>>> I use Python 2.6.2 and Django 1.4.0, and I have choosen sqlite3 as db.
>>>
>>> I hope someone can enlighten me in what direction the problem might be ;)
>>>
>>> Cheers,
>>> Harald
>>>
>>> -- 
>>> 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/-/8EP1qv3APR4J.
>>> To post to this group, send email to django-users@googlegroups.com.
>>> To unsubscribe from this group, send email to 
>>> django-users+unsubscr...@googlegroups.com.
>>> For more options, visit this group at 
>>> http://groups.google.com/group/django-users?hl=en.
>>>
>>
>>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/django-users/-/c4km0y-4gekJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
> 
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/_9XuMoPFAh4J.
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: Developing first Django Site -- any advice on co-developing effectively with a professional?

2012-04-20 Thread Marcin Tustin
I would suggest that you let the professional take the lead on coding -
that means that he should probably assign the bits that you do, and control
the technical aspects of the design. Hopefully you have project management
experience, and can handle that side, and you should keep track of the
features that you want - both to make sure there isn't feature creep, and
to be ready to decide what to let go if this goes slower than planned (as
it will - it always does without a well-functioning team familiar with
every step of what they are doing).

And don't be surprised if you find the coding hard. Coding is hard - much
harder than the activities of most other professions.

On Fri, Apr 20, 2012 at 11:40, Michael A  wrote:

> Dear Django community,
>
> I'm excited to develop my first site in Django and am trying
> understand the best way to approach things. I don't have a strong
> coding background, but I'm comfortable with the tutorial, ~3 hours of
> screencasts, and "Beginning Django E-Commerce" by James McGaw.
>
> Designed the database and coded the model layer myself... hiring a
> designer for the front-end work, and hiring a django developer to co-
> develop via github. Worked out the development roadmap and features
> needed for launch (below).
>
> My goal is to develop 30-50% myself with feedback/review from the
> professional, with them coding the rest and me learning from their
> code. Has anyone tried something similar before? Any concerns or
> advice on partnering effectively?
>
> Our feature list is below, with hourly estimates from the developer.
> I've starred those I'm aspiring to code myself.
> Also interested in whether we can leverage existing code/libraries to
> solve some of these challenges. Thanks!!
>
> * - Account Sign-Up with Lost Password - 15 hours
> * - Admin Tool: User Manager - 30 hours
> Admin Tool: Managing PDF Content - 30 hours
> Community Forums - 45 hours
> FAQ/Help Center Module - 35 hours
> Single Item Purchase - 15 hours
> Digital Asset Delivery - 30 hours
> * - Customer Internal: Simple Account Management (password, email) - 5
> hours
> Customer Internal: User Dashboard - 10 hours
> * - Customer Internal: Contact Form - 3 hours
> * - System Generated Emails - 15 hours
> Data Export Tools (Customer Data) - 12 hours
> Secure Storage/Delivery of PDFs - 5 hours
> Page/Form Builds - 20 hours
> U/X Development - 25 hours
> Slice Art / Build Templates - 25 hours
>
> Appreciate any advice you may have on how to approach this project
> effectively!
>
> Cheers from Tokyo,
>
> -Michael
>
> --
> 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.
>
>


-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: Bus Error: 10 (Intro Tutorial)

2012-04-20 Thread Tom Evans
On Thu, Apr 19, 2012 at 5:11 PM, Harald Sigh Andertun
 wrote:
> I'm sorry. Actually that was not the solution. It works sometimes now, which
> it didn't before. I'll attach a screenshot.
>
> I'm on mac (OS X Lion).
>

A bus error occurs due to unaligned memory access, or access to a non
existent memory address. In the absence of an actual bug (which others
would see), this clearly indicates that one or another of the C
libraries used by python conflicts with it.

This could happen if you compiled a C library to use with python, like
one of the many python packages that consist of a small C library
(mysql and postgresql DB adaptors, PIL, many others), and use it with
a different python than it was compiled against.

It probably has very little to do with django - django is pure python
- but with one of the libraries that is used by django or your code.
The solution is simple; remove everything, start from scratch and
recompile/reinstall everything relevant.

It is probably trickier as OS X does interesting things with python,
and most users end up with a system python and a user python. Making
sure your installed extensions are compiled and used with the right
python is then what is important.

Cheers

Tom

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



python list in javascript

2012-04-20 Thread dummyman dummyman
Hi,

I have a python dictionary which i want to add to the javascript object on
load in django template

i followed this method



UrlConf problem when capture value from url

2012-04-20 Thread DanYun Liu
When I use url pattern like this "/search/(\s+)","myview" : django will set
mydomain/search as the root domain, so the css and js will not request
correctly:

in my template:


the request url for the index.css  is:
http://mydomain/search/styles/index.css but not:
http://mydomain/styles/index.css

is there any solution?


-- 
Pursuit the freedom of the soul.

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



Re: python list in javascript

2012-04-20 Thread Marcin Tustin
You'd have to show us the generated output. In any case, this is more of a
javascript question.

If you want to put some data into a rendered page, use the json module to
create the data in your view, and paste the whole json string using your
template.

On Fri, Apr 20, 2012 at 13:53, dummyman dummyman  wrote:

> Hi,
>
> I have a python dictionary which i want to add to the javascript object on
> load in django template
>
> i followed this method
>
>
> 

Hardware requirements for Djando development (Linux vs Mac)

2012-04-20 Thread Houmie
Hi,

This might sound like a strange question.  I am switching from
MVC .NET to Django/Linux environment. It makes most sense to go
completely linux (Ubuntu). But there is also the option of leaving PC
completely behind and start using a Mac for development.

As I am not familiar with Mac, is it true that a let say a Mac Mini is
powerful enough to run Python, Eclipse/PyDev and Django like its done
in Ubuntu without any problem?

Many Thanks,
Houman

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



ValueError at /login/ Unknown password hashing algorithm 'yara'. Did you specify it in the PASSWORD_HASHERS setting?

2012-04-20 Thread Mai
View.py
def login(request):
state = "Please log in below..."
username = password = ''
if request.method=='POST':
username = request.POST['username']
password = request.POST['password']

user = authenticate(username=username, password=password)
if user is not None:
if user.is_active:
login(request,user)
state = "You're successfully logged in!"
else:
state = "Your account is not active, please contact
the site admin."
else:
state = "Your username and/or password were incorrect."

return render_to_response('auth.html',{'state':state, 'username':
username})

every time i try to enter username and password its keeps on sending
me this error
ValueError at /login/
Unknown password hashing algorithm 'yara'. Did you specify it in the
PASSWORD_HASHERS setting?

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



A weird behaviour of imagestore app

2012-04-20 Thread chuwy
Hi, all.
I'm trying to install imagestore  app 
in my project. Default models are created succefully, and all other parts 
working properly.
But, it have a feature to extend base (abstract) models and create your own 
by some complicated mechanism. This is mine model:
from django.db import models 
from imagestore.models.bases.album import BaseAlbum 
class Newalbum(BaseAlbum): 
title = models.CharField("title", max_length=128) 
class Meta(BaseAlbum.Meta): 
app_label = "imagestore" 
abstract = False
Also I have a string IMAGESTORE_ALBUM_MODEL = 'art.models.Newalbum'
When I run syncdb it tells me Backend module "art" does not define a 
"Newalbum" class. ('module' object has no attribute 'Hook').
But of course it defined. 
And the strangeness is only begins. When I put debug statement in the place 
where imagestore trying to get my model it prints proper module (already 
imported) and proper class name (string). But! dir(mod)print only variables 
appeared before "from imagestore.models.bases.album import BaseAlbum" in 
above example only "models". Why? What I don't know about importing modules?
I already tried to install it in many awkward combinations of settings 
properties, versions of django (and required apps), app_label and so on. It 
creates tables, when I inherit Newalbum from typical models.Model, but this 
models hasn't any BaseClass' behaviour.
So, what I'm doing wrong?

-- 
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/-/QkgsxcYMoz0J.
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: Hardware requirements for Djando development (Linux vs Mac)

2012-04-20 Thread Brian Schott
Any Intel mac mini should be fine.  I do all of my development on a MacBook Pro 
laptop.  Most of the potential Linux dependencies that aren't available from 
PyPi (RabbitMQ, MYSQL, ...) can be installed using Homebrew:
http://mxcl.github.com/homebrew/

Brian Schott
bfsch...@gmail.com



On Apr 20, 2012, at 8:58 AM, Houmie wrote:

> Hi,
> 
> This might sound like a strange question.  I am switching from
> MVC .NET to Django/Linux environment. It makes most sense to go
> completely linux (Ubuntu). But there is also the option of leaving PC
> completely behind and start using a Mac for development.
> 
> As I am not familiar with Mac, is it true that a let say a Mac Mini is
> powerful enough to run Python, Eclipse/PyDev and Django like its done
> in Ubuntu without any problem?
> 
> Many Thanks,
> Houman
> 
> -- 
> 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.
> 



smime.p7s
Description: S/MIME cryptographic signature


Re: ValueError at /login/ Unknown password hashing algorithm 'yara'. Did you specify it in the PASSWORD_HASHERS setting?

2012-04-20 Thread chuwy
So did you? Since 1.4 you can 
specifyyour
 own hash algorithms by 
PASSWORD_HASHERS. You may look at your settings.py.

On Friday, April 20, 2012 9:07:11 PM UTC+8, Mai wrote:
>
> View.py 
> def login(request): 
> state = "Please log in below..." 
> username = password = '' 
> if request.method=='POST': 
> username = request.POST['username'] 
> password = request.POST['password'] 
>
> user = authenticate(username=username, password=password) 
> if user is not None: 
> if user.is_active: 
> login(request,user) 
> state = "You're successfully logged in!" 
> else: 
> state = "Your account is not active, please contact 
> the site admin." 
> else: 
> state = "Your username and/or password were incorrect." 
>
> return render_to_response('auth.html',{'state':state, 'username': 
> username}) 
>
> every time i try to enter username and password its keeps on sending 
> me this error 
> ValueError at /login/ 
> Unknown password hashing algorithm 'yara'. Did you specify it in the 
> PASSWORD_HASHERS setting? 
>

-- 
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/-/iRF3uTfVSQgJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: python list in javascript

2012-04-20 Thread Philip Mountifield
"title" is never defined in that code snippet so it would be None. Did 
you mean "key"? The syntax looks wrong too for assigning to someobject.


On 20/04/2012 13:53, dummyman dummyman wrote:

Hi,

I have a python dictionary which i want to add to the javascript 
object on load in django template


i followed this method



Re: UrlConf problem when capture value from url

2012-04-20 Thread Daniel Sokolowski
Yes {{STATIC_URL}} - 
https://docs.djangoproject.com/en/dev/howto/static-files/#using-django-contrib-staticfiles



Does that help?
From: DanYun Liu 
Sent: Friday, April 20, 2012 8:57 AM
To: django-users@googlegroups.com 
Subject: UrlConf problem when capture value from url

When I use url pattern like this "/search/(\s+)","myview" : django will set 
mydomain/search as the root domain, so the css and js will not request 
correctly: 

in my template: 


the request url for the index.css  is: http://mydomain/search/styles/index.css 
but not:
http://mydomain/styles/index.css

is there any solution?


-- 
Pursuit the freedom of the soul.

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

Daniel Sokolowski
Web Engineer
KL Insight
http://klinsight.com/
Tel: 613-344-2116 | Fax: 613.634.7029
993 Princess Street, Suite 212
Kingston, ON K7L 1H3, Canada


Notice of Confidentiality:
The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential and/or privileged material. Any 
review re-transmission dissemination or other use of or taking of any action in 
reliance upon this information by persons or entities other than the intended 
recipient is prohibited. If you received this in error please contact the 
sender immediately by return electronic transmission and then immediately 
delete this transmission including all attachments without copying distributing 
or disclosing same.

-- 
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: Developing first Django Site -- any advice on co-developing effectively with a professional?

2012-04-20 Thread Daniel Sokolowski
Welcome to Django, just a comment  that you quoted might be overly 
optimistic. In my experience simple semi static sites are easy to nail 
within the time frame but as complexity rises code hours can and DO quickly 
grow. The nature of Django lends itself to tweaking/improving so do not be 
surprised if your go over your estimates because you want a sharp polished 
product.


I would be very curious to see what it actually took you and what the final 
project is; so please come back and tell us when its done.


-Original Message- 
From: Michael A

Sent: Friday, April 20, 2012 6:40 AM
To: Django users
Subject: Developing first Django Site -- any advice on co-developing 
effectively with a professional?


Dear Django community,

I'm excited to develop my first site in Django and am trying
understand the best way to approach things. I don't have a strong
coding background, but I'm comfortable with the tutorial, ~3 hours of
screencasts, and "Beginning Django E-Commerce" by James McGaw.

Designed the database and coded the model layer myself... hiring a
designer for the front-end work, and hiring a django developer to co-
develop via github. Worked out the development roadmap and features
needed for launch (below).

My goal is to develop 30-50% myself with feedback/review from the
professional, with them coding the rest and me learning from their
code. Has anyone tried something similar before? Any concerns or
advice on partnering effectively?

Our feature list is below, with hourly estimates from the developer.
I've starred those I'm aspiring to code myself.
Also interested in whether we can leverage existing code/libraries to
solve some of these challenges. Thanks!!

* - Account Sign-Up with Lost Password - 15 hours
* - Admin Tool: User Manager - 30 hours
Admin Tool: Managing PDF Content - 30 hours
Community Forums - 45 hours
FAQ/Help Center Module - 35 hours
Single Item Purchase - 15 hours
Digital Asset Delivery - 30 hours
* - Customer Internal: Simple Account Management (password, email) - 5
hours
Customer Internal: User Dashboard - 10 hours
* - Customer Internal: Contact Form - 3 hours
* - System Generated Emails - 15 hours
Data Export Tools (Customer Data) - 12 hours
Secure Storage/Delivery of PDFs - 5 hours
Page/Form Builds - 20 hours
U/X Development - 25 hours
Slice Art / Build Templates - 25 hours

Appreciate any advice you may have on how to approach this project
effectively!

Cheers from Tokyo,

-Michael

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



Daniel Sokolowski
Web Engineer
KL Insight
http://klinsight.com/
Tel: 613-344-2116 | Fax: 613.634.7029
993 Princess Street, Suite 212
Kingston, ON K7L 1H3, Canada


Notice of Confidentiality:
The information transmitted is intended only for the person or entity to 
which it is addressed and may contain confidential and/or privileged 
material. Any review re-transmission dissemination or other use of or taking 
of any action in reliance upon this information by persons or entities other 
than the intended recipient is prohibited. If you received this in error 
please contact the sender immediately by return electronic transmission and 
then immediately delete this transmission including all attachments without 
copying distributing or disclosing same. 


--
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: Developing first Django Site -- any advice on co-developing effectively with a professional?

2012-04-20 Thread Joel Goldstick
On Fri, Apr 20, 2012 at 10:31 AM, Daniel Sokolowski
 wrote:
> Welcome to Django, just a comment  that you quoted might be overly
> optimistic. In my experience simple semi static sites are easy to nail
> within the time frame but as complexity rises code hours can and DO quickly
> grow. The nature of Django lends itself to tweaking/improving so do not be
> surprised if your go over your estimates because you want a sharp polished
> product.
>
> I would be very curious to see what it actually took you and what the final
> project is; so please come back and tell us when its done.
>
> -Original Message- From: Michael A
> Sent: Friday, April 20, 2012 6:40 AM
> To: Django users
> Subject: Developing first Django Site -- any advice on co-developing
> effectively with a professional?
>
>
> Dear Django community,
>
> I'm excited to develop my first site in Django and am trying
> understand the best way to approach things. I don't have a strong
> coding background, but I'm comfortable with the tutorial, ~3 hours of
> screencasts, and "Beginning Django E-Commerce" by James McGaw.
>
> Designed the database and coded the model layer myself... hiring a
> designer for the front-end work, and hiring a django developer to co-
> develop via github. Worked out the development roadmap and features
> needed for launch (below).
>
> My goal is to develop 30-50% myself with feedback/review from the
> professional, with them coding the rest and me learning from their
> code. Has anyone tried something similar before? Any concerns or
> advice on partnering effectively?
>
> Our feature list is below, with hourly estimates from the developer.
> I've starred those I'm aspiring to code myself.
> Also interested in whether we can leverage existing code/libraries to
> solve some of these challenges. Thanks!!
>
> * - Account Sign-Up with Lost Password - 15 hours
> * - Admin Tool: User Manager - 30 hours
> Admin Tool: Managing PDF Content - 30 hours
> Community Forums - 45 hours
> FAQ/Help Center Module - 35 hours
> Single Item Purchase - 15 hours
> Digital Asset Delivery - 30 hours
> * - Customer Internal: Simple Account Management (password, email) - 5
> hours
> Customer Internal: User Dashboard - 10 hours
> * - Customer Internal: Contact Form - 3 hours
> * - System Generated Emails - 15 hours
> Data Export Tools (Customer Data) - 12 hours
> Secure Storage/Delivery of PDFs - 5 hours
> Page/Form Builds - 20 hours
> U/X Development - 25 hours
> Slice Art / Build Templates - 25 hours
>
You've given yourself 2 months to do something you have never done
before.  My experience is that it takes at 3 months to do anything and
if it takes more than 6 months  it gets messy.  That being said,
Django is awfully fun, and a lot can be done quickly.  Its the 10%
that will take up all of your time.  Not the 90%.

Good luck


> Appreciate any advice you may have on how to approach this project
> effectively!
>
> Cheers from Tokyo,
>
> -Michael
>
> --
> 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.
>
>
> Daniel Sokolowski
> Web Engineer
> KL Insight
> http://klinsight.com/
> Tel: 613-344-2116 | Fax: 613.634.7029
> 993 Princess Street, Suite 212
> Kingston, ON K7L 1H3, Canada
>
>
> Notice of Confidentiality:
> The information transmitted is intended only for the person or entity to
> which it is addressed and may contain confidential and/or privileged
> material. Any review re-transmission dissemination or other use of or taking
> of any action in reliance upon this information by persons or entities other
> than the intended recipient is prohibited. If you received this in error
> please contact the sender immediately by return electronic transmission and
> then immediately delete this transmission including all attachments without
> copying distributing or disclosing same.
> --
> 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.
>



-- 
Joel Goldstick

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



urls with/without implicit views import

2012-04-20 Thread Alexey Luchko

Hi!

I wonder what are pros and cons of explicit import views in urls.py.
There are at least 2 ways of defining urlpatterns.
* explicit import
from . import views
urlspatterns = patterns('',
  ('а/', views.a),
)

* lazy import
urlspatterns = patterns('path.to.app.views',
  ('a/', 'a'),
)


The first one is not bounded to application location in the source/package 
tree.  The second one is lazy.  What are side-effects of both ways?



Thanks in advance.
--
Regards,
Alex.

--
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: Developing first Django Site -- any advice on co-developing effectively with a professional?

2012-04-20 Thread Ejah
Looking at some estimates I wonder if they are fair. F.e. lost
password is part of django-registration, but it might be you want
something else.
Anybody some more feedback?
Hth
Ernst

On 20 apr, 16:45, Joel Goldstick  wrote:
> On Fri, Apr 20, 2012 at 10:31 AM, Daniel Sokolowski
>
>
>
>  wrote:
> > Welcome to Django, just a comment  that you quoted might be overly
> > optimistic. In my experience simple semi static sites are easy to nail
> > within the time frame but as complexity rises code hours can and DO quickly
> > grow. The nature of Django lends itself to tweaking/improving so do not be
> > surprised if your go over your estimates because you want a sharp polished
> > product.
>
> > I would be very curious to see what it actually took you and what the final
> > project is; so please come back and tell us when its done.
>
> > -Original Message- From: Michael A
> > Sent: Friday, April 20, 2012 6:40 AM
> > To: Django users
> > Subject: Developing first Django Site -- any advice on co-developing
> > effectively with a professional?
>
> > Dear Django community,
>
> > I'm excited to develop my first site in Django and am trying
> > understand the best way to approach things. I don't have a strong
> > coding background, but I'm comfortable with the tutorial, ~3 hours of
> > screencasts, and "Beginning Django E-Commerce" by James McGaw.
>
> > Designed the database and coded the model layer myself... hiring a
> > designer for the front-end work, and hiring a django developer to co-
> > develop via github. Worked out the development roadmap and features
> > needed for launch (below).
>
> > My goal is to develop 30-50% myself with feedback/review from the
> > professional, with them coding the rest and me learning from their
> > code. Has anyone tried something similar before? Any concerns or
> > advice on partnering effectively?
>
> > Our feature list is below, with hourly estimates from the developer.
> > I've starred those I'm aspiring to code myself.
> > Also interested in whether we can leverage existing code/libraries to
> > solve some of these challenges. Thanks!!
>
> > * - Account Sign-Up with Lost Password - 15 hours
> > * - Admin Tool: User Manager - 30 hours
> > Admin Tool: Managing PDF Content - 30 hours
> > Community Forums - 45 hours
> > FAQ/Help Center Module - 35 hours
> > Single Item Purchase - 15 hours
> > Digital Asset Delivery - 30 hours
> > * - Customer Internal: Simple Account Management (password, email) - 5
> > hours
> > Customer Internal: User Dashboard - 10 hours
> > * - Customer Internal: Contact Form - 3 hours
> > * - System Generated Emails - 15 hours
> > Data Export Tools (Customer Data) - 12 hours
> > Secure Storage/Delivery of PDFs - 5 hours
> > Page/Form Builds - 20 hours
> > U/X Development - 25 hours
> > Slice Art / Build Templates - 25 hours
>
> You've given yourself 2 months to do something you have never done
> before.  My experience is that it takes at 3 months to do anything and
> if it takes more than 6 months  it gets messy.  That being said,
> Django is awfully fun, and a lot can be done quickly.  Its the 10%
> that will take up all of your time.  Not the 90%.
>
> Good luck
>
>
>
>
>
> > Appreciate any advice you may have on how to approach this project
> > effectively!
>
> > Cheers from Tokyo,
>
> > -Michael
>
> > --
> > 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.
>
> > Daniel Sokolowski
> > Web Engineer
> > KL Insight
> >http://klinsight.com/
> > Tel: 613-344-2116 | Fax: 613.634.7029
> > 993 Princess Street, Suite 212
> > Kingston, ON K7L 1H3, Canada
>
> > Notice of Confidentiality:
> > The information transmitted is intended only for the person or entity to
> > which it is addressed and may contain confidential and/or privileged
> > material. Any review re-transmission dissemination or other use of or taking
> > of any action in reliance upon this information by persons or entities other
> > than the intended recipient is prohibited. If you received this in error
> > please contact the sender immediately by return electronic transmission and
> > then immediately delete this transmission including all attachments without
> > copying distributing or disclosing same.
> > --
> > 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.
>
> --
> Joel Goldstick

-- 
You received this message because you are subscribed to the Google Groups 
"Django 

Re: Macs are great for Django development!

2012-04-20 Thread creecode
Hello Houman,

On Friday, April 20, 2012 5:58:34 AM UTC-7, Houmie wrote:
 

> As I am not familiar with Mac, is it true that a let say a Mac Mini is 
> powerful enough to run Python, Eclipse/PyDev and Django like its done 
> in Ubuntu without any problem?


Macs are great for Django development!  You may have to do a bit more work 
to get some libraries installed as sometimes they aren't specifically tuned 
for Macs.  Any modern Mac should be just fine for development.  Heck even 
ancient Macs (PPC based) can be used albeit slower and somewhat harder to 
configure, not the OS but again some of the libraries you might install.

I have a website  in 
development and the servers are Mac based.  The webserver is a recently 
purchased low-end Mac Mini .  Its 
stack includes djagno, nginx, gunicorn, psycopg2, etc.  The database server 
is an ancient Power Mac G4 (Mirrored Drive 
Doors), 
Dual 1GHz.  It's running Postgres.  The webserver was formerly a Power Mac 
G4 (Mirrored Drive Doors) , Dual 1.25GHz 
which finally gave up the ghost after almost 10 years of faithful service [ 
sniff :-( ].

The system has thus far not been optimized but it runs adequately fast at 
this stage of my development process.  Feel free to look around or even 
enter in some nutrition facts labels! :-)

Toodle-looo...
creecode

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



Re: urls with/without implicit views import

2012-04-20 Thread Tom Evans
2012/4/20 Alexey Luchko :
> Hi!
>
> I wonder what are pros and cons of explicit import views in urls.py.
> There are at least 2 ways of defining urlpatterns.
> * explicit import
> from . import views
> urlspatterns = patterns('',
>  ('а/', views.a),
> )
>
> * lazy import
> urlspatterns = patterns('path.to.app.views',
>  ('a/', 'a'),
> )
>
>
> The first one is not bounded to application location in the source/package
> tree.  The second one is lazy.  What are side-effects of both ways?
>
>
> Thanks in advance.

You can also do lazy imports without specifying a specific view module:

patterns('',
  ('^$', 'app.views.homepage'),
  (^logout$', 'auth.views.logut'),
)

If a view is defined lazily in a urlconf, then it is not imported
until a URL is resolved to that particular pattern, IIRC.

Cheers

Tom

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



looking for help to make build for django web application

2012-04-20 Thread pritesh modi
Hello Guys

 is there any one had use the Distutils for  Distributing Python
Modules,I am looking for make build or setuptools for django application?


I am looking for suggestions ?


thanks

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



Re: cannot add User to database

2012-04-20 Thread creecode
Hello Mai,

Could you post the actual error you are getting or describe the problem you 
are having more fully?  Posting a bunch of code doesn't help much unless 
there is more context to work with.

Toodle-l..
creecode

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

2012-04-20 Thread John DeRosa
On Apr 20, 2012, at 8:39 AM, creecode wrote:

> Hello Houman,
> 
> On Friday, April 20, 2012 5:58:34 AM UTC-7, Houmie wrote:
>  
> As I am not familiar with Mac, is it true that a let say a Mac Mini is 
> powerful enough to run Python, Eclipse/PyDev and Django like its done 
> in Ubuntu without any problem?
> 
> Macs are great for Django development!  You may have to do a bit more work to 
> get some libraries installed as sometimes they aren't specifically tuned for 
> Macs.  Any modern Mac should be just fine for development.  Heck even ancient 
> Macs (PPC based) can be used albeit slower and somewhat harder to configure, 
> not the OS but again some of the libraries you might install.

+1. Our dev environment is all MacBook Pro laptops. The oldest one is a 
2010-vintage machine. They're a great dev environment.

John

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



Re: python list in javascript

2012-04-20 Thread dummyman dummyman
no tats nt the error i ve initialised it as a global variable. I need a
suitable way to echo variable which is a dictionary in views.py to a
javascript list in django template

On Fri, Apr 20, 2012 at 7:39 PM, Philip Mountifield  wrote:

> "title" is never defined in that code snippet so it would be None. Did you
> mean "key"? The syntax looks wrong too for assigning to someobject.
>
>
> On 20/04/2012 13:53, dummyman dummyman wrote:
>
>> Hi,
>>
>> I have a python dictionary which i want to add to the javascript object
>> on load in django template
>>
>> i followed this method
>>
>>
>> 

Re: python list in javascript

2012-04-20 Thread Daniel Sokolowski
see http://docs.python.org/library/json.html 

So you output it in JSON format into a JS variable and then you can use it that 
way.

From: dummyman dummyman 
Sent: Friday, April 20, 2012 12:38 PM
To: django-users@googlegroups.com 
Cc: Philip Mountifield 
Subject: Re: python list in javascript

no tats nt the error i ve initialised it as a global variable. I need a 
suitable way to echo variable which is a dictionary in views.py to a javascript 
list in django template


On Fri, Apr 20, 2012 at 7:39 PM, Philip Mountifield  
wrote:

  "title" is never defined in that code snippet so it would be None. Did you 
mean "key"? The syntax looks wrong too for assigning to someobject. 


  On 20/04/2012 13:53, dummyman dummyman wrote:

Hi,

I have a python dictionary which i want to add to the javascript object on 
load in django template

i followed this method



Django Caching with Redis

2012-04-20 Thread M Oklah
Hi,

I'm building a high traffic intensive application that involves the browser
making an AJAX request to the server every second and is expecting the
server to return JSON. At any given second the server responds with the
same JSON back to each browser (regardless of which user logged in).
Because the response is the same for each browser request I decided to
remove the DB overhead by caching that response using Redis.

The view responsible for returning the JSON has code similar to this:

products_json = []

if cache.get(CACHE_LATEST_PRODUCTS_KEY) == None:
//Query the DB as necessary and construct the JSON response
...
//Populate the cache
cache.set(CACHE_LATEST_PRODUCTS_KEY, products_json)
else:
products_json = cache.get(CACHE_LATEST_PRODUCTS_KEY)


In settings.py TIMEOUT is set to 1.


I have 2 questions:
1) In a clustered environment where there are several django servers
running, each of those servers initially will end up querying the DB to
construct the JSON, this can also happen at any time in the future if the
entry expires in the cache while multiple requests are being processed by
the django servers. How can I synchronize the cache look ups so that only
one of the Redis SET's takes place. Should I take out the code that queries
the db and sets the cache entry from the view and move that logic to some
sort of periodic task?

2) Is it possible to cache for less than a second? I've tried setting
TIMEOUT to 0.7 but I didn't see the results I was expecting..


Many Thanks,


Moe

-- 
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 Caching with Redis

2012-04-20 Thread Shawn Milochik
For what it's worth, Redis itself allows you to set expiration at the 
millisecond level. That won't help you with Django's own caching, but if 
you need to write something custom using the Redis Python module then 
you can.



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



Django Database Management App

2012-04-20 Thread dumb906
I've just upped my app to a relatively stable release though still beta. 
Check it out at https://github.com/dumb906/tiote or you can get from pip 
using the handle "tiote".

It supports Database CRUD applications. If you ever knew Sqlbuddy and 
needed some sort of variant for your awesome django project; be happy cause 
you just got one. 

Can't totally describe the application since its as complex as a total web 
application, but just keep in mind it supports big brother PostgreSQL as 
well as our nice guy MySQL.

-- 
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/-/ltwpWe6k6ToJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: cannot import name current_datetime

2012-04-20 Thread asherakhet06
Hey guys,

I had to re-install Python and Django for it to work.  There seemed to have 
been something wrong with my path/environment settings.  Thank you all for 
the suggestions and tips though.  Once again, very much appreciated:)

FYI I had python installed in a wrong path in the and that gave

On Wednesday, April 18, 2012 2:47:12 PM UTC-4, asherakhet06 wrote:
>
> H all!
>
> I am fairly new to programming (went over LPTHW) and now going through the 
> Djangobook on the internet.  Quick beginners question:  In Chapter 3, where 
> I am looking at a dynamic webpage in the 2nd example I am running into some 
> problems with the current_datetime function I am trying to set up. When, in 
> views.py I insert the "datetime.datetime.now()" statement and "import 
> current_datetime" into my urls.py file, I get the following error message 
> when I try to call up the webpage via runserver.  It seems like my pure 
> python script is not being picked up by the server: 
>
> "ImportError cannot import name current_datetime".
>
> I know this is most likely an easy question for most of you, but it's been 
> a real puzzle for me to be honest:/  Anybody have any tips on how to solve 
> this error?  I know it is really important to be careful to copy EXACTLY as 
> mentioned in the programming book(s), so I am pretty sure I am not making 
> any spelling/character errors.  I am using windows btw.  I also have python 
> 2.7 and django 1.4 installed on my computer.  Anybody kind enough to help 
> me out?  Much appreciated!
>

On Wednesday, April 18, 2012 2:47:12 PM UTC-4, asherakhet06 wrote:
>
> H all!
>
> I am fairly new to programming (went over LPTHW) and now going through the 
> Djangobook on the internet.  Quick beginners question:  In Chapter 3, where 
> I am looking at a dynamic webpage in the 2nd example I am running into some 
> problems with the current_datetime function I am trying to set up. When, in 
> views.py I insert the "datetime.datetime.now()" statement and "import 
> current_datetime" into my urls.py file, I get the following error message 
> when I try to call up the webpage via runserver.  It seems like my pure 
> python script is not being picked up by the server: 
>
> "ImportError cannot import name current_datetime".
>
> I know this is most likely an easy question for most of you, but it's been 
> a real puzzle for me to be honest:/  Anybody have any tips on how to solve 
> this error?  I know it is really important to be careful to copy EXACTLY as 
> mentioned in the programming book(s), so I am pretty sure I am not making 
> any spelling/character errors.  I am using windows btw.  I also have python 
> 2.7 and django 1.4 installed on my computer.  Anybody kind enough to help 
> me out?  Much appreciated!
>

On Wednesday, April 18, 2012 2:47:12 PM UTC-4, asherakhet06 wrote:
>
> H all!
>
> I am fairly new to programming (went over LPTHW) and now going through the 
> Djangobook on the internet.  Quick beginners question:  In Chapter 3, where 
> I am looking at a dynamic webpage in the 2nd example I am running into some 
> problems with the current_datetime function I am trying to set up. When, in 
> views.py I insert the "datetime.datetime.now()" statement and "import 
> current_datetime" into my urls.py file, I get the following error message 
> when I try to call up the webpage via runserver.  It seems like my pure 
> python script is not being picked up by the server: 
>
> "ImportError cannot import name current_datetime".
>
> I know this is most likely an easy question for most of you, but it's been 
> a real puzzle for me to be honest:/  Anybody have any tips on how to solve 
> this error?  I know it is really important to be careful to copy EXACTLY as 
> mentioned in the programming book(s), so I am pretty sure I am not making 
> any spelling/character errors.  I am using windows btw.  I also have python 
> 2.7 and django 1.4 installed on my computer.  Anybody kind enough to help 
> me out?  Much appreciated!
>

On Wednesday, April 18, 2012 2:47:12 PM UTC-4, asherakhet06 wrote:
>
> H all!
>
> I am fairly new to programming (went over LPTHW) and now going through the 
> Djangobook on the internet.  Quick beginners question:  In Chapter 3, where 
> I am looking at a dynamic webpage in the 2nd example I am running into some 
> problems with the current_datetime function I am trying to set up. When, in 
> views.py I insert the "datetime.datetime.now()" statement and "import 
> current_datetime" into my urls.py file, I get the following error message 
> when I try to call up the webpage via runserver.  It seems like my pure 
> python script is not being picked up by the server: 
>
> "ImportError cannot import name current_datetime".
>
> I know this is most likely an easy question for most of you, but it's been 
> a real puzzle for me to be honest:/  Anybody have any tips on how to solve 
> this error?  I know it is really important to be careful to copy EXACTLY as 
> mentioned in the p

RE: Developing first Django Site -- any advice on co-developing effectively with a professional?

2012-04-20 Thread Bob Carlson
I am in much the same situation, Michael. How did you go about finding a good
consultant?

Cheers, Bob
Eugene, OR - Tucson, AZ

-Original Message-
From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On
Behalf Of Michael A
Sent: Friday, April 20, 2012 03:41
To: Django users
Subject: Developing first Django Site -- any advice on co-developing effectively
with a professional?

Dear Django community,

I'm excited to develop my first site in Django and am trying understand the best
way to approach things. I don't have a strong coding background, but I'm
comfortable with the tutorial, ~3 hours of screencasts, and "Beginning Django
E-Commerce" by James McGaw.

Designed the database and coded the model layer myself... hiring a designer for
the front-end work, and hiring a django developer to co- develop via github.
Worked out the development roadmap and features needed for launch (below).

My goal is to develop 30-50% myself with feedback/review from the professional,
with them coding the rest and me learning from their code. Has anyone tried
something similar before? Any concerns or advice on partnering effectively?

Our feature list is below, with hourly estimates from the developer.
I've starred those I'm aspiring to code myself.
Also interested in whether we can leverage existing code/libraries to solve some
of these challenges. Thanks!!

* - Account Sign-Up with Lost Password - 15 hours
* - Admin Tool: User Manager - 30 hours
Admin Tool: Managing PDF Content - 30 hours Community Forums - 45 hours FAQ/Help
Center Module - 35 hours Single Item Purchase - 15 hours Digital Asset Delivery
- 30 hours
* - Customer Internal: Simple Account Management (password, email) - 5 hours
Customer Internal: User Dashboard - 10 hours
* - Customer Internal: Contact Form - 3 hours
* - System Generated Emails - 15 hours
Data Export Tools (Customer Data) - 12 hours Secure Storage/Delivery of PDFs - 5
hours Page/Form Builds - 20 hours U/X Development - 25 hours Slice Art / Build
Templates - 25 hours

Appreciate any advice you may have on how to approach this project effectively!

Cheers from Tokyo,

-Michael

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

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



Tutorial

2012-04-20 Thread Gerald Klein
Hi, I did the tutorial everything is fine, I wanted to see how it was off
the dev webserver they give you , so I hooked it up to uWSGI. The views
that I defined are fine but the admin has no formatting just data. Can
someone tell me what I missed.

thanks in advance

--jerry

-- 

Gerald Klein DBA

j...@zognet.com

**

708-599-0352


Linux registered user #548580

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

2012-04-20 Thread Mohd Kamal Bin Mustafa
On Sat, Apr 21, 2012 at 7:12 AM, Gerald Klein  wrote:
> Hi, I did the tutorial everything is fine, I wanted to see how it was off
> the dev webserver they give you , so I hooked it up to uWSGI. The views that
> I defined are fine but the admin has no formatting just data. Can someone
> tell me what I missed.

Sound like you're not properly configure the server to serve static
content. View source for the html through your browser, pick any
references to css or js files - something like
http://yoursite.com/static/admin/styles.css or
http://localhost:8000/static/admin/style.css and try to access it
directly. If you got 404 - Page Not Found then you need to configure
uWSGI to serve the static files. It maybe not a good idea to serve the
static files through uWSGI but you can figure out that later once you
understand and fix this problem.

https://docs.djangoproject.com/en/1.3/howto/static-files/

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

2012-04-20 Thread Gerald Klein
Ok thanks it gives me something to start with.

thanks

--jerry

On Fri, Apr 20, 2012 at 6:29 PM, Mohd Kamal Bin Mustafa wrote:

> On Sat, Apr 21, 2012 at 7:12 AM, Gerald Klein  wrote:
> > Hi, I did the tutorial everything is fine, I wanted to see how it was off
> > the dev webserver they give you , so I hooked it up to uWSGI. The views
> that
> > I defined are fine but the admin has no formatting just data. Can someone
> > tell me what I missed.
>
> Sound like you're not properly configure the server to serve static
> content. View source for the html through your browser, pick any
> references to css or js files - something like
> http://yoursite.com/static/admin/styles.css or
> http://localhost:8000/static/admin/style.css and try to access it
> directly. If you got 404 - Page Not Found then you need to configure
> uWSGI to serve the static files. It maybe not a good idea to serve the
> static files through uWSGI but you can figure out that later once you
> understand and fix this problem.
>
> https://docs.djangoproject.com/en/1.3/howto/static-files/
>
> --
> 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.
>
>


-- 

Gerald Klein DBA

contac...@geraldklein.com

www.geraldklein.com 

j...@zognet.com

708-599-0352


Linux registered user #548580

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

2012-04-20 Thread Gerald Klein
I guess the problem I am having at this point is that the css files for
admin are generated dynamically and I don't know where from as far as what
the path should be that I could map it. I tried setting up the static
mapping but I don't know what to point to as it's root.

thanks

--jerry

On Fri, Apr 20, 2012 at 6:29 PM, Mohd Kamal Bin Mustafa wrote:

> On Sat, Apr 21, 2012 at 7:12 AM, Gerald Klein  wrote:
> > Hi, I did the tutorial everything is fine, I wanted to see how it was off
> > the dev webserver they give you , so I hooked it up to uWSGI. The views
> that
> > I defined are fine but the admin has no formatting just data. Can someone
> > tell me what I missed.
>
> Sound like you're not properly configure the server to serve static
> content. View source for the html through your browser, pick any
> references to css or js files - something like
> http://yoursite.com/static/admin/styles.css or
> http://localhost:8000/static/admin/style.css and try to access it
> directly. If you got 404 - Page Not Found then you need to configure
> uWSGI to serve the static files. It maybe not a good idea to serve the
> static files through uWSGI but you can figure out that later once you
> understand and fix this problem.
>
> https://docs.djangoproject.com/en/1.3/howto/static-files/
>
> --
> 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.
>
>


-- 

Gerald Klein DBA

contac...@geraldklein.com

www.geraldklein.com 

j...@zognet.com

708-599-0352


Linux registered user #548580

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

2012-04-20 Thread hr6134
Hello,
You can create a sym link to folder with static files of django admin
in your static folder. And then all will work.
As example:
I have debian squeeze. Admin static has a path:
/usr/lib/python2.7/dist-packages/django/contrib/admin/static/admin
You must do the next:
$ cd path_to_yout_static_folder
$ ln -s /usr/lib/python2.7/dist-packages/django/contrib/admin/static/
admin/ admin

Then check owner and permission of sym link.

I think that this just a trick, but i don`t know better way.

On Apr 21, 4:59 am, Gerald Klein  wrote:
> I guess the problem I am having at this point is that the css files for
> admin are generated dynamically and I don't know where from as far as what
> the path should be that I could map it. I tried setting up the static
> mapping but I don't know what to point to as it's root.
>
> thanks
>
> --jerry
>
> On Fri, Apr 20, 2012 at 6:29 PM, Mohd Kamal Bin Mustafa 
> wrote:
>
>
>
>
>
>
>
>
>
> > On Sat, Apr 21, 2012 at 7:12 AM, Gerald Klein  wrote:
> > > Hi, I did the tutorial everything is fine, I wanted to see how it was off
> > > the dev webserver they give you , so I hooked it up to uWSGI. The views
> > that
> > > I defined are fine but the admin has no formatting just data. Can someone
> > > tell me what I missed.
>
> > Sound like you're not properly configure the server to serve static
> > content. View source for the html through your browser, pick any
> > references to css or js files - something like
> >http://yoursite.com/static/admin/styles.cssor
> >http://localhost:8000/static/admin/style.cssand try to access it
> > directly. If you got 404 - Page Not Found then you need to configure
> > uWSGI to serve the static files. It maybe not a good idea to serve the
> > static files through uWSGI but you can figure out that later once you
> > understand and fix this problem.
>
> >https://docs.djangoproject.com/en/1.3/howto/static-files/
>
> > --
> > 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.
>
> --
>
> Gerald Klein DBA
>
> contac...@geraldklein.com
>
> www.geraldklein.com
>
> j...@zognet.com
>
> 708-599-0352
>
> Linux registered user #548580

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

2012-04-20 Thread k4ml
On Apr 21, 8:59 am, Gerald Klein  wrote:
> I guess the problem I am having at this point is that the css files for
> admin are generated dynamically and I don't know where from as far as what
> the path should be that I could map it. I tried setting up the static
> mapping but I don't know what to point to as it's root.

No, it's not dynamically generated. Most django app will have static
files in their /static or for older app that does not yet
follow > 1.3 convention, they'll place their static files in /
media. You then need to collect all the static files for each app and
place it somewhere that your web server can serve it. If using apache,
you can put it under DocumentRoot of your vhost or set proper alias to
the directory where you collect all the static files in one place
(STATIC_ROOT). You don't have to do this manually since django > 1.3
provide app name staticfiles if enabled in your INSTALLED_APP provide
some helper command to collect all the static files into one place.
The doc explain this better.

If you want to do it manually, then just go through each of your
install app looking for directory name 'static'. For django admin as
an example:-

$ python
>> import django


Now I know to find the static for admin in /home/kamal/lib/python2.6/
site-packages/Django-1.3.1-py2.6.egg/django/contrib/admin/static.

-- 
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 deployment practices -- do people use setup.py?

2012-04-20 Thread Andrew Cutler
On 18 April 2012 23:21, Daniel Sokolowski
wrote:

> Can you clarify if you approach can handle things that are not installable
> through pip? For example I run into an issue with geodjango requirements -
> I was not able to get everything installed through PIP and had to resort to
> manually using the Debian package management.
>

Do you mean install requirements for system libraries, databases. That sort
of thing? Or do you mean non python files, like scripts, documentation ?

Cheers, Andrew

-- 
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: UrlConf problem when capture value from url

2012-04-20 Thread DanYun Liu
yes, it works well :)

On Fri, Apr 20, 2012 at 10:11 PM, Daniel Sokolowski <
daniel.sokolow...@klinsight.com> wrote:

>   Yes {{STATIC_URL}} -
> https://docs.djangoproject.com/en/dev/howto/static-files/#using-django-contrib-staticfiles
>
> 
>
> Does that help?
>   *From:* DanYun Liu 
> *Sent:* Friday, April 20, 2012 8:57 AM
> *To:* django-users@googlegroups.com
> *Subject:* UrlConf problem when capture value from url
>
> When I use url pattern like this "/search/(\s+)","myview" : django will
> set mydomain/search as the root domain, so the css and js will not request
> correctly:
>
> in my template:
> 
>
> the request url for the index.css  is:
> http://mydomain/search/styles/index.css but not:
> http://mydomain/styles/index.css
>
> is there any solution?
>
>
> --
> Pursuit the freedom of the soul.
> --
> 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.
> Daniel Sokolowski
> Web Engineer
> KL Insight
> http://klinsight.com/
> Tel: 613-344-2116 | Fax: 613.634.7029
> 993 Princess Street, Suite 212
> Kingston, ON K7L 1H3, Canada
>
>
> Notice of Confidentiality:
> The information transmitted is intended only for the person or entity to
> which it is addressed and may contain confidential and/or privileged
> material. Any review re-transmission dissemination or other use of or
> taking of any action in reliance upon this information by persons or
> entities other than the intended recipient is prohibited. If you received
> this in error please contact the sender immediately by return electronic
> transmission and then immediately delete this transmission including all
> attachments without copying distributing or disclosing same.
>
> --
> 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.
>



-- 
Pursuit the freedom of the soul.

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