Re: New user login problem

2011-09-16 Thread Martin Tiršel
Hi, did you set is_staff to True? Martin On Fri, 16 Sep 2011 14:20:14 +0200, marios wrote: Thank you. I did what you are saying. And I have tried creating several new users, but the error message is the same. On 16 sep, 08:49, "Szabo, Patrick \(LNG-VIE\)" wrote: Are you s

Django template IndexError

2011-09-21 Thread Martin Tiršel
rints debug info. I need silent ignore. What is the difference between "native" IndexError and my IndexError? Thanks, Martin -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-

Re: Django template IndexError

2011-09-21 Thread Martin Tiršel
It seems, that Django handles methods and variables indexes differently. So I solved it this way: e = IndexError() e.silent_variable_failure = True raise e Martin On Wed, 21 Sep 2011 23:36:58 +0200, Martin Tiršel wrote: Hello, I have this situation: class SomeClass(object

Parellel request from the same user in very short time

2011-09-24 Thread Martin Tiršel
right way. If there is no better solution, the second question is, should I time.sleep(1) until previous request releases lock or return some 5xx or 4xx error on such request? Thanks, Martin -- You received this message because you are subscribed to the Google Groups "Django users&quo

Re: Parellel request from the same user in very short time

2011-09-25 Thread Martin Tiršel
On Sun, 25 Sep 2011 02:09:46 +0200, Russell Keith-Magee wrote: On Sat, Sep 24, 2011 at 10:08 PM, Martin Tiršel wrote: Hello, I am using Apache with mod_wsgi and following setting: WSGIDaemonProcess dev.xyz.com processes=1 threads=5 user=xyz group=xyz display-name=dev.xyz.com I am

Re: Catching the autogenerated admin post

2011-09-29 Thread Jay Martin
Awesome, I think that's it. Much thanks. jay On Sep 29, 2011, at 6:31 PM, Andres Reyes wrote: > You could try doing your processing in the save_model method of ModelAdmin > > https://docs.djangoproject.com/en/1.3/ref/contrib/admin/#django.contrib.admin.ModelAdmin.save_model > > 2011/9/29 baza

Passing parameters to form in formset

2011-10-07 Thread Martin Tiršel
ribute 'forms' 2.) How to take for every form instance one DefendingArmy record? Thanks for any suggestions! Martin -- 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@googleg

Re: Passing parameters to form in formset

2011-10-07 Thread Martin Tiršel
On Fri, 07 Oct 2011 21:51:01 +0200, Martin Tiršel wrote: Hello, * Short version: How can I build a formset that creates so many form instances that a result set has records and passes one record from the result set to each form constructor? * Long version: I am building a browser

Re: "python manage.py runserver" creates not tables (tutorial)

2011-11-02 Thread Martin Chiteri
What about if you do a python manage.py sqlall >From the settings file, I do not see any of your apps added in the list of installed apps, like INSTALLED_APPS = ( 'django.contrib.auth', 'mysite.news', ., ) Martin. -- You received this message because yo

Translation problem with percent sign

2011-11-04 Thread Martin Tiršel
%} and instead of % use some variable like {{ PERCENT_SIGN }}. But all of this is a little bit complicated so I first need to know if I am not doing something bad or perhaps there is a bug in Django. Thanks, Martin -- You received this message because you are subscribed to the Google Group

Re: Translation problem with percent sign

2011-11-05 Thread Martin Tiršel
On Fri, 04 Nov 2011 15:54:04 +0100, Martin J. Laubach wrote: Just remove the line with "python-format" from your translation since it isn't a format string after all. mjl Thanks, this is working. But after makemessages It comes again so I have to fix this

Re: Get the current url in django template

2011-11-10 Thread Martin Pajuste
If you need something like "http://example.com/music/bands/the_beatles/?print=true"; try {{request.build_absolute_uri}} https://docs.djangoproject.com/en/dev/ref/request-response/#django.http.HttpRequest.build_absolute_uri -- You received this message because you are subscribed to the Google Gr

Re: How to set up a Flash-based file upload form?

