Re: comparisons with java framework

2009-02-13 Thread denis
Part of Igor's problem is the Avalanche effect: "... I need to install one more tool ... requires some dependencies ..." Avalanches can of course rumble rumble ... in installing or learning anything at all, not just Django. Two kinds of Avalanches: a) what do I need to install ? b)

Inheriting attributes from a model

2009-04-01 Thread Denis
I am developing a store using Satchmo, and I want the ability to save quotes; that's snapshots of the current cart, and I want to store the history of all the quotes in the database. My current models look like this: class QuoteItem(models.Model, Product): quantity = models.PositiveIntegerFie

Re: Inheriting attributes from a model

2009-04-01 Thread Denis
Now I've got serialization to json working thanks to your advice. I still have problems with converting the data back into an object, but I don't have time to look into that now. It'll have to wait tomorrow. Thanks ! --~--~-~--~~~---~--~~ You received this message

Re: Inheriting attributes from a model

2009-04-02 Thread Denis
Thanks! Problem solved, here's how to do it: class QuoteItemManager(models.Manager): def from_product(self, product): i = QuoteItem(current_product=product) i.product_serialized = serializers.serialize('json', Product.objects.filter(id=product.id)) try: i.p

Re: Postgresql duplicate keys and django problem

2006-10-18 Thread Denis
This can be done using following command sequence: manage.py sqlsequencereset | psql It sets counters to the max value of serial field of every model in your app. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Error in db/models/related.py

2006-09-04 Thread Denis
method on it... Is it an error due to my model's class Admin or (do I dare to say so ?) a bug somewhere ? (The code is a brand new check out from the svn) Can an expert help me in debugging it ? Which other info would you need ? Thanks in advance for your help. Regards, Denis --~--~-

ImageField/FileField in M/R

2006-04-20 Thread Denis
Hi It looks like old files aren't being removed after object change. That is, if i change the object like the 1 below and upload new file via admin interface, old file remains in the directory, though nothing refers to it :-/ class Picture(models.Model): fullsize = models.ImageField(upload_t

Re: ImageField/FileField in M/R

2006-04-20 Thread Denis
gt; This is correct. I believe the general consensus is that the developer > should take care of file destruction on their own. Perhaps in a _pre_save > method? > > Clint > > On 4/20/06, Denis <[EMAIL PROTECTED]> wrote: > > > > > > Hi > > >

Custom manipulator and file upload/saving

2006-05-03 Thread Denis
Hi I wonder what would it be the best way to save the file while im using custom manipulator. It contains objects from several models and im saving everingthing in manipulator.save(). Everything works great untill i have to save uploaded file. I wonder if there is a way to save it using django co

Re: Custom manipulator and file upload/saving

