Handling copy on a small project

2012-01-19 Thread Jeremy Boyd
Hi all,

For my side project, we have the need to rapidly iterate on the app's copy. As 
I see it, we have two options: make copy db-driven, or hardcode it into the 
templates. I'm leaning toward putting text in the db for now to avoid having to 
teach our product guy the intricacies of commits and deployment, but I'm 
curious a) whether I'm shooting myself in the foot, and b) whether there are 
any go-to apps for this sort of thing.

I'm able to give more background as necessary, but just curious whether this 
question has an immediate answer.

P.S.: Sorry if this has been asked before, but searching for "copy" and "text" 
seems a bit futile after a few pages of results.
--
Jeremy Boyd
e: boy...@gmail.com
c: (512) 586-4587

-- 
You received this message because you are subscribed to the Google 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: Need help with userena - assign user to group at signup

2012-01-19 Thread Jesramz


The problem with that, if I'm understanding correctly, is that a
person who is meant to be an employee can easily choose the employer
option. I want to add permissions such that an employer can see
employee profiles while the employee can't (a separate form might add
a tiny bit more security, I think). Can you help me with this?

-- 
You received this message because you are subscribed to the Google 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: file manager options for user home directory

2012-01-19 Thread Mike Dewhirst

On 20/01/2012 3:33am, Brian Schott wrote:

That might work for a public folder in a user's home directory, but I
was looking for a mechanism that doesn't involve gutting all security
or relying on users to correctly set permissions our groups.


As Tom said, it is difficult. And making things world-r/w isn't as dodgy 
as it sounds if the circumstances are appropriate. Depending on your 
use-case you might be able to quite satisfactorily secure such files via 
requiring a valid user to gain access.


I don't know nginx at all but with Apache you can easily control all 
such security within the conf files without needing .htaccess files in 
the user directories.


This approach is used frequently on sites where people require ftp 
access to tweak files owned and served by the webserver. It is just 
reversing the perspective to give nginx access to files it doesn't own.


Mike

I could

tolerate adding a key to a user .ssh/authorized_keys file that gives
www-data user command="sftp-internal" access if django-storages sftp
backend allows multiple accounts (or even as root if properly root
jailed to /home).  Just feel I'm going the long way around the barn
and am missing an obvious way to for web-based file management for
user's files...

On Jan 19, 2012, at 12:56 AM, Mike Dewhirst wrote:


On 19/01/2012 2:10pm, Brian Schott wrote:

Looking for some expert advice.  I need to provide an upload and
file browse capability for a user's home directory.  It doesn't
have to be a full blown file explorer necessarily, just a basic
upload, download, rename, delete.  What's the best way to deal
with the userid issues on Linux?   The files live in a user's
home directory, so the files are owned by the user, not www-data,
and it's probably not an option to set the default group to
www-data.  Users can remote desktop and/or ssh to their account,
so no predicting what user/group creation will happen behind the
scenes.


If the user makes the particular files world-readable/writable it
doesn't matter what the uid/gid happens to be. Everything should
just work for nginx.




I've thought about different options, but they all have
tradeoffs: 1. dav enabled nginx process for each user with a
javascript dav file explorer? 2. django-storages with sftp? 3.
something else?

Brian

Brian Schott bfsch...@gmail.com





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





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



Re: Need help with userena - assign user to group at signup

2012-01-19 Thread Andres Reyes
I don't think you need two different login forms, it looks more like a
UserProfile with field in it saying something like

EMPLOYEE_CHOICES = (
(1, 'employer'),
(2, 'employee'),
)
employee_type = models.IntegerField(choices=EMPLOYEE_CHOICES)


2012/1/19 Jesramz :
> I would like to separate users into two different groups, employer or
> employee, at signup. I think the usual approach is to make two
> different sign-up forms one for the employer group and another for the
> employee group. I'm currently using django-userena. What would I have
> to do to get this working? How do I add the user to the group?
>
> --
> You received this message because you are subscribed to the Google 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.
>