2011-11-10 Thread Martin Ostrovsky
Hey Zak, Take a look at uploadify (www.uploadify.com). It relies on jQuery, but it's probably the plugin you've seen around the net, it's quite popular and easy to setup / modify. On Nov 10, 3:44 pm, zak wrote: > All the cool websites have abandoned the HTML input type="file" tag, > they are usi

models.Q raising exception

2011-12-01 Thread Martin Tiršel
. context['incoming_armies'] = MovingArmy.objects.filter( models.Q( target_base=active_base, returning=False ) | models.Q( game_base=active_base ) ).order_by('end_time') and here is everything ok. Thanks, Martin -- You received thi

Re: run form save in background

2011-12-02 Thread Martin Ostrovsky
I'd rip out the non-db stuff from the form.save() method and put those in an asynchronous queue. Then you can have another process which polls the queue and performs these other tasks after the database save. So for example, you would do the following: instance = form.save() # push your task to t

Re: Django E-Commerce Framework

2011-12-07 Thread Martin Tiršel
eight - for a page to loat you need 200-300 SQL queries 3.) Django admin interface is not suited for such application Reagards, Martin -- 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@googl

Raise validation error for empty formset

2011-12-14 Thread Martin Tiršel
Hi, I have a formset where I need to raise ValidationError if all forms in this formset are empty and submitted but I can not find any useful informations. Any suggestions? Thanks, Martin -- You received this message because you are subscribed to the Google Groups "Django users&q

Re: Raise validation error for empty formset

2011-12-23 Thread Martin Tiršel
Hi On Thu, 15 Dec 2011 12:52:44 +0100, Tom Evans wrote: On Wed, Dec 14, 2011 at 9:22 PM, Martin Tiršel wrote: Hi, I have a formset where I need to raise ValidationError if all forms in this formset are empty and submitted but I can not find any useful informations. Any suggestions

Initial data for dynamic field

2011-12-23 Thread Martin Tiršel
arting location'), choices=DIRECTIONS_CHOICES, coerce=int ) Now I want to choose as initial selection one random item from DIRECTIONS_CHOICES choices but I have to do it in this __init__() method (not in view!). How can I achieve this? Thanks, Martin -- You received this

Re: Initial data for dynamic field

2011-12-23 Thread Martin Tiršel
On Fri, 23 Dec 2011 09:42:37 +0100, Mengu wrote: you need to set "initial" attribute of TypedChoiceField. Thanks, I knew about the initial only on form instance and not on field :) On Dec 23, 10:34 am, Martin Tiršel wrote: Hello, I have: class SomeForm(forms.Form): ...

Re: USStateField default value

2012-01-02 Thread Martin Pajuste
You get that error because 'blank' is model field option. If you want to be able to accept empty values, use required=False instead. > state = USStateField(initial='CA', required=False) -- You received this message because you are subscribed to the Google Groups "Django users" group. To view t

Checkboxes for a list of items like in Django admin interface

2012-01-04 Thread Martin Tiršel
through somename list I get from POST and delete items. Is there a better Django way I should do it or this approach I wrote is correct? Is there a way I could use Django forms for processing the POST data and delete items in a form's method (so I can use it from multiple views)? Thanks, M

Re: Checkboxes for a list of items like in Django admin interface

2012-01-04 Thread Martin Tiršel
] notifications = Notification.objects.filter( id__in=id_list, ) Martin On Wed, 04 Jan 2012 12:11:11 +0100, Thorsten Sanders wrote: I do it this way: and in the view: todel = request.POST.getlist('todelete') ItemWatchList.objects.filter(user=request.user,id__in=todel).delete() On 04.01.2012 11:33, Ma

Re: Problem getting django on mac (10.5/Leopard) working

2012-01-08 Thread Martin Chiteri
I think its because the actual folder is named django-trunk but your application's import statement is using django to referrence it. The symbolic link resolved the issue for you. Martin. On 1/9/12, larry.mart...@gmail.com wrote: > On Jan 7, 7:13 pm, "larry.mart...@gmail.com&quo

