I would like to weigh in on this discussion because I started out
developing Django apps fairly platform agnostic in college, meaning
that I worked on the apps on a variety of systems (although not too
much on macs). My big project has been Django-Classcomm (http://
classcomm.googlecode.com/). We
t can practically negate such concerns as this one.
-Matteius
On Nov 20 2011, 8:45 am, Jonathan wrote:
> Does anyone know if this progressed anywhere since '09?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this grou
PyCharm 2.0 has been released and I've been using PyCharm for over a
year now with strong results. It is great to have an editor that can
correct you and help auto-complete your code.
-Matteius
On Dec 19, 10:42 am, Masklinn wrote:
> On 2011-12-19, at 16:30 , Andre Terra wrote:
>
&
oreign key, get that data also with select_related
Post.objects.all().filter(pub_date__year=2005).select_related('model_name').order_by('-
pub_date')
# You could also order by count
Post.objects.all().filter(pub_date__year=2011).order_by('count')
Hope this helps,
Matteius
amp; Q(constraint2))
the_Bs = B.objects.all().filter(Q(constraint1) | Q(constraint2))
-Matteius
Don't overlook how powerful this is because Django has Manager classes
so you can make your constraints refer to both local properties and
foreign key constraints as well as properties within the foreig
Thanks for both suggestions, I recently tried this approach and
reached success when I ran my tests. So I think this is the correct
approach and I'll include this CSRF style testing with my test suite
now.
-Matteius
On Jul 7, 6:02 am, Craig Blaszczyk wrote:
> csrf_token is a proxy obje
do much with form validation beyond what is default
and beyond what I have included in my model definitions. Rendering
forms and displaying any error messages is standard fare included in
Django as far as I see it.
-Matteius
On Jul 12, 12:35 pm, Andre Terra wrote:
> On Tue, Jul 12, 2011 at 2
If I am unable to attend at the scheduled time I absolutely must watch
the resulting recording. Thanks for your efforts.
On Jun 22, 5:50 pm, "Cal Leeming [Simplicity Media Ltd]"
wrote:
> Nice!
>
> On Wed, Jun 22, 2011 at 11:39 PM, Thomas Weholt
> wrote:
>
>
>
>
>
> > On Wed, Jun 22, 2011 at 4:4
nt
> csrf_client = Client(enforce_csrf_checks=True)
>
> https://docs.djangoproject.com/en/dev/ref/contrib/csrf/#testing
>
> 10.06.2011, 08:48, "Matteius" :
>
>
>
> > Greetings,
>
> > I am writing unit tests for my application, and I want to leave
I've been really happy with Valcato Hosting which has all that shell
hosting shared goodness and a fast turn around on trouble tickets at
excellent pricing: https://secure.valcato.com/aff.php?aff=070
-Matteius
--
You received this message because you are subscribed to the Google G
Greetings,
I am writing unit tests for my application, and I want to leave CSRF
checks enabled in testing. This means on my POST I am getting 403
because I have not figured out how to add csrf to my context when
using the test client. Please advise on how to most easily do this:
# Issue
Yes I would appreciate a more integrated login approach or standard
accounts. Facebook login is possible without having to give you
access to post to my wall. Very restrictive in the current phase, but
looks interesting underneath the login request.
-Matteius
On Jun 2, 4:05 am, Tom Evans
# Configure Project Logging using Django Logging setting and
specifying
# Dict-Config to Python 1.6
LOGGING = {
'version': 1,
'formatters': {
'simple': {
'format': '%(asctime)s %(levelname)s %(module)s [%(name)s]
- %(message)s \n',
},
'verbose': {
I am pycharmed by pycharm. It is a very good way to edit Django
models, views and templates.
On May 24, 1:47 pm, shofty wrote:
> why not use a python ide that is html aware?
> pycharm by jetbrains is good.
>
> On May 24, 6:49 pm, AJ wrote:
>
>
>
> > Simon,
>
> > Can you please give details of p
Please keep us updated when a new release is available, I've had this
on my list of things to try for a while.
On Apr 4, 3:24 am, Daniel Hilton wrote:
> On 4 April 2011 08:16, Charlie Offenbacher
>
>
>
>
>
> wrote:
> > Hi everyone!
>
> > I'm try to install johnny-cache on Django 1.3. I literally
model is showing up.
-Matteius
On Mar 27, 4:04 pm, Ian Clelland wrote:
> On Sun, Mar 27, 2011 at 1:47 PM, Matteius wrote:
> > add_introspection_rules([], ["^student_portal\.fields
> > \.ProtectedFileField"])
> ...
> > ! Cannot freeze field 'student_portal.
description = ugettext_lazy("File path with Auth_Token support.")
I've added the south specific code to models.py, __init__.py and as
mentioned fields.py.
from south.modelsinspector import add_introspection_rules
# We need to add introspection rules to our custom fields
I have an Announcement class in my project that has an author field.
I have a custom formfield_for_foreignkey which gets all staff users
for any super user, and I do the same thing for other staff users.
Ideally however we could set this to be only the existing author (if
any) or the current user.
One of the things I've considered lately that I would like for my
Django project is a Word Press like internal update tool. Something
that would tie into the contrib admin and work to update the app from
either a repository or a deployment file. This tool app would need to
add new files, update e
nt wrapper for clean_fields to exclude author so we
can fill in on save. """
super(Announcement, self).clean_fields(exclude)
# EndDef
The problem is that it doesn't seem to exclude this field and I still
get the error:
"This field is required."
On Feb 1
ws wrote:
> Hi Matteius,
>
> You must set blank=True in the model so that the form can be returned to you
> with those fields empty and then you fill it in the save().
>
> pub_date = models.DateTimeField(blank=True)
> author = models.ForeignKey(User, blank=True, verbos
I have an Announcement model that has two fields I want to auto-fill
in when they are left blank (they are required fields with normal
defaults). I have the following Code (simplified data listing for
this post) THe Problem is that when I go to save an Announement
in the admin with either of
So I've been implementing the new Django 1.2 and 1.3 methods such as
queryset in my admin.py for my Classcomm student models. All is going
well, in the case of an Add/Edit DDO page I went from having 82/87 to
6/10 queries which makes things now much more tolerable. However I
still have a concern
You may be interested in this school system django-classcomm:
http://classcomm.googlecode.com/ demoed at http://classcomm.net/ I
am the primary developer on this and I have JIRA project management
and product backlog etc. so perhaps you would be more interested in
working off an existing system.
machine with nano vim or emacs.
Good Coding,
Matteius
On Feb 8, 9:44 pm, broz wrote:
> I've been curious about workflow with Django sites (or other
> frameworks for that matter). I LOVE being able to remote edit. I can
> see where this request is coming from. If I want to edit a file o
I want to let you know that I have written some documents that could
really help with precisely what you are trying to do:
http://code.google.com/p/classcomm/wiki/CreateFromScratch
Then you can demo my application and learn about deploying a Django
based project for prod use here:
http://code.go
try:
gs=DinnerHost.objects.all().filter(complete()=True
objects by default doesn't select anything, so either use
objects.get(pk=var_pk) or the a-typical case all().
-Matteius
On Jan 16, 7:04 am, rmschne wrote:
> Following is an extract of a Model I'm using. I'd like to be
Well since that is the case, why even use Django? Why not just do
this conversion/forwarding using the existing Perl OpenToken library
and deploy it to a cgi-bin?
-Matteo
On Jan 7, 2:17 pm, Justin wrote:
> Matteo,
>
> Thanks for the response. I wish I could just use the
> django.contrib.auth au
I don't understand why you would need to use this for server-side
authentication in the Django environment? So this OpenToken Single
Sign-on appears to be more similar to Django's own
django.contrib.auth, and django.contrib.sessions packages, and
possibly even less secure (and less documented) tha
label=_("Password:"))
3.) Encrypting the password before storing it to the database is easy
by calling the right Django method:
User.objects.create_user(username, email, password)
Hope this helps,
Matteius
On Dec 16, 6:47 am, Tom Evans wrote:
> On Thu, Dec 16, 2010 a
OK So these are UI issues and how you are saving Users to the
database. The database field itself is a CharField.
1.) To hide form elements add a tupple inside the FormField under
class meta like so:
class CasUserForm(ModelForm):
exclude = [field1, field2]
2.)
On Dec 16, 6:39 am, Reino wrote:
Internet. This is the best approach because the files
are severed off the web server pretty much like any static overheard
file. Then in your view code you check a User's permission to the
file before generating them the time-sensitive URL.
Cheers!
Matteius
On Dec 15, 5:16 am, "
Have you tried using Firebug Firefox Add-on?
On Nov 25, 3:46 pm, ydjango wrote:
> Django debug and django debug tool bar are not capturing the django
> ORM calls made from the views which are called via AJAX calls in the
> page . Is there any way to profile these sqls and times ?
--
You receive
requested course and set the course_id
course = enrollment.course.id
course_id = course.id
which reduces the number of SQL queries by 1 each page request or
shaves off about .4ms per page view.
-Matteius
On Nov 1, 1:24 pm, Matteius wrote:
> In this case there is no form POST data
In this case there is no form POST data so that code gets skipped. I
started profiling with the django_debugger_toolbar and my SQL data
results are at the bottom. There are duplicate SQL select statements
for handin_course and auth_user which doesn't make sense to me as I
understand how views sho
Please try out Live Demo for Django CMS Classcomm ...
http://code.google.com/p/classcomm/ and http://classcomm.geekshack.net/handin/
On Oct 29, 1:47 pm, Oivvio Polite wrote:
> > i dont have time i need to start development within a month..
>
> > plz tell me all those crucial topics that i should
36 matches
Mail list logo