-- 
Andrés Reyes Monge
armo...@gmail.com
+(505)-8873-7217

-- 
You received this message because you are subscribed to the Google 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: Please help with complex aggregation/annotation issue

2012-01-19 Thread Ian Clelland
On Wed, Jan 18, 2012 at 1:03 AM, Salvatore Iovene <
salvatore.iov...@gmail.com> wrote:

> Hi,
> I apologize for the lousy title, but I really didn't know how to summarize
> the problem I'm facing. I have the following model:
>
> class MessierMarathon(models.Model):
> messier_number = models.IntegerField()
> image = models.ForeignKey(Image)
> nominations = models.IntegerField(default = 0)
> nominators = models.ManyToManyField(User, null=True)
>
> def __unicode__(self):
> return 'M %i' % self.messier_number
>
> class Meta:
> unique_together = ('messier_number', 'image')
> ordering = ('messier_number', 'nominations')
>
>
> A typical content for this model would be:
>
>Image A: 5 nominations for messier_number 1
>Image B: 4 nominations for messier_number 1
>Image C: 6 nominations for messier_number 2
>...and so on.
>
> I would like to formulate a query that returns me one image for each
> messier_number, picking the one with the most nominations. So, in the
> previous example, the query would return images A and C. The image B would
> not be returned because image A has more nominations for messier_number 1.
>
> The images returned must be sorted by messier_number, and of course may
> repeat. (An image might contain more that one Messier object, and get
> highest nomination counts for both).
>


The other edge case that you need to consider (and this is the one that
makes this more than a simple aggregation query) -- what should be returned
if two images have the same number of nominations for a given
messier_number? Are both of them returned, or is there another tie-breaking
criterion?

It's easy to get the highest nomination count for each messier number:


MessierMarathon.objects.values('messier_number').annotate(Max('nominations'))

What is harder is getting a unique image attached to each messier_number,
given that value for nominations.

A simple solution, which unfortunately requires a database hit for each
messier_number, would be:

highest_counts =
MessierMarathon.objects.values('messier_number').annotate(Max('nominations'))
top_images = dict((x['messier_number'],
MessierMarathon.objects.filter(messier_number=x['messier_number'],
nominations=x['nominations'])[0].image) for x in highest_counts)

You might be better off writing raw SQL for it, though; you could probably
get it all with one (convoluted) query.

-- 
Regards,
Ian Clelland


-- 
You received this message because you are subscribed to the Google 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: Please help with complex aggregation/annotation issue

2012-01-19 Thread Bill Beal
Each user nominates just one Messier number/image pair?

Do you need to keep track of the users to verify that each one votes only
once?


On Wed, Jan 18, 2012 at 4:03 AM, Salvatore Iovene <
salvatore.iov...@gmail.com> wrote:

> Hi,
> I apologize for the lousy title, but I really didn't know how to summarize
> the problem I'm facing. I have the following model:
>
> class MessierMarathon(models.Model):
> messier_number = models.IntegerField()
> image = models.ForeignKey(Image)
> nominations = models.IntegerField(default = 0)
> nominators = models.ManyToManyField(User, null=True)
>
> def __unicode__(self):
> return 'M %i' % self.messier_number
>
> class Meta:
> unique_together = ('messier_number', 'image')
> ordering = ('messier_number', 'nominations')
>
>
> A typical content for this model would be:
>
>Image A: 5 nominations for messier_number 1
>Image B: 4 nominations for messier_number 1
>Image C: 6 nominations for messier_number 2
>...and so on.
>
> I would like to formulate a query that returns me one image for each
> messier_number, picking the one with the most nominations. So, in the
> previous example, the query would return images A and C. The image B would
> not be returned because image A has more nominations for messier_number 1.
>
> The images returned must be sorted by messier_number, and of course may
> repeat. (An image might contain more that one Messier object, and get
> highest nomination counts for both).
>
> Can anybody please help with this?
> Thanks in advance,
>   Salvatore.
>
> --
> 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/-/GB-T19nk21cJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

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