Transaction commited byt still receiving "Transaction managed block ended with pending COMMIT/ROLLBACK"

2012-01-16 Thread Martin Tiršel
l have to render_to_string and then commit, right? Thanks, Martin -- 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

Re: Transaction commited byt still receiving "Transaction managed block ended with pending COMMIT/ROLLBACK"

2012-01-16 Thread Martin Tiršel
On Mon, 16 Jan 2012 16:41:43 +0100, Tom Evans wrote: On Mon, Jan 16, 2012 at 3:34 PM, Martin Tiršel wrote: No, you could just subtly re-order your statements: Why I am doing everything the hard way? :))) Thanks, Martin -- You received this message because you are subscribed to the

Re: model for uploading a file - not working??

2012-01-25 Thread Martin Tiršel
ython manage.py sql rrs I get: File "/home/chrissmith/Dcode/rrws/rrs/models.py", line 36 upload_doc = models.FileField(upload_to 'documents') ^ SyntaxError: invalid syntax any idea's what's up? As the error message says, it is invalid syntax, you forgot the eq

Escape percent sign in QuerySet.extra()

2012-12-02 Thread Martin Svoboda
Hi, I want use postgresql pg_trgm module in django. pg_trgm defines special operator percent sign. How should I escape it in django query extra method? # Pure SQL SELECT content, similarity(content, 'text') AS sml FROM table WHERE content % 'text' ORDER BY sml DESC, content; # Extra throws

Escape percent sign in QuerySet.extra() method

2012-12-02 Thread Martin Svoboda
Hello, I'm want to use functionality of postgresql module pg_trgmin django. pg_trgm uses special operator % (percent sign). I don't know how should I escape it in query extra method. # pure SQL SELECT content, similarity(content, 'string')

Re: cached template loader

2012-12-18 Thread Tom Martin
I had the same problem and discovered that I was missing a comma in the settings file: TEMPLATE_LOADERS = ( ('django.template.loaders.cached.Loader, ( 'django.template.loaders.app_directories.Loader', 'django.template.loaders.filesystem.Loader, )) ) should have been: TEM

Re: Django 1.5 - release date

2013-02-13 Thread Martin B.
Hmm, the list of blockers seems to be empty. Seeing as its been a while since the last update here, any news on a rc/stable release? On Sunday, December 30, 2012 1:19:04 AM UTC, Russell Keith-Magee wrote: > > > On Sat, Dec 29, 2012 at 2:44 PM, Aidan Zhakypov > > > wrote: > >> Does anyone know w

small django project interesting for job seekers.

2013-07-18 Thread Martin Pagotto
ities), stores them in sqlite (to avoid showing the ones you already deleted or mailed to) and has a button to send a predefined email to the sender. Contributions welcome!. Martin. <https://raw.github.com/mpagotto/craigslistDjangoJobFeeds/master/sample/sample_img.png> -- You received

Re: field-null or not-null filter?

