Hey,
Unfortunately, if you are developing alone, then you got to buy the
book "Learning CSS in 3 minutes and 42 seconds by Oscar Wilde" ;-)
thats what I did, or else as Praveen and br suggested, get a template
and hack it. But as my personal experience, templates never fits your
need unless
i used "debug = False" in setting.py, that's why i couldn't see what
the real error is because of the page appearance!
thank you for your attention,
On Jun 6, 5:31 am, Dave Sayer wrote:
> Have you followed the whole of the tutorial?
> On 6 Jun 2011 07:41, "bahare hoseini"
Thanks for the feedback guys. Been using mamp for awhile for other
frameworks (cake), but I still prefer python for scripting at the end
of the day.
Had a few issues with MySQLdb installation. 1st time using django and
it doesn't seem so str8 forward to deploy?
Will work on the recommendations
hello everyone, i need some help;
i want the users to download some files.. {say photos}
and what setting do i have to take care using FileField. where all
these photos will be stored and how can user download the photos
--
You received this message because you are subscribed to the Google
Also, using the update_feeds that's part of the Django Community
Aggregator worked initially, but I started over adding a m2m field on
the Feed model for Sites. I'll have several "sites" as part of the
Django app, like team1.mysite.com, team2.mysite.com, etc.
When I added that field to the models
On Sun, Jun 5, 2011 at 10:11 AM, Developr wrote:
> Hi!
>
> I'm currently developing for Django using the following the setup:
>
> Ubuntu 10.10
> PyCharm
> VirtualEnv
> Yolk
> Pip
>
> For testing I generally just use the inbuilt dev server that Django
> provides.
>
> For
Dev:
OS X 10.6
MacVim
virtualenv/pip
TDD (unit test), bundled Django dev server
Production:
RHEL 5.5, 6.0
Apache for static files
mod_wsgi
Xavier, could you point to any resources about using buildout with Django,
virtualenv and pip? I'm assuming you're using it to deploy things into
What is listed under Coming Soon makes sense. In that order.
Best regards,
Martin
On Tue, Jun 7, 2011 at 8:01 AM, David wrote:
> Let's start with a more concrete question: what do users think should
> be in tutorial 5 and beyond?
>
> On Jun 6, 1:20 pm, Paweł
Let's start with a more concrete question: what do users think should
be in tutorial 5 and beyond?
On Jun 6, 1:20 pm, Paweł wrote:
> When next part of Django
> Tutorial?https://docs.djangoproject.com/en/1.3/intro/tutorial04/
--
You received this message because you
This could be the wrong place to ask (maybe a BeautifulSoup)
question...
I have a Django app that is based around the Django Community
Aggregator, it gets feeds from various sites and displays them on my
site. What I am wanting to do, if possible, is when it gets a feed if
a certain zip code is
When next part of Django Tutorial?
https://docs.djangoproject.com/en/1.3/intro/tutorial04/
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send
For diagnostic purposes, I want every one of my templates to emit an
HTML comment showing the template name. I was doing fine just
dropping "", etc, in each template, until the first
time I renamed a template and forgot to update the comment :-)
Any way to automate this process so I can do ""?
Check out BabelDjango: http://babel.edgewall.org/wiki/BabelDjango
We've been using it to display currencies and it works pretty well for our
needs (which includes two currency formats, Canadian English ($1,123.45) and
Canadian French (1 123,45$).)
Cheers,
Jody
On Sun, Jun 5, 2011 at 4:39 PM,
Everyone complains, but no one submits patches.
On Mon, Jun 6, 2011 at 12:54 PM, scot.hac...@gmail.com
wrote:
>> On Monday, June 6, 2011 2:30:25 AM UTC+1, Kolbe wrote:
>>
>> > Anyone have any good documentation on getting django with MySQL on OSX
>> > out there?
>
> It
Hello,
Here's some example code:
[code]
class Creative(...):
file2 = models.ManyToManyField('Asset', ...)
class Asset(...):
file = models.FileField(...)
[/code]
Can I use limit_choices_to to limit "Asset" to only the files that were
uploaded by the currently viewed
you may also wish to look into django-registration.
On Mon, Jun 6, 2011 at 1:03 PM, Shawn Milochik wrote:
> Most of the info you need is here:
>
>
> https://docs.djangoproject.com/en/1.3/topics/auth/#authentication-in-web-requests
>
> If you get stuck understanding any
Most of the info you need is here:
https://docs.djangoproject.com/en/1.3/topics/auth/#authentication-in-web-requests
If you get stuck understanding any specific points in the docs then let
us know (be as descriptive as possible) and you'll probably get help.
--
You received this message
> On Monday, June 6, 2011 2:30:25 AM UTC+1, Kolbe wrote:
>
> > Anyone have any good documentation on getting django with MySQL on OSX
> > out there?
It really is amazing how difficult this still is. I've written two
guides on this - one for pre-Leopard, one for post-Leopard:
Hey guys,
I'm sort of new to this, can someone talk me through on how to make a
simple login/create user interface? How exactly do I use the auth_user
stuff? Should I even use these given tables? What should the mysql
tables look like anyway? What about password encryption? If I don't
use the
I have a model lets say, MyModel which has a foreign key to another
model say Tag.
class MyModel(models.Model):
id=models.AutoField(primary_key=True)
name=models.CharField(max_length=200)
tag = models.ManyToMany(Tag)
I have approximately 50,000 instances of MyModel and each MyModel
Have commented out the 'SESSION_COOKIE_SECURE' and
'SESSION_EXPIRE_AT_BROWSER_CLOSE' from the settings.py file.
This has fixed the problem and I can now log in to admin.
On Jun 6, 1:33 pm, Aidan wrote:
> Thanks for the input.
>
> I've tried deleting all .pyc files and still
Hi folks --
I'm having a problem with TemplateSyntaxErrors in Django 1.2 because a
third-party app's views aren't setting a variable that gets used in
filters (see [1]).
I can't set the variable in a context processor because I don't want
to override it in places where I'm setting it explicitly.
Hello Bobby,
No answer just some thoughts. Did the MIME type change for Excel between
2003 and 2010?
If your file dump is in a text format and is delimited with tabs or commas,
can you change your MIME type to a plain text one? Although the apps may
ask to convert when opening files that
Hello Ben,
Take a look at <
https://docs.djangoproject.com/en/1.3/topics/auth/#storing-additional-information-about-users
>.
Toodle-l...
creecode
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the
Hello Paul,
On Monday, June 6, 2011 5:12:28 AM UTC-7, Paul Schewietzek wrote:
> But I'm getting too far off topic with this I guess.
>
Personally I don't mind a little drift off topic on this one. KG (original
poster) was having a problem with using a communication channel about
Django.
hey -
we are dumping results to excel as such:
response = render_to_response('templatename_excel.html',
{'trs':trs,})
filename='myfilename.xls'
response['Content-Disposition'] = 'attachment; filename='
+ filename
response['Content-Type'] =
MacPorts will install it too, but you might find there are a lot of
dependencies.
On Jun 6, 2011 9:56 AM, "Ivo Brodien" wrote:
>
>
>> MAMP. about as easy as it can get.
>> http://www.mamp.info/de/index.html
>
> But you will still need to install somehow MySQLdb and that is the
Thank you for your response,
I didn't want to disable crsf token. I wanted to disable django
comment's security_hash
I managed to do that overriding comment's forms.py
:)
On Jun 6, 4:38 pm, Ivo Brodien wrote:
> search for csfr excempt decorator.
>
> On Jun 6, 2011, at 4:35 PM,
Thanks, this is very helpful and gives me some good ideas to start
implementing.
One question I have is:
If i'm using Django's built-in User class (and corresponding
authentication) and I want to be able to associate each user with an
organization and be able to access a user's organization from
search for csfr excempt decorator.
On Jun 6, 2011, at 4:35 PM, Ján Vorčák wrote:
> Hi,
>
> I'd like to ask you about one problem.
> I need to remove security hash django comments module. I need to allow
> posting to my app from external application just by posting the post
> request.
> How can
On Mon, Jun 6, 2011 at 10:29 AM, Temesgen Gebeyehu wrote:
> Exception Type: DatabaseError at /admin/books/author/add/
> Exception Value: no such table: django_admin_log
>
>
A table used by the admin doesn't exist; you don't seem to have run syncdb
after adding admin to
Hi,
I'd like to ask you about one problem.
I need to remove security hash django comments module. I need to allow
posting to my app from external application just by posting the post
request.
How can I do that? Is there any way to disable this "security hash"
protection?
Thank you
--
You
Environment:
Request Method: POST
Request URL: http://127.0.0.1:8000/admin/books/author/add/
Django Version: 1.4 pre-alpha SVN-16262
Python Version: 2.7.1
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
My team has a designer (designs stuff in Photoshop), a front-end
developer who is comfortable taking designer's photoshop and
converting it to HTML/CSS/Javascript (and does a bit with django
templates), and then the back-end team (myself and co.) who put the
django behind it. We are a very
> MAMP. about as easy as it can get.
> http://www.mamp.info/de/index.html
But you will still need to install somehow MySQLdb and that is the main problem.
I don’t know about homebrew, but I remember that I had troubles getting MySQLdb
to work but I eventually did with the help of various
> > if form.is_valid():
> > f = request.FILES['file']
> > data_set = DataSet()
> > data_set.save('foo', f)
>
> I suspect this is the problem: you create an empty instnce of DataSet
> and then call its save method. model.save has three optional arguments
>
MAMP. about as easy as it can get.
http://www.mamp.info/de/index.html
On Jun 6, 8:51 am, Daniel Roseman wrote:
> On Monday, June 6, 2011 2:30:25 AM UTC+1, Kolbe wrote:
>
> > Anyone have any good documentation on getting django with MySQL on OSX
> > out there?
>
> >
Thanks for the input.
I've tried deleting all .pyc files and still get the same issue.
Also checked the cookies - I've got one sessionid and one csrftoken,
so that doesn't look like the issue.
I've tried using the chrome javascript debugger to look for 404's and
haven't found any.
I haven't
On Mon, Jun 6, 2011 at 12:12 PM, Paul Schewietzek
wrote:
> If at all, shouldn't they block domains instead of IP's?? Dunno.
>
> But I'm getting too far off topic with this I guess.
>
> Have a nice day =)
>
I worked as a spam fighter for a while, can share my insight:
If at all, shouldn't they block domains instead of IP's?? Dunno.
But I'm getting too far off topic with this I guess.
Have a nice day =)
Paul
2011/6/6 Kenneth Gonsalves
> On Mon, 2011-06-06 at 13:57 +0200, Paul Schewietzek wrote:
> > Maybe your email address or the
On Mon, 2011-06-06 at 13:57 +0200, Paul Schewietzek wrote:
> Maybe your email address or the whole domain was being blacklisted for
> some
> reason I don't really know about SMTP and stuff, but aren't there
> grey-/blacklisting services out there that any mailserver can access?
I get a
Maybe your email address or the whole domain was being blacklisted for some
reason I don't really know about SMTP and stuff, but aren't there
grey-/blacklisting services out there that any mailserver can access?
Paul
2011/6/6 Kenneth Gonsalves
> On Mon, 2011-06-06
On Mon, 2011-06-06 at 13:24 +0200, Paul Schewietzek wrote:
> When you reply to a mail that pers...@example.com posted via the
> mailing
> list, do you send your reply to personX@example or to
> django-users@googlegroups.com?
the latter
--
regards
KG
http://lawgon.livejournal.com
Coimbatore LUG
When you reply to a mail that pers...@example.com posted via the mailing
list, do you send your reply to personX@example or to
django-users@googlegroups.com?
Paul
2011/6/6 Kenneth Gonsalves
> On Sun, 2011-06-05 at 08:26 -0700, creecode wrote:
> > I'm assuming you mean
On Mon, Jun 6, 2011 at 6:57 AM, Aidan wrote:
> I'm having trouble with the Django Admin. My login page appears ok at
> http://127.0.0.1:8000/admin but when I try to login with a valid
> username or password the page seems to refresh - it reappears with
> text boxes empty. It
Oh and:
- delete all *.pyc files from your project and restart the development
server <-- this is a nice one that often solves mysterious problems that
seem to be impossible and drive you insane
Best regards,
Martin
On Mon, Jun 6, 2011 at 7:13 PM, Martin
I faced this a long time ago and it nearly drove me insane. Eventually I
just started a new project from scratch and the problem disappeared.
Wild guesses:
- Open the JavaScript debug toolbar of Google Chrome (CTRL+SHIFT+J), then
reload the site and see if there are any 404 errors (that
I'm having trouble with the Django Admin. My login page appears ok at
http://127.0.0.1:8000/admin but when I try to login with a valid
username or password the page seems to refresh - it reappears with
text boxes empty. It doesn't display any errors on the page (logging
in with invalid username /
On Sat, Jun 4, 2011 at 3:27 AM, Jimmy wrote:
> I'm new to Django and not quite understand your explanation.
>
> How can I create a specific session_key, and access to the session by
> that key? Any risk that I have if I expose the session_key to the
> outside?
>
> Thank
Have you followed the whole of the tutorial?
On 6 Jun 2011 07:41, "bahare hoseini" wrote:
> hi there,
> i use django vs1.3
> i started editing urls.py to look loke this:
>
> from django.conf.urls.defaults import *
>
>
>
> from django.contrib import admin
>
>
*If you are a developer (with much less designing skills) and want to get up
and running with your site, **then I would suggest you to go and buy an html
template and integrate it with **django. I recommend themeforest.com (I'm
not affiliated with them anyways!). **Playing with html templates will
On 2011-06-06, at 07:36 , Constantine wrote:
> Hi, a have a problem, but may be this is expected behaviour:
>
> on client side i'm post:
> $.post("my url",{myvar:null}...)
>
> but on server side:
> request.POST becomes {myvar:u'null'}
>
> null deserialized to string. So, do i need to report a
Thanks, i've workaround this with empty string.
I was surprised when saw raw_post_data which looks very similar to GET
string. I confused this behaviour with JSON parser.
On 6 июн, 12:50, Jani Tiainen wrote:
> On Sun, 2011-06-05 at 22:36 -0700, Constantine wrote:
> > Hi, a
On Monday, June 6, 2011 2:30:25 AM UTC+1, Kolbe wrote:
>
> Anyone have any good documentation on getting django with MySQL on OSX
> out there?
>
> Cheers!
> Kolbe
Just use Homebrew[1]. There's no reason to do it any other way.
[1]: https://github.com/mxcl/homebrew
--
DR.
--
You
On Sun, Jun 05, 2011 at 07:18:24PM -0700, Roy Smith wrote:
> I'm trying to figure out how to upload a file. I've got a model that
> looks like:
>
> class DataSet(models.Model):
> file = models.FileField(upload_to='data/%Y/%m/%d')
>
> and my view method is:
>
> def create_data_set(request):
hi there,
i use django vs1.3
i started editing urls.py to look loke this:
from django.conf.urls.defaults import *
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
(r'^polls/$', 'polls.views.index'),
(r'^polls/(?P\d+)/$', 'polls.views.detail'),
56 matches
Mail list logo