2006-05-03 Thread Denis
Thanks, that works! --~--~-~--~~~---~--~~ 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 [EMAIL PROTE

[no subject]

2016-02-03 Thread Denis
ther. We never encountered that error when on 1.6. Testing on 1.8.7 works fine but then if I only change the Django version (nothing else) to 1.9.2, I start getting that error... Thanks everyone! Denis Bellavance Peach Seattle -- You received this message because you are subscribed to the Goog

Re: Trivial question about instances forms

2008-09-03 Thread Denis Frère
On Sep 3, 12:52 pm, "Denis Frère" <[EMAIL PROTECTED]> wrote: > Hello, > > It should be trivial to most of you... > > When I create an instance form, do I need to explicitely transfer the > values of the fields that are not used in the form ? Up ... What&#x

Trivial question about instances forms

2008-09-03 Thread Denis Frère
e "active" field becomes false. I would have expected that the values of non-used fields would have been kept unchanged. I read the docs but I see no mention of this (or I missed it). Where would I find exhaustive docs about this behaviour ? (I know an answer : in the code ..., but something fo

Re: Trivial question about instances forms

2008-09-03 Thread Denis Frère
of obsolete things. OK, I will have to correct all the bugs and buy a new book before coming back on the list. ;-) Anyway, thanks for your help. Denis --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django user

Problem installing django

2008-09-04 Thread Denis BUCHER
SUSE Linux Enterprise 10 Thanks a lot in advance for your help ! Denis --~--~-~--~~~---~--~~ 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 u

Re: Apache httpd conf with mod_python

2008-09-09 Thread Denis Frère
roblem was certainly not having your project in your home directory. I think it was a permission problem somewhere (e.g. www-data not being able to read your home directory or something like that). Anyway, have fun with Django. Denis --~--~-~--~~~---~--~~ You recei

Re: Stupid noob question - admin link

2008-09-09 Thread Denis Frère
tes Summary : You could simply copy the file base_site.html from admin templates to a directory called "admin" in your own template directory and add a link to your own pages in {% block branding %} so you would have access to the link on every admin page. Have f

Re: UserProfile problem

2008-09-24 Thread Denis Morozov
Look at this post, it seems to be what you need: http://pyxx.org/2008/08/18/how-to-extend-user-model-in-django-and-enable-new-fields-in-newforms-admin/ And you have to read comments to that page, where is some fix to the code in the comments. On Sep 24, 7:03 pm, Lars Stavholm <[EMAIL PROTECTED]>

Re: Problems with django.contrib.auth.views.login

2008-10-01 Thread Denis Morozov
Try {% if form.errors %} Your username and password didn't match. Please try again. {% endif %} On Oct 1, 10:53 pm, F Pighi <[EMAIL PROTECTED]> wrote: > Hello folks, in these days I'm trying to learn a little bit of Django > for an imminent proje

Re: Django documentation site is SLOW

2009-08-09 Thread Denis Cheremisov
I thinkg it's firefox issue - with google chromium, midori or opera it's felt much faster. On Aug 7, 3:46 pm, Jo wrote: > Surely can't only be me that finds the main Django site painfully > slow? There is some javascript in there or something that just kills > my browser. > > I'm using Firefox o

Place two or more inputs per line in django admin.

2009-06-05 Thread Denis Cheremisov
I saw the method using fieldsets, by grouping several fields in a tuple. But this method didn't suit my needs, because I use slightly modified add_view,change_view,get_form, etc, where the base model/form can be substituted by it's derivative. So, I don't know what fields to show exactly, but know

Re: Place two or more inputs per line in django admin.

2009-06-08 Thread Denis Cheremisov
Solved it, replace get_fieldsets with my custom function, returning: [(None, {'fields': [('field1','field2),]})] On Jun 5, 5:23 pm, Denis Cheremisov wrote: > I saw the method using fieldsets, by grouping several fields in a > tuple. But this method didn

Problem with cookies and template

2009-10-10 Thread Denis Bahati
Hi all, Am new to python and django but am facing aproblem with templates and login the admin page. 1) I cannot login to admin page page because django keeps giving me a message Look for your browser cofiguration to allow cookies but am sure my browser allows all cookies. 2) Am using xampp 1.7.1 as

Re: Xampp and django

2009-10-11 Thread Denis Bahati
Thanx a lot for the information, but i managed to get it working before this information. I have another problem that the __unicode()__ is not working. It just gives me Poll object instead of the name of data from the database, i put the function at the beginning of the line, but if i put a tab to

__unicode__(self) doesn't work

2009-10-11 Thread Denis Bahati
Hi there i have the problem with unicode function it doesn't give me any changes. the poll list is displayed as Poll object and does doesn't give me error if i write the models.py like this:from django.db import models import datetime class Poll(models.Model): question = models.CharField(max_l

__unicode__(self) doesn't work

2009-10-11 Thread Denis Bahati
Hi all, I have a problem with __unicode__(self) function it doesn't give any changes to the display of poll list it just display the Poll object when i code like below: from django.db import models import datetime class Poll(models.Model): question = models.CharField(max_length=200) pub_

Re: __unicode__(self) doesn't work

2009-10-11 Thread Denis Bahati
Did you see my second post? I changed it still a problem On Mon, Oct 12, 2009 at 8:19 AM, Denis Bahati wrote: > Hi all, > I have a problem with __unicode__(self) function it doesn't give any > changes to the display of poll list it just display the Poll object when i >

Hi All: __unicode__(self)

2009-10-11 Thread Denis Bahati
Hi all, I have a problem with __unicode__(self) function it doesn't give any changes to the display of poll list it just display the Poll object when i code like below: from django.db import models import datetime class Poll(models.Model): question = models.CharField(max_length=200) pub

Re: Hi All: __unicode__(self)

2009-10-12 Thread Denis Bahati
Thank in advance for the advices. On Mon, Oct 12, 2009 at 8:55 AM, Russell Keith-Magee wrote: > > On Mon, Oct 12, 2009 at 1:44 PM, Kenneth Gonsalves > wrote: > > > > On Monday 12 Oct 2009 11:05:38 am Denis Bahati wrote: > >> class Poll(models.Model): > &

Using django form

2009-10-28 Thread Denis Bahati
hapter 7: Forms but i dont see where i can insert data into the table in the database. Thanks in advance. Regards Denis. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gr

Re: Using django form

2009-10-29 Thread Denis Bahati
Hi Daniel, Thanks for the document. I real appreciate. I have another question: How can I use my model and ModelForm to create a login screen? On Thu, Oct 29, 2009 at 10:14 AM, Daniel Roseman wrote: > > On Oct 29, 6:38 am, Denis Bahati wrote: > > Hi all, > > I&#

Login users

2009-10-29 Thread Denis Bahati
system. Thanks in advance. Regards Denis. --~--~-~--~~~---~--~~ 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 g

Display a value from another table

2009-11-01 Thread Denis Bahati
Hi All, Am developing an application where by it links two tables author and book, the id of author is a foreign key to book table. How can i display the name of the author when am displaying the book list. --~--~-~--~~~---~--~~ You received this message because you

Re: Display a value from another table

2009-11-02 Thread Denis Bahati
ss BookForm(ModelForm): class Meta: model = Book What i want is that, if i need to display the book detail it should give me who is the other for a particular book. On Mon, Nov 2, 2009 at 9:25 AM, Rishabh Manocha wrote: > On Mon, Nov 2, 2009 at 1:43 PM, Denis Bahati wrote: >

User Login in django

2009-11-03 Thread Denis Bahati
Hi there, Am creating a login screen using django form but failing to get the concept on how can i query from the database to get the user verified as a registered user. I want that a user is validated and displayed with his/her profile as well update his/her profile. The user can view only the al

Re: User Login in django

2009-11-03 Thread Denis Bahati
< bruno.desthuilli...@gmail.com> wrote: > > On 3 nov, 13:37, Denis Bahati wrote: > > Hi there, > > Am creating a login screen using django form but failing to get the > concept > > on how can i query from the database to get the user verified as a > > registere

Adding a password confirm on modelForm

2009-11-03 Thread Denis Bahati
() class UserForm(ModelForm): date_added=forms.DateTimeField() password=forms.CharField(label=("Password"), widget=forms.PasswordInput) class Meta: model = User Thanks in advance. Regards Denis. --~--~-~--~~~---~--~~ You received th

Template not displaying

2009-11-10 Thread Denis Bahati
Hi all, am using xampp as webserver with django 1.1,when i access the browser the template does not work. The media is in c:/xampp/htdocs/adc/media/ where i put the css,img and js folders. I set admin_media_prefix='http:/127.0.0.1/adc/media/' the same to media_url. The template is at c:/xampp/htdo

Increment a value in a database table field

2009-11-12 Thread Denis Bahati
Hi All, I have a field with an integer value which needs to be incremented every time any user updates its status within a week. If that week has passed it should insert a new row. Now i was trying to figure out but didn't get any concept on how to go through. Please any idea? -- You received th

Re: Increment a value in a database table field

2009-11-14 Thread Denis Bahati
the date tracked and the current date are not in the same week it should insert into a new row of status_count_per_week. If the date tracked and the current date are in the same week it should increment the value of status_count_per_week . Regards. Denis. On Thu, Nov 12, 2009 at 11:58 AM, s

Re: Increment a value in a database table field

2009-11-15 Thread Denis Bahati
escription = models.TextField() status_count_per_week = models.IntegerField() status = models.ForeignKey(Status) class Meta: verbose_name_plural = 'Track Resources' Sorry for confusing you. Regards Denis. On Sat, Nov 14, 2009 at 7:43 AM, Karen Trac

Re: Password encryption

2009-11-16 Thread Denis Bahati
It does not save anything when i click the submit button and it remains on the same interface. Any ideas? On Mon, Nov 16, 2009 at 7:50 AM, Gabriel Gunderson wrote: > On Thu, Nov 5, 2009 at 12:51 AM, Denis Bahati wrote: > > My project require to have my own table

RapidSMS on windows

2009-11-17 Thread Denis Bahati
Hi All, Does RapidSMS work on windows? Please if it does can anyone show me the detail on how to go through. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from

Login Error

2009-11-17 Thread Denis Bahati
d): return user except self.user_class.DoesNotExist: return None def get_user(self, user_id): try: return self.user_class.objects.get(pk=user_id) except self.user_class.DoesNotExist: return None @property def user_

Re: Problem with serving static files

2009-11-18 Thread Denis Bahati
how do you make them similar? because its also a problem to with TinyMCE. On Wed, Nov 18, 2009 at 4:13 PM, jeremyrdavis wrote: > The document root specified in urlpatterns should match the directory > where your files are located. You have "/mysite/media/" in your > urlpatterns and "C:\django_pr

Is there any way of model cross reference placed in different files but in one app?

2009-11-26 Thread Denis Cheremisov
I have models directory with several files in it (models/__init__.py, models/main.py, ...) I have basic "Article" model and many models derived from it. So, I would like to place them into separate file: models/article.py But I also have several models ("Image" and "Section") which contain ForeignK

Re: Is there any way of model cross reference placed in different files but in one app?

2009-11-26 Thread Denis Cheremisov
Oh, thanks, that works! On 26 ноя, 13:03, Daniel Roseman wrote: > On Nov 26, 10:01 am, Denis Cheremisov > wrote: > > > I have models directory with several files in it (models/__init__.py, > > models/main.py, ...) > > I have basic "Article" model and many mo

Problem with static files (MEDIA_URL and MEDIA_ROOT)

2010-06-27 Thread Denis Ricardo
Hello people! I am having any problems with static files (images, CSS) in Django. I configured the MEDIA_URL and MEDIA_ROOT in settings.py and when I execute the server and I go see the webpage, the static files doesn't are encountered (the page stay without anything). Screen Shot of my page: http

Re: vista install

2008-01-24 Thread Denis Cornehl
ge. > > I've tried both python2.4 and python2.5 with the same results. > > I believe the problem is that windows does not know that the .py files > are executable. > > Any ideas? > > Thanks, > > Paul > > > > -- Denis Cornehl --~--~-~

Bugs in Django apps : why not throw exceptions when being in debug mode ?

2006-12-19 Thread Denis Frère
's generally kind with me, telling me where I made errors. When Django fails silently, it makes things much harder for bad programmers like me. In conclusion, a question for the developpers : wouldn't it be better to throw exceptions when being in debug mode and fail silently only when d

Re: Django+mod_python+fedora 6 (x86_64)+apache problem

2006-12-19 Thread Denis Frère
.core.handlers.modpython > PYTHONPATH "['/usr/local/django_src'] + sys.path" > [...] > ImportError: No module named django Is your package django in the /usr/local/django_src directory ? If yes, did you try this ? PYTHONPATH "

Initial data for a Select widget in newforms

2007-01-26 Thread Denis Frère
he form initial data dictionary ? Thank you. Denis --~--~-~--~~~---~--~~ 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 th

Re: Initial data for a Select widget in newforms

2007-01-27 Thread Denis Frère
ata) Everything was fine except that foreignKey fields were not well selected. Adding the lines : form['currency'].field.initial = bill.currency_id form['vendor'].field.initial = bill.vendor_id form['customer'].field.initial =

Django Rest Framework using "DjangoModelPermissions" allow readonly

2022-05-20 Thread Denis Morejón
Hi: I am creating a DRF project. I wanna use traditional DjangoModelPermissions. I put this on settings.py and It works fine: REST_FRAMEWORK = { 'DEFAULT_PERMISSION_CLASSES': [ 'rest_framework.permissions.DjangoModelPermissions' ], But all authenticated users can access reading all data. Even

Re: Using another database while testing

2012-02-01 Thread Denis Darii
You can redefine your database connection by adding somewhere at the end of your settings.py something like: import sys if 'test' in sys.argv: DATABASES = ... hope this helps. On Wed, Feb 1, 2012 at 6:01 PM, xina towner wrote: > I have a problem, django can't create my database because a d

Re: problem with localization

2012-02-04 Thread Denis Darii
def total(self): return self.total_no_vat() * 1.21 def formatted_total(self): return format(self.total(), settings.DECIMAL_SEPARATOR, 2) now you can use formatted_total in your list_display Denis. On Sat, Feb 4, 2012 at 2:40 PM, Vittorino Parenti < vpare...@thundersyst

Re: rich text editing

2012-02-04 Thread Denis Darii
Take a look at this app: https://github.com/pydanny/django-wysiwyg On Sat, Feb 4, 2012 at 2:44 PM, yonatan braude wrote: > I want to enable rich text editing to editor on the site. what is the best > way? > thanx > yonatan > > -- > You received this message because you are subscribed to the Googl

Re: Is there a simple way to write the site root as a variable clientside

2012-02-04 Thread Denis Darii
I'm not sure I fully understand your questions, but I think you need to know more about the stupend "sites" framework: https://docs.djangoproject.com/en/dev/ref/contrib/sites/ On Sat, Feb 4, 2012 at 5:13 PM, Jason <1jason.whatf...@gmail.com> wrote: > Hi there, > > Is there a simple way to write t

Re: dynamic permissions

2012-02-05 Thread Denis Darii
It seems that you are looking for a "per object permissions" system, so take a look at django-guardian: https://github.com/lukaszb/django-guardian On Sun, Feb 5, 2012 at 3:59 PM, Vittorino Parenti < vpare...@thundersystems.it> wrote: > i've a model with document'categories and a model with docume

Re: Making login Testing

2012-02-06 Thread Denis Darii
Yes Rubén you are right, also you can use directly self.client.login() method: ... def setUp(self):login = self.client.login(username='myusername', password='mypass') self.assertTrue(login) On Mon, Feb 6, 2012 at 12:46 PM, xina towner wrote: > Hi, I've a question, how can I make l

Re: Is there a way to prevent /static directory browsing?

2012-02-06 Thread Denis Darii
Under nginx you can set "autoindex" to "off" for "/static/" location: location /static/ { autoindex off; root /path/to/your/static/; } More info here: http://wiki.nginx.org/HttpAutoindexModule On Mon, Feb 6, 2012 at 3:53 PM, Robert Steckrot

Re: number input format

2012-02-07 Thread Denis Darii
from the django's global_settings: # Decimal separator symbol DECIMAL_SEPARATOR = '.' # Boolean that sets whether to add thousand separator when formatting numbers USE_THOUSAND_SEPARATOR = False # Number of digits that will be together, when spliting them by # THOUSAND_SEPARATOR. 0 means no grou

Re: Installing Django from GIT/Subversion - package dependency in virtual environment

2012-02-20 Thread Denis Darii
Do you mean django-trunk installation? If so, I use this in my requirements.txt: -e svn+http://code.djangoproject.com/svn/django/trunk/#egg=django-trunk or directly with pip: $ pip install -e svn+ http://code.djangoproject.com/svn/django/trunk/#egg=django-trunk Hope it helps. On Mon, Feb 20,

Re: Year dropdown in Django admin

2012-02-20 Thread Denis Darii
I was in the same situation as you and I found this solution... in your models.py: import datetime YEAR_CHOICES = []for r in range(1980, (datetime.datetime.now().year+1)):YEAR_CHOICES.append((r,r)) so, your field can now use YEAR_CHOICES: year = models.IntegerField(_('year'), max_length=4,

Re: Installing Django from GIT/Subversion - package dependency in virtual environment

2012-02-20 Thread Denis Darii
evelopment-version, > your method works perfectly so far. > > I understand that keep in sync with trunk/master is as easy as invoking > git pull (svn up) and then setup.py install in src/django directory in > virtualenv root? > > > Mateusz Marzantowicz > > > On Mon,

Re: Any Singaporean Django developers out there?

2012-02-26 Thread Denis Darii
Is there some demand for django programmers? On Sun, Feb 26, 2012 at 5:21 AM, Kolbe wrote: > It's like Django is nonexistent in Singapore! > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-use

Re: method for checking logged in user

2012-02-26 Thread Denis Darii
This is for you: https://docs.djangoproject.com/en/dev/topics/auth/#django.contrib.auth.models.User.is_authenticated On Sun, Feb 26, 2012 at 6:55 PM, rafiee.nima wrote: > Hi > I want to know is there any built in function to check if a user is > logged in > actually I want to check if a user fro

Re: internationalization makemessage don't work

2012-02-27 Thread Denis Darii
Hi Nicolas. Try to run makemessages script from the root directory of your Django app, so: $ cd /your/app/path/ $ mkdir locale $ django-admin.py makemessages -l en On Mon, Feb 27, 2012 at 10:54 PM, nicolas HERSOG wrote: > Yes, I have my app in INSTALLED_APPS and I also have added this key in m

Re: internationalization makemessage don't work

2012-02-27 Thread Denis Darii
ag {% load i18n > %} and all the strings i wanted to translate are between {%trans > "myStringToTranslate" %} > > Is the fact that my /template folder is not in the same path than m apps > may be a problem ? > > > On Mon, Feb 27, 2012 at 10:58 PM, Denis Darii wrote:

Re: Learning Django: DjangoProject Poll application

2012-02-29 Thread Denis Darii
try to use DjangoStack 1.4b1-0 instead of 1.3.1-1 On Wed, Feb 29, 2012 at 7:07 AM, WuWoot wrote: > https://docs.djangoproject.com/en/dev/intro/tutorial01/ > > I'm using the Djangostack (Python 2.7.2+; Django 1.3.1-1) from Bitnami > ran on Ubuntu 11.10 with PostgreSQL 9.1.2 > > Sorry for my newbi

Re: Django profile

2012-03-02 Thread Denis Darii
1. http://pinaxproject.com/ 2. http://django-userena.org/ On Fri, Mar 2, 2012 at 9:26 PM, Bolang wrote: > Can someone suggest me an application for adding user profile to django? > I have found > http://code.google.com/p/**django-profile/and > https://b

Re: Template filters and translations to russian language

2012-03-07 Thread Denis Darii
Try to change also the language of your browser, this because you have LANGUAGES = (('ru', 'Russian'), ('en_US', 'English')) and probably in your browser is set EN. Or force it to RU: from django.utils.translation import activate activate('ru') On Wed, Mar 7, 2012 at 12:20 PM, Tom Evans wrote

Re: Django hgwebdir

2012-03-07 Thread Denis Darii
using django? hmmm... you can browse your current repo via http on port 8000 by launching: $ hg se or: $ hg se -n "Your repo" On Wed, Mar 7, 2012 at 1:39 PM, siva <85s...@gmail.com> wrote: > > > Is it possible can we see hg repository using django ? > > -- > You received this message because

Re: django admin login

2012-03-14 Thread Denis Darii
Try to create your superuser again: ./manage.py createsuperuser On Wed, Mar 14, 2012 at 6:25 PM, vikalp sahni wrote: > You have to check your > > SESSION_COOKIE_DOMAIN in settings file if i.e pointing to "localhost" (if > not cookies will not properly set and hence login will not be allowed) >

Re: What directory do I install Django on Linux server

2012-03-14 Thread Denis Darii
Hello Alex. Yes, when you install django using *"pip install django*" or "*python setup.py install*" directly from the source, the code goes to the correct directory inside of the "current" sites-packages. To find out where your installed django code is placed you can simply run: $ python -c "im

Re: playing with random number

2012-03-25 Thread Denis Darii
Nikhil please only django related questions here. Write to python-users group for your problem but only after googling it... I'm pretty sure you will find lots and lots of related questions/solutions. Denis. On 25 March 2012 19:07, Nikhil Verma wrote: > Hi all > > I have a l

Re: Simple question on queryset.

2012-03-27 Thread Denis Darii
I think the error "Memberships has no attribute all" is not related to your QuerySet. Try to look deeply into your code. BTW, your QuerySet must be: queryset = Memberships.objects.get(id=4) or better, if your id is also the primary key: queryset = Memberships.objects.get(pk=4) On 27 March 2012

Re: Problem with get_or_create

2012-04-23 Thread Denis Darii
Murilo, try to debug your "task" variable - must be an int. Also next time please provide full traceback of your error. On 23 April 2012 17:42, akaariai wrote: > On Apr 23, 4:26 pm, Murilo Vicentini > wrote: > > Hey guys, > > I'm having a bit of a problem using the get_or_create with a > > Many

Re: Django + ajax waiting page, can not redirect to result page

2011-12-16 Thread Denis Darii
You can view your js errors by pressing CTRL+SWIFT+J in Firefox but i highly recommend you to install Firebug addon which allow you to view also the received data from your ajax request. On Fri, Dec 16, 2011 at 5:24 AM, yun li wrote: > Since I am really know nothing about ajax, I am not sure if

Re: Creating websites like Amazon/Ebay using Django

2011-12-16 Thread Denis Darii
You can consider to use django-lfs: http://www.getlfs.com/ or satchmo: http://www.satchmoproject.com/ but without basic knowledge of django, it's going to be very hard for you. On Fri, Dec 16, 2011 at 8:06 AM, Cata wrote: > Hello everyone, > > I am basically working on creating a website on th

Re: Which IDE should I use for Django?

2011-12-19 Thread Denis Darii
*SublimeText2*, and here my configuration for it: http://wiki.ddenis.com/index.php?title=The_best_text_editor_is_Sublime_Text_2_or_it_doesn%27t_exist On Mon, Dec 19, 2011 at 12:34 PM, Masklinn wrote: > On 2011-12-19, at 11:34 , Alec Taylor wrote: > > I'm looking for a Django IDE which incorporat

Re: Writing apps for django

2011-12-24 Thread Denis Darii
Take a look at Django Conventions: http://ericholscher.com/projects/django-conventions/ Also this article could be useful for you: http://blog.zacharyvoase.com/2010/02/03/django-project-conventions/ Cheers, Denis. On Sat, Dec 24, 2011 at 10:38 AM, Lukasz wrote: > Hi all ! > > I'

Re: Writing apps for django

2011-12-25 Thread Denis Darii
http://djangopackages.com/ is what you need. On Sun, Dec 25, 2011 at 2:04 PM, Lukasz wrote: > > On 24 déc, 18:18, Denis Darii wrote: > > Take a look at Django Conventions: > http://ericholscher.com/projects/django-conventions/ > > > > Also this article coul

Re: Django CMS and django-admin-tools are together?

2011-12-27 Thread Denis Darii
I have a project in which I use django-cms and django-admin-tools together in production and I hadn't had any problems using it until now. On Tue, Dec 27, 2011 at 9:27 AM, Maxim Boyarskiy wrote: > Hi Guys, > > One question here: Is it possible and justified to use django-admin- > tools over djang

Re: project help

2011-12-28 Thread Denis Darii
You can also consider to use pinax: http://pinaxproject.com/ or userena for accounts: http://django-userena.org/ Denis. On Tue, Dec 27, 2011 at 8:58 PM, Jesramz wrote: > Hello All, > > I would like to create a job search project a lot like monster or > indeed. > > Do

Re: Django-admin disable plus sign

2011-12-30 Thread Denis Darii
You can rewrite the *has_add_permission* method of your admin class and return False for your user. More info here: https://docs.djangoproject.com/en/1.3/ref/contrib/admin/#django.contrib.admin.ModelAdmin.has_add_permission On Fri, Dec 30, 2011 at 3:21 PM, torgia wrote: > If I have a model with a

Re: Django-admin disable plus sign

2011-12-30 Thread Denis Darii
Also take a look at this ticket: https://code.djangoproject.com/ticket/9071 On Fri, Dec 30, 2011 at 3:38 PM, Denis Darii wrote: > You can rewrite the *has_add_permission* method of your admin class and > return False for your user. > More info here: > https://docs.djangoproject.co

Re: Django dev/deploy environment for distributed agile teams

2011-12-31 Thread Denis Darii
Hi Ashkan, You can take a look at our project: django-fagungis = DJANGO + FAbric + GUnicorn + NGInx + Supervisor deployment Here: https://bitbucket.org/DNX/django-fagungis/ We use it for the same purpose as you described. If you have some questions, suggestions or ideas about and for the project f

Re: Error: No module named debug_toolbar

2012-01-03 Thread Denis Darii
Try to force the installation inside your env: (Pinax-env) P:\Projects\Pinax>pip install* --ignore-installed * django-debug_toolbar On Tue, Jan 3, 2012 at 12:31 PM, Alec Taylor wrote: > Unfortunately I keep getting this error, no mater what I do. > > Here's what I've attempted: http://pastebin.

Re: Error: No module named debug_toolbar

2012-01-04 Thread Denis Darii
t;manage.py syncdb" And as the first attempt, try to run the "manage.py syncdb" with your environment python executable, placed in (Pinax-env)/bin/python On Wed, Jan 4, 2012 at 2:20 AM, Alec Taylor wrote: > Thanks Denis, but unfortunately that didn't work. > &g

Re: Removing Save functionality from Admin

2012-01-12 Thread Denis Darii
You can rewrite the *has_add_permission* method of your admin class and return False. More info here: https://docs.djangoproject.com/en/1.3/ref/contrib/admin/#django.contrib.admin.ModelAdmin. has_add_permission On Thu, Jan 12, 2012 at 5:51 PM, Swaroop Shankar V wrote: > Hi All, > I guess the ques

Re: tutorial 2 admin site problem

2012-01-18 Thread Denis Darii
You can replace: url(r'^admin/', include(admin.site.urls)), > with: url(r'^/', include(admin.site.urls)), > in your *urls.py* if you really want to have the admin at /. But are you aware of what this implies? On Wed, Jan 18, 2012 at 12:31 PM, Krondaj wrote: > Hi, > > I have just started tutori

Re: CachedStaticFilesStorage with database cache backend - static file not found (404)

2013-06-22 Thread Denis Cornehl
collectstatic? - does the serving of other static files (without hash, for example "css/my_style.css") work without errors (aka: is static-file serving in generall ok?) -- Denis -- You received this message because you are subscribed to the Google Groups "Django users" gro

Re: Freelance Django - London (£1500)

2013-07-01 Thread Denis Chernoshchekov
Hello! My name is Denis and I can help you. 2013/7/1 George Kazarian > We are a London based online retail startup (currently in test-launch). > The website is up and running with a fully functioning payment system. Our > soft launch is planned for July 25th. > > The websit

Re: Query parameters for receiving post

2013-10-09 Thread Denis Chernoshchekov
You can pass filter params like a dict - Player.objects.filter(**your_dict), so you need only prepare your dict from POST. 8 жовт. 2013 17:42, користувач "Hélio Miranda" написав: > Hi > Here I am having a problem which is as follows: > I 'm getting parameters via post to make querys depending on

Re: Query parameters for receiving post

2013-10-09 Thread Denis Chernoshchekov
For position you may have dict like - **{' position__in ': Position.objects. filter(name=positionpost) } 9 жовт. 2013 11:45, користувач "Hélio Miranda" написав: > hi, thanks that helped a lot. > But I have a problem which is, for example when I do a filter by position, > is not direct as other fi

Re: Query parameters for receiving post

2013-10-09 Thread Denis Chernoshchekov
See, maybe like this? http://plnkr.co/edit/cyM6AmZcyFVUU6soFKhB 2013/10/9 Hélio Miranda > I have code like this: > http://plnkr.co/edit/L1ByIyFyaEdgwrfVU7Jr > > Just do not know how to put this part in the code ... > Where do I put this part? > > -- > You received this message because you are s

Re: Query parameters for receiving post

2013-10-09 Thread Denis Chernoshchekov
Try this - *Player.objects.filter(country__in=** Nationality.objects.filter(name='Espanhola').distinct('country').values('country')) * 2013/10/9 Hélio Miranda > yes, that was it ... > Just one more thing, if I would like to create the nationality of the > player, so that the filter is: > * > Pl

Re: Query parameters for receiving post

2013-10-09 Thread Denis Chernoshchekov
Sorry, i don't understand you... You can control all your values for all fields, you can generate dict which you like. 2013/10/9 Hélio Miranda > I put that work, I wanted to know was how to put in the code, because you > can not do the same to position > > -- > You received this message because

Re: Query parameters for receiving post

2013-10-09 Thread Denis Chernoshchekov
*fld_name = 'nationality_in' *must be with double '_'* **fld_name = 'nationality__in'* 2013/10/9 Denis Chernoshchekov > Sorry, i don't understand you... You can control all your values for all > fields, you can generate dict which you like. > >

  1   2   >