2013-07-19 Thread Martin Becker
*You can define your own NullListFilter. I did it this way:* class NullListFilter(FieldListFilter): def __init__(self, field, request, params, model, model_admin, field_path): self.lookup_kwarg = '%s__isnull' % field_path self.lookup_val = request.GET.get(self.lookup_kwarg, N

Django Dashboard

2013-07-30 Thread Martin Marrese
Hi, I'm looking for a Django Dashboard to implement on an existing app. A colleague recommended Dashing (1), but thats a Sinatra app, however I do like how it looks. Does anyone have a recommendation ? Thanks, Martín Links 1 - http://shopify.github.io/dashing/ -- Martin Marrese

Re: Customizing error message in ModelForm

2011-04-15 Thread Martin Pajuste
Error messages in ModelForms work perfectly fine. class PersonForm(forms.ModelForm): first_name = forms.CharField(error_messages={'required': 'Please enter your first name!'}) class Meta: model = Person http://docs.djangoproject.com/en/dev/ref/forms/fields/#error-messages -- Y

Re: Customizing error message in ModelForm

2011-04-15 Thread Martin Pajuste
This should do the trick: class PrijsvraagForm(ModelForm): mail = forms.EmailField(error_messages={'required':'Vul aub een geldig Email adres in', 'invalid': 'Het email adres is niet geldig'}) class Meta: model = Prijsvraag def clean_code(self): super(PrijsvraagForm,

Aw: How to unit test if user has access to page

2011-04-16 Thread Martin Brochhaus
) so you probably should test both scenarios. Best regards, Martin -- 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 dj

Model query whit n OR

2011-05-13 Thread Martin Quinta
i need a serch in db users (users have city, age,sex.. etc) but i need serch users from many citys. somthing like this... from django.db.models import Q (http://docs.djangoproject.com/en/dev/topics/db/queries/#complex- lookups-with-q-objects) users.objects.get(Q(city='') | Q(city=''),

Re: Virtualized Django app image for dev replication?

2011-05-18 Thread Martin Melin
use. So free products are preferred. This is the exact problem that Vagrant http://vagrantup.com/ is trying to solve. It uses VirtualBox, which is free. I've just gotten into it myself but so far it's really useful. HTH, Martin -- You received this message because you are subscribed to th

Re: Installing Django on Ubuntu

2011-05-28 Thread Martin Tiršel
ople beginnning with virtualenv forget this :) Regards, Martin On Sat, 28 May 2011 04:27:42 +0200, DogGoesOut wrote: Hey, can anyone help me out? For some reason, django is not as easy as it would appear to install on my ubuntu laptop. Here are the stats: I'm running Ubuntu 10.10 M

Aw: Internationalization in Django.

2011-06-02 Thread Martin Brochhaus
There are dozens of approaches for this: http://djangopackages.com/grids/g/model-translation/ Most of them are old, not documented, outdated, abandonned or just slow. The newest player in this field is django-nani and I would recommend you to give it a try! Best regards, Martin -- You

Aw: Reasons to use managers

2011-06-02 Thread Martin Brochhaus
oject.com/en/dev/topics/db/models/#model-methods>, not custom Manager methods.) https://docs.djangoproject.com/en/dev/topics/db/managers/ Best regards, Martin -- You received this message because you are subscribed to the Google Groups "Django users" group. To view

Aw: Best CSS/JS compressor?

2011-06-02 Thread Martin Brochhaus
I'm using django_compressor and I am very happy with it! Best regards, Martin -- 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/-/eUlxYkp0NXdEQ

Aw: Re: Setting up dev/test/production environments on the server (dreamhost)

2011-06-04 Thread Martin Brochhaus
+1 Hosting 20 (or more) on Webfaction. Awesome service. Awesome speed. Peace of mind. Best regards, Martin -- 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/dj

Re: connection refused when running django-celery

2011-06-05 Thread Martin Ostrovsky
What are you using for your AMQP? I use celery with RabbitMQ. You have to start your AMQP service first, then celery. On Jun 4, 2:17 am, Kenneth Gonsalves wrote: > hi, > > I am trying django-celery, but on running: > > python manage.py celeryd -l info > > I get this error: > > [2011-06-04 01:08:5

Re: Edit instance for ModelChoiceField not getting selected selected

2011-06-05 Thread Martin Ostrovsky
Without seeing your model or your data, it's hard to tell what's going on. You're overriding the queryset for those two fields. If the instance's values for those two fields is not in that updated queryset, then your widgets won't get a default value. In other words, if the value of "b_name" for

Vs: how to override a ModelChoiceField in order to add FKs directly in a TextInput?

2011-06-29 Thread Martin Pajuste
: def __init__(self, some_value, *args, **kwargs): super(MyForm, self).__init__(*args, **kwargs) qset= MyRelatedClass.objects.filter(some_field=some_value) self.fields['myrelation '].queryset = qset Martin -- You received this message because you are subscribed to the Goo

NoReverseMatch for custom admin URLs

2011-07-30 Thread Martin Tiršel
args=(self.id,) ) manage_premium_account.short_description = 'Action' manage_premium_account.allow_tags = True And I get NoReverseMatch exception if I try to reverse `manage_premium_account`. Does anybody know why and how to solve it? Thanks, Martin -- You received

Re: NoReverseMatch for custom admin URLs [SOLVED]

2011-07-30 Thread Martin Tiršel
Sorry, my bad :) I forgot that first argument for patterns() is a string with view name prefix. That was all. Martin On Sat, 30 Jul 2011 11:52:21 +0200, Martin Tiršel wrote: Hi all, the code: class CompanyProfileAdmin(admin.ModelAdmin): list_display = ( '__unic

Re: Is it possible to specify the html class attribute for a form field?

2010-12-11 Thread Martin Ostrovsky
When you create your form, you can specify extra attributes to each widget of each field. For example: myfield = forms.CharField(widget=forms.Textarea(attrs={'cols':80, 'rows':80}) So as one of the keys in your attrs argument, you can make it 'class' and then provide the class name as the value.

Re: Django and PIL problem?

2011-01-10 Thread Martin Ostrovsky
What's the value of form.cleaned_data['image']? That IOError is usually thrown when the contents of what you pass in to open() don't constitute a valid image. On Jan 10, 5:26 pm, atcive wrote: > I have the same problem:/ > Anyone cah help? -- You received this message because you are subscribed

Execute code after the model with m2m is completely saved

2011-01-16 Thread Martin Tiršel
ts at this point. Is there a point in admin, where I have all models completely saved and can do custom code? Where is that point? Thanks, Martin -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

m2m_changed signal called multiple times?

2011-01-17 Thread Martin Tiršel
ready_to_resize called 2011-01-17 10:57:01,754 DEBUG ready_to_resize called Does anybody know why? It is always 4 times. I can add third item into ImageSize or select only one ImageSize for Image, there are always 4 records in the log. Thanks, Martin -- You received this message because

Re: m2m_changed signal called multiple times?

2011-01-17 Thread Martin Tiršel
post_clear action when I am creating a new Image record? Thanks, Martin On Mon, 17 Jan 2011 11:53:05 +0100, bruno desthuilliers wrote: On 17 jan, 11:09, Martin Tiršel wrote: (snip) m2m_changed.connect(ready_to_resize, sender=Image.size.through, dispatch_uid="38fy3f73")

Re: Execute code after the model with m2m is completely saved

2011-01-17 Thread Martin Tiršel
I found two ways how to do it: *) m2m_changed signal - this is the best way *) save_model(self, request, obj, form, change) method for ModelAdmin - obj has current relations, form contains the new relations Martin On Sun, 16 Jan 2011 19:33:09 +0100, Martin Tiršel wrote: Hello, I am