Re: django-html5boilerplate error

2012-01-19 Thread Reinout van Rees

On 19-01-12 16:39, girish shabadimath wrote:

Hi all,
I wanted to use html5 in my website so downloaded
django-html5boilerplate
(https://github.com/HowlingEverett/django-html5boilerplate).Now, I am
getting following error when I run "python manage.py runserver". Page
loads without any error, but gives following 404 errors in terminal:

error:
[19/Jan/2012 08:55:27] "GET / HTTP/1.1" 200 3984
[19/Jan/2012 08:55:27] "GET
/static/style.css%7C0/0/css/style.css?version=3613de347c61c22d6570ac95170381b50c516229
HTTP/1.1" 404 1823
[19/Jan/2012 08:55:27] "GET
/static/main.js%7C0/js/libs/modernizr-2.0.min.js?version=fbfbfed67834caccf0672ee74b171f70823c05a7
HTTP/1.1" 404 1856
[19/Jan/2012 08:55:27] "GET
/static/main.js%7C1/js/libs/respond.js?version=33f8790234012648ce9fe3ccea30dfb0ebab3a6a
HTTP/1.1" 404 1826
[19/Jan/2012 08:55:27] "GET
/static/main.js%7C2/.media_url.js?version=9af983aec3356053aa327ae5bb7f55452adfbe3b
HTTP/1.1" 404 1811


%7c means a pipe character (|), so you're doing something funny in your 
configuration somewhere.


/static/main.js%7C0/js/libs/modernizr-2.0.min.js gives a 404, but it 
should probably be

/static/js/libs/modernizr-2.0.min.js

So it is all relative to main.js and it somehow has a | and some number 
behind it.


I think you've mis-configured something with that django-mediagenerator 
you mention. (or django-mediagenerator is defective, I don't know as I 
haven't heard about it).



Reinout

--
Reinout van Reeshttp://reinout.vanrees.org/
rein...@vanrees.org http://www.nelen-schuurmans.nl/
"If you're not sure what to do, make something. -- Paul Graham"

--
You received this message because you are subscribed to the Google 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.



Need help with userena - assign user to group at signup

2012-01-19 Thread Jesramz
I would like to separate users into two different groups, employer or
employee, at signup. I think the usual approach is to make two
different sign-up forms one for the employer group and another for the
employee group. I'm currently using django-userena. What would I have
to do to get this working? How do I add the user to the group?

-- 
You received this message because you are subscribed to the Google 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.



Multiple Symposion installs on single-domain

2012-01-19 Thread Alec Taylor
I would like to wrap Symposion into an architecture that permits
multiple Symposion "installs" (multi-site) on the one domain.

Symposion is the conference project built with Pinax which is used by
large Python conferences including PyCon and DjangoCon.

I would like to create a project providing the following features:
- Display list of conferences hosted on this domain
- Create a new conference "site" with one click (specific user-roles only)
- Centralised authentication and profiles (eventually expanded out
into a group-centred system [http://i40.tinypic.com/hvzdrk.png])

So the only link between Symposion "installs" is the centralised
authentication and profiles which show conference attendance history.

Any advice on how to allow multiple Symposion installs on the one domain?

Thanks for all suggestions,

Alec Taylor

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



Re: Having Headache With LoginForm

2012-01-19 Thread Mark Furbee
No problem. You will likely use the form objects in your template, I just
chose to create my own form in HTML.

Since the 'views.Login' is a string, you don't need to import it. It just
tells Django which view to pass the request to when that url pattern is
found. The ^ means the beginning of the url after the slash
(www.mysite.com/). The $ means the string ends. I found this useful, because without
it, multiple urls will match. For example: with `url(r'^login',
'views.Login')`, the following will all match and go to views.Login: 1)
www.mysite.com/login, 2) www.mysite.com/login_page, 3)
www.mysite.com/login?no_login=1. So I specify the $ to make it more exact,
more out of habit than requirement. If you add the slash to the end like
`url(r'^login/$', 'views.Login')`, it will require the slash, so
www.mysite.com/login will not match. If you want to have both urls work, I
think this will work (although untested): `url(r'^login/?$',
'views.Login')`, where the /? means that there could be no / or one slash.
With this, the following would not match: www,mysite.com/login///. If you
wanted to allow multiple slashes, change the ? with *, like
`url(r'^login/*', 'views.Login')`. Again, that's not tested, but it should
work, I think.

Happy Coding!

Mark

On Wed, Jan 18, 2012 at 6:09 PM, coded kid  wrote:

> Thanks bro. Don't you think I should import Login in urls.py? What
> about / in before the $ in urls.py? Or I should just place it like
> that?
>
> Mark Furbee wrote:
> > This is my login process.
> >
> > urls.py:
> > url(r'^login$', 'views.Login'),
> > url(r'^logout$', 'views.Logout'),
> >
> >
> > views.py:
> > def Login(request, next=None):
> > """
> > Used to log into the application.
> > """
> >
> > #  If the user is authenticated pass them through to the homepage.
> > if request.user.is_authenticated():
> > return HttpResponseRedirect('/')
> >
> > # If the user is not authenticated, but the method is POST, they have
> > posted their username and password.
> > if request.method == "POST":
> >
> > # Get Username and Password.
> > username = request.POST['username']
> > password = request.POST['password']
> >
> > # Authenticate.
> > user = authenticate(username=username, password=password)
> >
> > # If the User is not None, they have a valid account and
> password.
> > if user is not None:
> >
> > # If the user isactive, we can log them in.
> > if user.is_active:
> > # Log them in, and redirect to the homepage.
> > login(request, user)
> > return HttpResponseRedirect('/')
> >
> > # If the user is not active, pass them back to the login
> page,
> > with a message that the account is inactive.
> > else:
> > return render_to_response('login.htm', {'error': 'Account
> > Disabled - contact I.T. for assistance'},
> > context_instance=RequestContext(request))
> >
> > # The user with those credentials did not exist, pass them back
> to
> > the login page, with a message that the account was invalid.
> > else:
> > return render_to_response('login.htm', {'error': 'Invalid
> > Username/Password - contact I.T. for assistance'},
> > context_instance=RequestContext(request))
> >
> > # They have not yet attempted a login, pass them to the login page,
> > without any error messages..
> > else:
> >
> > return render_to_response('login.htm', {'NoSessionTimeout':
> 'True',
> > 'next': next}, context_instance=RequestContext(request))
> >
> >
> > def Logout(request):
> > logout(request)
> >
> > # Render the logout.htm page, which will display they are logging out
> > and redirect them to the login page.
> > return render_to_response('login.htm', {'notice': 'You have been
> logged
> > out successfully.'}, context_instance=RequestContext(request))
> >
> >
> >
> > template login.htm:
> >
> > .
> > .
> > .
> >  > method="post" name="login">
> >  {% csrf_token %}
> >  
> >  
> >  Login
> >  
> > 
> >  
> > {% if error %}
> >  
> > 
> >  {% FatalImage %}
> > {{ error }}
> > 
> >  
> > 
> >  {% endif %}
> > {% if warning %}
> > 
> >  
> > {% WarnImage %}
> >  {{ warning }}
> > 
> > 
> >  
> > {% endif %}
> >  {% if notice %}
> > 
> > 
> >  {% NoticeImage %}
> > {{ notice }}
> > 
> >  
> > 
> >  {% endif %}
> > 
> > Email address:  
> >  
> >  > maxlength="64" />
> >  
> > 
> > 
> >  Password:  
> > 
> >   > maxlength="255" />
> >  
> > 
> > 
> >  
> > 
> > 
> >  
> > 
> >  
> > 
> > 
> >  
> > 
> >
> >
> >
> > On Wed, Jan 18, 2012 at 8:09 AM, Mark Furbee 
> wrote:
> >
> > > Is that template mainpage.html?
> > >
> > > I'm not sure exactly what you mean is happening. When you open the
> login
> > > page it takes you back to the home page? Also, I would add in the
> my_login
> > > view that if they are already logged in to redirect them 

Re: file manager options for user home directory

2012-01-19 Thread Tom Evans
On Thu, Jan 19, 2012 at 4:33 PM, Brian Schott  wrote:
> That might work for a public folder in a user's home directory,
> but I was looking for a mechanism that doesn't involve gutting
> all security or relying on users to correctly set permissions our
> groups.  I could tolerate adding a key to a user .ssh/authorized_keys
> file that gives www-data user command="sftp-internal" access
> if django-storages sftp backend allows multiple accounts (or even as
> root if properly root jailed to /home).  Just feel I'm going the long way
> around the barn and am missing an obvious way to for web-based
> file management for user's files...

So, the key issue is "how do I read/create/remove files owned by
another user account as though I was that user account".

I would implement this as two parts - a django frontend that runs as a
non privileged account and serves content fetched from the backend,
which runs as root, and changes to the specified uid on each request
from the frontend.

You would have to implement an API for talking to this service - I
guess listing directories, fetching content, removing content and
putting content would cover it.

A much less efficient approach would be to grant access to your
unprivileged account to sudo as the appropriate user, and use 'cat',
'rm' and 'mv' to put the content into place (this seems hacky and slow
to me!). It also leaves you much more open if you are exploited, www
can now trash users files.

Yet a third way would be to patch django to run as root, and to drop
privileges to the determined user (or www if not authenticated) as
soon as possible. I would be wary doing that, you only need an
exploitable hole before this happens to give root access.

One way of doing the first option I mentioned would be to use
something like apache, mod_webdav, itk MPM and mod_vhost_alias. Use
mod_vhost_alias to dynamically create vhosts, use mod_itk to have each
vhost run as a separate user and use webdav as your API to access the
files. I'm not sure if there is a webdav storage backend for django
yet, and I'm also not sure that itk supports dynamically adding
vhosts.

In other words, what you're doing is hard :)

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.



Senior Django / Python Role, Birmingham UK

2012-01-19 Thread jamesm
Job Description

To provide a senior development role within the department and
support / develop junior members of the team
To ensure the availability of business critical systems
To maintain and monitor website(s) & admin systems including;
- System monitoring via Nagios and Munin
- Websever and associated technologies
- Database and associated technologies
- Development and Test platforms
- Version Control Systems
To report on and investigate issues with the above
To assist in developing technical specifications for development
work
To assist in architecture planning for internal and external
systems
To liaise with and advise the Head of IT and Directors on
development tasks

Skills & Requirements

Strong background in online development environments,
specifically:
- Python
- Django
- PostgreSQL
- Apache
- Linux
- JQuery
Excellent Linux system administration, with strong security focus
Thorough understanding of version control, code migration and
testing environments
Solid commercial awareness
Keen eye for attention to details
Delivery focussed
Other development languages considered advantageous include PHP,
C#, .NET
Awareness of Microsoft operating systems and servers
Comfortable communicator

About The Business

Leading online UK niche investment business based in Birmingham UK.
Friendly, relaxed and open atmosphere with frequent socials. Customer
and employee centric business who have earned an excellent reputation
within their industry for service and quality. Client discretion is an
absolute must -hence the URL in this advert being for Stackoverflow.

No agencies at this time please. If you have any questions, please do
not hesitate to get in touch.

-- 
You received this message because you are subscribed to the Google 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: file manager options for user home directory

2012-01-19 Thread Brian Schott
That might work for a public folder in a user's home directory, but I was 
looking for a mechanism that doesn't involve gutting all security or relying on 
users to correctly set permissions our groups.  I could tolerate adding a key 
to a user .ssh/authorized_keys file that gives www-data user 
command="sftp-internal" access if django-storages sftp backend allows multiple 
accounts (or even as root if properly root jailed to /home).  Just feel I'm 
going the long way around the barn and am missing an obvious way to for 
web-based file management for user's files...

On Jan 19, 2012, at 12:56 AM, Mike Dewhirst wrote:

> On 19/01/2012 2:10pm, Brian Schott wrote:
>> Looking for some expert advice.  I need to provide an upload and file
>> browse capability for a user's home directory.  It doesn't have to be
>> a full blown file explorer necessarily, just a basic upload,
>> download, rename, delete.  What's the best way to deal with the
>> userid issues on Linux?   The files live in a user's home directory,
>> so the files are owned by the user, not www-data, and it's probably
>> not an option to set the default group to www-data.  Users can remote
>> desktop and/or ssh to their account, so no predicting what user/group
>> creation will happen behind the scenes.
> 
> If the user makes the particular files world-readable/writable it doesn't 
> matter what the uid/gid happens to be. Everything should just work for nginx.
> 
> 
>> 
>> I've thought about different options, but they all have tradeoffs: 1.
>> dav enabled nginx process for each user with a javascript dav file
>> explorer? 2. django-storages with sftp? 3. something else?
>> 
>> Brian
>> 
>> Brian Schott bfsch...@gmail.com
>> 
>> 
>> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
> 



smime.p7s
Description: S/MIME cryptographic signature


django-html5boilerplate error

2012-01-19 Thread girish shabadimath
Hi all,
I wanted to use html5 in my website so downloaded django-html5boilerplate (
https://github.com/HowlingEverett/django-html5boilerplate).Now, I am
getting following error when I run "python manage.py runserver". Page loads
without any error, but gives following 404 errors in terminal:

error:
[19/Jan/2012 08:55:27] "GET / HTTP/1.1" 200 3984
[19/Jan/2012 08:55:27] "GET
/static/style.css%7C0/0/css/style.css?version=3613de347c61c22d6570ac95170381b50c516229
HTTP/1.1" 404 1823
[19/Jan/2012 08:55:27] "GET
/static/main.js%7C0/js/libs/modernizr-2.0.min.js?version=fbfbfed67834caccf0672ee74b171f70823c05a7
HTTP/1.1" 404 1856
[19/Jan/2012 08:55:27] "GET
/static/main.js%7C1/js/libs/respond.js?version=33f8790234012648ce9fe3ccea30dfb0ebab3a6a
HTTP/1.1" 404 1826
[19/Jan/2012 08:55:27] "GET
/static/main.js%7C2/.media_url.js?version=9af983aec3356053aa327ae5bb7f55452adfbe3b
HTTP/1.1" 404 1811
[19/Jan/2012 08:55:27] "GET
/static/main.js%7C3/js/libs/jquery-1.6.1.js?version=27fec0157ad2cbaf511c55e7a08e3f7a9203f020
HTTP/1.1" 404 1841
[19/Jan/2012 08:55:27] "GET
/static/main.js%7C4/js/plugins.js?version=b2a0e8020b055f45938756d7af9fb15e148da48f
HTTP/1.1" 404 1811
[19/Jan/2012 08:55:27] "GET
/static/main.js%7C5/js/script.js?version=a28d568ec9a57b6100ad007af2cdf5abc652898c
HTTP/1.1" 404 1808
[19/Jan/2012 08:55:27] "GET
/static/images/favicon.ico?version=fbca3763388730d21663305cbe0ae0f6ac458a46
HTTP/1.1" 200 1150
[19/Jan/2012 08:55:27] "GET
/static/main.js%7C1/js/libs/respond.js?version=33f8790234012648ce9fe3ccea30dfb0ebab3a6a
HTTP/1.1" 404 1826
[19/Jan/2012 08:55:27] "GET
/static/images/favicon.ico?version=fbca3763388730d21663305cbe0ae0f6ac458a46
HTTP/1.1" 200 1150
[19/Jan/2012 08:55:27] "GET
/static/main.js%7C2/.media_url.js?version=9af983aec3356053aa327ae5bb7f55452adfbe3b
HTTP/1.1" 404 1811
[19/Jan/2012 08:55:27] "GET
/static/main.js%7C3/js/libs/jquery-1.6.1.js?version=27fec0157ad2cbaf511c55e7a08e3f7a9203f020
HTTP/1.1" 404 1841
[19/Jan/2012 08:55:27] "GET
/static/main.js%7C4/js/plugins.js?version=b2a0e8020b055f45938756d7af9fb15e148da48f
HTTP/1.1" 404 1811
[19/Jan/2012 08:55:27] "GET
/static/main.js%7C5/js/script.js?version=a28d568ec9a57b6100ad007af2cdf5abc652898c
HTTP/1.1" 404 1808

I have installed django-mediagenerator and followed all the steps given in
README doc.

Am I missing anything here or is there any other way to do this?

regards,
girish ms,
9742566330

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



Re: Could someone please give some suggestions about how to set up email sending settings on production.

2012-01-19 Thread Markus Gattol
you either use your own MTA (e.g. postfix) or you use a third party such as 
Amazon SES for which there is a Django application: 
https://github.com/hmarr/django-ses

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



Forms for work request sheets

2012-01-19 Thread Krondaj
Hi,

i have completed the tutorials for Django...

Unfortunately, as I've only been learning python/django for about 1
week now. I'm a little stuck

i would like to make an internal webform (at work, run from my
computer - or a new one if successful) that basically people fill in
to request materials science resource (i am a materials scientist),,,
At the moment it's on a stupid spreadsheet.  And I would like to make
this as a webform, where the requests are stored on a form in the sql
database and which i can view through my web browser.  Basically I
said i'd have a crack at making a form that meant that once I had a
request, with data they fill in.  I then do the work and fill in the
rest and it emails them to tell them that i have done the work and the
details / report are at ... (i'd like the databased to store the doc
file in the database.

is this a relatively easy thing to do?

I have an example template that i knocked up in emailmeform... So that
i could show my boss roughly what it would look like

http://www.emailmeform.com/builder/form/f6n9lOe203764cer989eap7I


but i don't what the form to be publically availiable on the internet
(at the moment). i'd also like the people requesting resource to sign
in the the Request Resource website and enter there login details, to
authenticate them.  if successful this as going to be rolled out so
that it resource could be erquested to others etc.. (not just me!)


I'm not sure realy how to progress!?!

-- 
You received this message because you are subscribed to the Google 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 is the best IDE to use for Python / Django

2012-01-19 Thread Tom Evans
On Thu, Jan 19, 2012 at 2:08 PM, Krondaj  wrote:
> Hi,
>
> I was wondering what the best IDE to use for Python / Django would
> be?
>
> I am currently using Geany, but i'm sure there is a better (hopefully
> free) one out there!?!
>

This topic comes up once per week, there is no correct answer, use
whatever you feel comfortable with.

http://www.google.co.uk/search?q=+site:groups.google.com+django-users+best+ide

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.



Re: what is the best IDE to use for Python / Django

2012-01-19 Thread Andre Terra
*** Everyone, please DO NOT reply to this thread. ***

Krondaj, feel free to search the archives for similar threads. This
question has been asked an answered at least a dozen times.


Cheers,
André Terra

On Thu, Jan 19, 2012 at 12:08 PM, Krondaj  wrote:

> Hi,
>
> I was wondering what the best IDE to use for Python / Django would
> be?
>
> I am currently using Geany, but i'm sure there is a better (hopefully
> free) one out there!?!
>
> Regards,
>
> Chris
>
> --
> You received this message because you are subscribed to the Google 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.



what is the best IDE to use for Python / Django

2012-01-19 Thread Krondaj
Hi,

I was wondering what the best IDE to use for Python / Django would
be?

I am currently using Geany, but i'm sure there is a better (hopefully
free) one out there!?!

Regards,

Chris

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



Re: Could someone please give some suggestions about how to set up email sending settings on production.

2012-01-19 Thread Nikhil Verma
Well if i understand you correctly for production you need one email server
may be google apps or Microsoft any one  can help you.
Also if you wana check at your local there is POSTFIX just google around
you will get many articles about configuring it.
In this case you don't need to write your email address and password.

So in your settings.py or settings_local you need something like this.


# Email server config
EMAIL_HOST = 'localhost'
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
EMAIL_PORT = 25
EMAIL_SUBJECT_PREFIX = '[Django] '
SERVER_EMAIL = 'django@localhost'

May be my answer can help you.

On Thu, Jan 19, 2012 at 8:15 AM, Chen Xu  wrote:

> Hi, everyone:
>
> Could someone please give some suggestions about how to set up email
> sending settings on production.
>
> I know on local, you can do  either:
> python -m smtpd -n -c DebuggingServer localhost:1025
>
> EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
>
> EMAIL_HOST = 'localhost'
> EMAIL_PORT = 1025
>
> and then email will be printed on the terminal
>
> or
> EMAIL_USE_TLS = True
> EMAIL_HOST = 'smtp.gmail.com'
> EMAIL_PORT = 587
> EMAIL_HOST_USER = 'm...@gmail.com'
> EMAIL_HOST_PASSWORD = 'pw'
>
> but I dont want to use gmail account to send emails on production.
>
> Therefore, could someone please help?
>
>
> Thanks very much
> Best regards
>
>
> --
> ⚡ Chen Xu ⚡
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



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

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



Re: Could someone please give some suggestions about how to set up email sending settings on production.

2012-01-19 Thread Lie Ryan

On 01/19/2012 01:45 PM, Chen Xu wrote:

but I dont want to use gmail account to send emails on production.


you're leaving one thing out from your question, what do you want to use 
instead?


Check your web host, many webhosts provides smtp service.

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



Re: Could someone please give some suggestions about how to set up email sending settings on production.

2012-01-19 Thread Timothy Makobu
Hi,

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


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

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



-- 
sent from my two tin cans via hangerwire

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



Re: Could someone please give some suggestions about how to set up email sending settings on production.

2012-01-19 Thread Daniel Roseman
On Thursday, 19 January 2012 02:45:09 UTC, Chen Xu wrote:
>
> Hi, everyone:
>
> Could someone please give some suggestions about how to set up email 
> sending settings on production.
>
> I know on local, you can do  either:
> python -m smtpd -n -c DebuggingServer localhost:1025
>
> EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
>
> EMAIL_HOST = 'localhost'
> EMAIL_PORT = 1025
>
> and then email will be printed on the terminal
>
> or 
> EMAIL_USE_TLS = True
> EMAIL_HOST = 'smtp.gmail.com'
> EMAIL_PORT = 587
> EMAIL_HOST_USER = 'm...@gmail.com'
> EMAIL_HOST_PASSWORD = 'pw'
>
> but I dont want to use gmail account to send emails on production.
>
> Therefore, could someone please help?
>
>
> Thanks very much
> Best regards
>
>
> -- 
> ⚡ Chen Xu ⚡


I don't understand the question. You use the settings of whatever your mail 
server is. If you don't use gmail, presumably you have a different mail 
server, so use that.
--
DR.

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