Re: len(qs.all()) != qs.count()

2011-01-19 Thread Martin Pajuste
I would say the problem is in your model. Notice in the beginning of the SQL there is "productdescriptions"."id" yet there is no such field in database. Just specify primary_key=Trueon one of your fields

Re: "CSRF verification failed" when sending simple GET request using curl

2011-01-19 Thread Martin Pajuste
-d flag sends the specified data in a POST request to the HTTP server, since you don't supply CSRF token, Django assumes the post is malicious. See more http://docs.djangoproject.com/en/dev/ref/contrib/csrf/?from=olddocs -- You received this message because you are subscribed to the Google Group

Re: "CSRF verification failed" when sending simple GET request using curl

2011-01-19 Thread Martin Pajuste
curl -d "name=Bob" -G http://localhost:8000/demo/test -- 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...@go

Re: Django and google webmaster tools file

2011-01-19 Thread Martin Tiršel
recommended. Regards, Martin Tirsel On Wed, 19 Jan 2011 19:39:41 +0100, galago wrote: How can I put a file, which is needed by the Google Webmasters Tool? Where to put it or how to configure django to read it? -- You received this message because you are subscribed to the Google Groups "D

Re: Django and google webmaster tools file

2011-01-19 Thread Martin Tiršel
Yes, you are right, this file is only for verification and not served regullary, so it is easier to add such urlpattern. Martin On Wed, 19 Jan 2011 22:36:37 +0100, Eduardo Cereto Carvalho wrote: Your static files probably already live in your MEDIA_URL and this file must live in your

Selecting related objects with condition

2011-01-31 Thread Martin Tiršel
ething to solve this kind of problems too :) Thanks, Martin -- 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

Re: Selecting related objects with condition

2011-02-01 Thread Martin Tiršel
Thanks, I didn't know the {% ifchanged %} tag. Martin On Mon, 31 Jan 2011 22:58:55 +0100, Michael wrote: The easiest way would be to get a list of all closed work items, ordered by user: context['work'] = Work.objects.filter(whatever).order_by('user')

Re: Help on adding CSS to django project

2011-02-06 Thread Martin Tiršel
Hello, please read the documentation, everything you need to know, is described there. For development: http://docs.djangoproject.com/en/1.2/howto/static-files/ And for production: http://docs.djangoproject.com/en/1.2/howto/deployment/modwsgi/ Regards, Martin On Mon, 07 Feb 2011 00:47:27

Re: login-required

2011-02-14 Thread Martin Melin
know. You need to make sure that you have the Session and Authentication middlewares installed. Have a look at this link: http://docs.djangoproject.com/en/dev/topics/auth/#authentication-in-web-requests Best regards, Martin Melin > For the login template i used the example shown in the documen

Re: Having trouble synchronizing the database, can someone help?

2011-02-14 Thread Martin Melin
will just simply ignore  checking if the field changes. > And what I should do to sync the database? You're correct, the syncdb command will not modify tables in your database. What you're looking for is called database migrations, and a lot of (most?) people using Django use somethi

Missing Related Objects in MODEL._meta.get_all_related_objects

2011-02-17 Thread Martin Siniawski
Bar1 and Bar3. Do you have any ideas on what might be happening, or how to further debug the problem? Best and thanks! Martin -- 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@googlegrou

Extend admin template without copying the whole template

2011-02-27 Thread Martin Brochhaus
let's see if I can find admin/base.html in the python path or in the eggs... Is there any other fancy trick or workaround to accomplish this? I believe that enhancing global admin templates should be something that is a very common usecase, isn't it? Best regards, Martin -- Y

Bug in Django admin?

2011-03-07 Thread Martin Tiršel
ed` = 0 LIMIT 21 Is it a bug or I did something wrong? Thanks, Martin -- 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

Re: Bug in Django admin?

2011-03-08 Thread Martin Tiršel
Hello, On Mon, 07 Mar 2011 22:12:14 +0100, Michael Radziej wrote: Ahoj Martin, On Mon, 07 Mar 2011 12:49:32 +0100, Martin Tiršel wrote: When I use filter in Django admin (that produces URL .../admin/appname/booltest/?completed__exact=False), I get results which are with completed=True

Re: Bug in Django admin?

2011-03-09 Thread Martin Tiršel
Hi Michael, On Tue, 08 Mar 2011 11:05:40 +0100, Michael Radziej wrote: Hi Martin! Args--you're right. Stupid fingers :-) I meant .../admin/appname/booltest/?completed__exact=0 Does it work that way for you with 0 instead of False? Yes, if I rewrite URL to ?completed__exact=0, t

unit tests and setUp method

2011-03-15 Thread Martin Tiršel
test - 13. Why? Should not be there the world_width default value after database reset and model creation in setUP()? Kind regards, Martin -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send ema

Re: unit tests and setUp method

2011-03-21 Thread Martin Tiršel
The problem was, that I assigned default settings this way: DEFAULT_SETTINGS = {...} ... self.settings = DEFAULT_SETTINGS I changed it to: self.settings = DEFAULT_SETTINGS.copy() And it is ok now :) Martin On Wed, 16 Mar 2011 00:49:15 +0100, Karen Tracey wrote: On Tue, Mar 15, 2011 at

Re: How to check if request.FILES is empty

2011-04-08 Thread Martin Pajuste
What you are looking for is probably something like if 'uploadphoto' in request.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 emai

Re: Django News Site Resources

2011-04-08 Thread Martin Pajuste
http://djangopackages.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 opt

Re: How to check if request.FILES is empty

2011-04-08 Thread Martin Pajuste
You'll find well written documentation how to treat basic file uploads in Django documentation http://docs.djangoproject.com/en/dev/topics/http/file-uploads/#basic-file-uploads -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gro

Re: Stackoverflow kind of Answer/commenting app in Django

2011-04-13 Thread Martin Pajuste
Are You aware of Django’s comments framework? http://docs.djangoproject.com/en/dev/ref/contrib/comments/ -- 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

Django 1.7 migrate for postgres fails: Charfield to ForeignKey

2015-02-20 Thread Martin Kapfhammer
cy integer; Should I add this via RunSQL between the migrations. If so, how? Or is there a better way? Thanks, Martin -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it,

Re: Django 1.7 migrate for postgres fails: Charfield to ForeignKey

2015-02-20 Thread Martin Kapfhammer
rency column. > Then add the new column, make migrations and apply. > > On Fri, Feb 20, 2015 at 2:30 PM, Martin Kapfhammer > wrote: > >> First I created a CharField: >> ('currency', models.CharField(max_length=30)), >> >> In a later migration I

Re: Django 1.7 migrate for postgres fails: Charfield to ForeignKey

2015-02-21 Thread Martin Kapfhammer
Alright, so I uncommented the creation of the CharField and changed the AlterField to an AddField operation. Worked! :) Thank you -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it,

Django CMS 3.0.11 Released!

2015-03-04 Thread Martin Koistinen
*Django CMS 3.0.11 Released!* This is mostly a bug-fix release, but there's at least one very interesting thing added: better support for using the same application in multiple apphooks! Using this combined with aldryn-apphooks-config () you can use a single app in multiple places in your proje

Django CMS 3.0.12 Released!

2015-03-04 Thread Martin Koistinen
*Django CMS 3.0.12 Released!* This quick-cycle release fixes a regression discovered by a user shortly after the release of 3.0.11. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from

create comment programmatically from CommentForm embedded in another form

2015-05-07 Thread Martin Beroiz
using the provided methods from django_comments. I did in the past create a whole Comment() instance from scratch and filled it all with the correct data, but it seemed to me like a hack, bypassing all the security checks built-in in the comment package. How would I go about to save a comment pro

Re: create comment programmatically from CommentForm embedded in another form

2015-05-07 Thread Martin Beroiz
I just found out the CommentForm actually requires to set target_object for initialization. It should've been commForm = CommentForm(target_object = myobj, data=request.POST) Sorry for the noise on the list! On Thursday, 7 May 2015 18:05:09 UTC-5, Martin Beroiz wrote: > > Hell

Oracle GIS backend - no bulk_create?

2015-07-02 Thread Robert Martin
Hi all, I've been trying to do a bulk_create using the Oracle GIS backend (Django 1.8.2) and getting an AssertionError: File "C:\Users\robert.martin\Envs\ais\lib\site-packages\django\contrib\gis\db\backends\oracle\operations.py" , line 248, in modify_insert_params assert len(placeholders)

TextField in Oracle: any alternatives?

2015-07-10 Thread Robert Martin
Hi all, I have a question about best practices with storing strings in an Oracle DB. I've grown accustomed to using TextFields wherever possible, as I mainly work in Postgres and this seems to be recommended: http://stackoverflow.com/questions/7354588/django-charfield-vs-textfield However, I'm

Tango with Django chapter 7 Exercises

2014-07-06 Thread Martin Spasov
I am doing the exercises in chapter 7 and I have to create an add page link on every category page that would take the users to a new page on which they can enter name and url to add to certain category if the category in que

Updating database object after a Signal is not working

2014-08-19 Thread Martin Spasov
So i am using django-paypal for a simple eCommerce website and my goal is to change the IPN's buyer fields to match the logged in user's registration info after a signal is received from paypal. Now I am almost there but there is something thats escaping me ... Here is the code models.py def

Re: Question on creating a contact form app using bootstrap template

2014-08-19 Thread Martin Spasov
Maybe you could copy the classes and id's from the template and put them in your form like this : class SomeForm(forms.Form): name=forms.CharField(attrs={'class':'form-control', 'id':'name'}) message=forms.CharField(widget=forms.TextInput(attrs={'class':'the class name thats on the temp

Re: Looking for an email-based tutor

2014-08-19 Thread Martin Spasov
Hello study! My name is Martin and like you I am beginner. I am certainly not qualified to apply for this but would love to share what i know and to have some1 to comunicate with thats around my level of knowledge (i am currently building an commerce website as well). So suburb4nfi

Django and AJAX jQuery

2014-09-01 Thread Martin Spasov
, but still ? Thanks! Martin! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, sen

Re: Django and AJAX jQuery

2014-09-01 Thread Martin Spasov
Perfect, thank you On 9/1/14, Collin Anderson wrote: > If the url name is not guessable (for example, it includes a secure random > string, like django's forgot password url), that should provide enough > security. > > Though you can always pass in the csrf token using javascript: > https://docs.

Re: Django 1.7 tutorial: Use generic views

2014-09-01 Thread Michael Martin
Here are the results that I recieved >>> from polls import views >>> dir(views) ['Choice', 'HttpResponse', 'HttpResponseRedirect', 'Question', '__doc__', '__fil e__', '__name__', '__package__', 'detail', 'get_object_or_404', 'index', 'render ', 'results', 'reverse', 'vote'] >>> On Sat, Aug 30, 2

Re: Django 1.7 tutorial: Use generic views

2014-09-01 Thread Michael Martin
he > views should be created first and then referenced by an updated urls.py. I > may file a bug/patch on this. > > -James > > > On Monday, September 1, 2014, Michael Martin > wrote: > >> Here are the results that I recieved >> >> >>> from

Re: django.models problem

2014-09-07 Thread Martin Spasov
or easy_install pip and then pip install pillow why use pip instead of easy_install can be seen here <http://stackoverflow.com/questions/3220404/why-use-pip-over-easy-install> Martin! -- You received this message because you are subscribed to the Google Groups "Django users

Re: django-jython: I am getting an error when I run the migrate command on Jython-Django 1.7

2014-09-08 Thread Michael Martin
I ran sqlmigrate because I understand that it creates the sql calls which are to be ran against the database via the database connecter. I am not a DBA, but my first opinion is that the sql calls don't look right to me. Anybody out there know SQL for Postgresql really well? C:\Users\mike\workspa

Re: Django 1.7 has issues rendering pages on laptop

2014-09-11 Thread Michael Martin
""" Django settings for lwc project. For more information on this file, see https://docs.djangoproject.com/en/dev/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/dev/ref/settings/ """ # Build paths inside the project like this: os.path.join(

Re: Django 1.7 has issues rendering pages on laptop

2014-09-11 Thread Michael Martin
I just sent my settings, but as you can see I have debug turned on and django.contrib.staticfiles in the installed apps. Someone please help me, I can't do any development like this. On Thu, Sep 11, 2014 at 9:29 AM, Michael Martin wrote: > """ > Django settings for

Re: Django 1.7 has issues rendering pages on laptop

2014-09-11 Thread Michael Martin
https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"</a>;> On Thu, Sep 11, 2014 at 9:32 AM, Michael Martin wrote: > I just sent my settings, but as you can see I have debug turned on and > django.contrib.staticfiles i

Re: Django 1.7 has issues rendering pages on laptop

2014-09-11 Thread Michael Martin
render anything for me. On Thu, Sep 11, 2014 at 6:21 PM, Lachlan Musicman wrote: > Did you run > > python manage.py collectstatic > > ? > > cheers > L. > > On 12 September 2014 11:11, Michael A. Martin > wrote: > > It seems like when I take all the CS

Re: Django 1.7 has issues rendering pages on laptop

2014-09-11 Thread Michael Martin
opps, I forgot the url com/watch?v=JZVPbHilwLI On Thu, Sep 11, 2014 at 11:52 PM, Michael Martin wrote: > I know there has to be something wrong with either jython2.7b3 or with the > django 1.7 releases. What I did was follow someones tutorial to show where > I start experiencing prob

<    1   2   3   4   5   6   >