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

I cant figure out this error

2021-03-12 Thread Denis Prosser
nvironment: Request Method: GET Request URL: http://127.0.0.1:8000/polls/ Django Version: 3.1.7 Python Version: 3.9.0 Installed Applications: ['polls.apps.PollsConfig', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.m

How can create multiple Model objects at the same time from the same form?

2017-07-10 Thread Denis Cosmin
I have a form Author that contains the field first_name, last_name, and email. I want to be able to create 1-10 of them at the same time. How may I do that? I only need help in creating the form and the view. -- Sincerely, Denis Nutiu -- You received this message because you are subscribed

How do I model a 'paper object' that should have reviewers?

2017-07-05 Thread Denis Cosmin
er_letter = models.FileField(upload_to=user_id_path, blank=False, validators=[validate_file]) supplementary_materials = models.FileField(upload_to=user_id_path, blank=True, null=True, default=None, validators=[validate_file]) class Meta: ordering = ('-created',) def get

Finally stable release of Django JET - responsive and fresh admin interface

2016-08-30 Thread Denis Kildishev
Finally stable release of Django JET - responsive and fresh admin interface http://jet.geex-arts.com/ -- 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-user

Re: iregex doesn't work properly

2016-08-30 Thread Denis Yu
tep_description` REGEXP '^заказ роутер.$' > > Many thanks, > > Serge > > > +380 636150445 > skype: skhohlov > > On Tue, Aug 30, 2016 at 11:58 AM, Denis Yu > wrote: > >> >> sorry, may be I explained the result of testing incorrectly( >>

Re: iregex doesn't work properly

2016-08-30 Thread Denis Yu
Sergiy Khohlov написал: > > You are making me confused. > 1) Django send data to db and SQL is correct > 2) MySQL returns correct result > 3) Django shows right data > > Which one step has issue ? > > Many thanks, > > Serge > > > +380 636150445 > sky

Re: iregex doesn't work properly

2016-08-30 Thread Denis Yu
`__count` FROM `clients_order_process` > WHERE (`clients_order_process`.`step` = 1 AND > `clients_order_process`.`step_description` REGEXP '^заказ роутер.$')" > informs that django sends data correctly. > > Many thanks, > > Serge > > > +380 636150445 >

Re: iregex doesn't work properly

2016-08-28 Thread Denis Yu
sql from mysql :SELECT id from Order_process WHERE > step_description REGEXP BINARY '^заказ роутера%'; > > > Why are you not using raw string in your regex ? > > > Many thanks, > > Serge > > > +380 636150445 > skype: skhohlov > >

Re: iregex doesn't work properly

2016-08-27 Thread Denis Yu
16 г., 19:28:18 UTC+6 пользователь Sergiy Khohlov написал: > > Try to check this via mysql shell. It will be nice to know codepage at > system, database and django project. Have you checked this with Latin > charset already ? > > 27 серп. 2016 16:06 "Denis Yu" > пише: >

iregex doesn't work properly

2016-08-27 Thread Denis Yu
Hi, Someone please, help to resolve my problem with iregex ! using Django 1.9 mysql Server version: 5.7.13-0ubuntu0.16.04.2 (Ubuntu) python 2.7 I got the record in mysql in table Order_process: +-+--+---+-+--++ | id | step

Re: Working with HstoreField in django tests

2016-05-15 Thread Denis Boyarkin
Yes, It helped, thank you. If you're on Stackowerflow you can answer this question:this question <http://stackoverflow.com/questions/37200489/working-with-hstorefield-in-django-tests> . понедельник, 16 мая 2016 г., 9:22:50 UTC+8 пользователь Simon Charette написал: > > Hi De

Working with HstoreField in django tests

2016-05-15 Thread Denis Boyarkin
I'm using HstoreField in one of my models and when I try to test it I got an error psycopg2.ProgrammingError: ERROR: function hstore(integer[], text[]) does not exist. If I understand this problem correctly it happend because hstore extension wasn't setup in database as it was did in migratio

Multiple values to Django

2016-04-02 Thread Denis Makarov
Hello! I have a MyForm which have name, quantity and quandesc fields. I have a basic UI form for adding this fileld. I added button for adding another instances of field on web page. Jquery func below: function addContainer() { $("#name").clone().appendTo("#food-container"); $("#quantit

Re: Redefine html properties in widget

2016-04-01 Thread Denis Makarov
class FoodForm(ModelForm): class Meta: model = Foods fields = '__all__' widgets = { 'quantity': NumberInput(attrs={'min': 1}), 'comment': TextInput(), } пятница, 1 апреля 2016 г., 11:47:33 UTC+3 пользователь Denis Makaro

Re: Redefine html properties in widget

2016-04-01 Thread Denis Makarov
x27;, 'Qty'), ('Kilo', 'Kg.'), ('Litr', 'L.')), default='Item') comment = models.TextField(blank=True) to_ods = models.BooleanField(default=False) to_email = models.BooleanField(default=False) foodlist = models.ManyToManyField('

Redefine html properties in widget

2016-03-31 Thread Denis Makarov
Hello! I have my own ModelForm with widgets in Meta class. class Meta: model = Foods fields = '__all__' widgets = { 'quantity': NumberInput(attrs={'min': 1, 'max': 10, 'name': "quantity2"}), 'comment': TextInput(), } My quantity field have NumberInput as standard. I want to re

Re: Model or Form class

2016-03-11 Thread Denis Makarov
I read this, but in tutorial not used forms.Form class. I know how created forms on models.Model and forms.Form. But when I must use first and when second? суббота, 12 марта 2016 г., 0:56:34 UTC+3 пользователь James Schneider написал: > > On Mar 10, 2016 9:01 PM, "Denis Maka

Re: Model or Form class

2016-03-11 Thread Denis Makarov
You mean, that I must use Models.Model for database and Forms for creating forms both? пятница, 11 марта 2016 г., 7:06:01 UTC+3 пользователь bob gailer написал: > > > On Mar 10, 2016 9:01 PM, "Denis Makarov" > wrote: > > > > Hello guys! In whitch cases need

Model or Form class

2016-03-10 Thread Denis Makarov
Hello guys! In whitch cases need to use models.Model class and in whitch forms.Form? Don't understand it readed the documentation. -- 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

Re: CommonMiddleware ETag processing doesn't work as expected

2016-02-26 Thread Denis Cornehl
Hi Oleksiy, what version of Django are you using? There was a bug: https://code.djangoproject.com/ticket/26024 fixed here https://github.com/django/django/commit/186b6c61bfe85afa4d6bf213d04a28dd2853fed2 which was released in Django 1.9.2 -- Freundliche Grüße Denis Cornehl Sonntagstr

Re:

2016-02-03 Thread Denis Bellavance
this issue on Heroku too... Thanks On Wednesday, February 3, 2016 at 10:36:01 PM UTC-8, Denis Bellavance wrote: > > Hi, > > The "remote: Found another file with the destination path" is not > actually an error, I actually have thousands of those and it is normal. >

Re:

2016-02-03 Thread Denis Bellavance
dn't be logging this anymore), and see if it help... (verbosity=0) On Wednesday, February 3, 2016 at 6:34:47 AM UTC-8, Sergiy Khohlov wrote: > > Hello Denis, > > This issue is not related to the django-require. Look like you have > two files (with same name ) at t

[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: staticfiles ManifestStaticFilesStorage and Form Media

2015-12-06 Thread Denis Cornehl
Hi Brian, a sidenote, this will be fixed: https://github.com/django/django/pull/5571 -- Denis Am Sonntag, 6. Dezember 2015 um 17:17 schrieb Brian Neal: > I'm investigating using staticfiles ManifestStaticFilesStorage. Unless I'm > missing something, there seems to be a

Re: How to find the word 'python' in string 'pythonpythonpythonpyth'?

2014-11-05 Thread Denis Darii
Vitaly feel free to look on https://www.python.org/ for a solution to your issue and please keep only django related questions in this "Django users" group. Thank you. Denis. On 5 November 2014 12:41, Віталій Лисенко wrote: > Sorry. I asked the question incorrectly. > E

Re: Compress does not include less files correcty

2014-09-25 Thread Denis Simonet
x27;, 'lessc {infile} {outfile}'), ) lessc likes our less code more and it works! Am Donnerstag, 25. September 2014 16:23:36 UTC+2 schrieb Denis Simonet: > > Hi, > > We intend to extend openstack's Horizon, which is a Django application. > The first goal: add some custom

Compress does not include less files correcty

2014-09-25 Thread Denis Simonet
correct template is being used. The generated CSS file does not contain the contents of custom.less, though. To mention it again: With DEBUG mode on, everything works perfectly. Does anyone know, why this could happen? Thank you in advance! Kind regards, Denis -- You received this message bec

Less files not compressed on production

2014-09-25 Thread Denis Simonet
the correct template is being used. The generated CSS file does not contain the contents of custom.less, though. To mention it again: With DEBUG mode on, everything works perfectly. Does anyone know, why this could happen? Thank you in advance! Kind regards, Denis -- You received this message bec

Re: Commercial Django e-commerce products

2014-01-29 Thread Denis Cornehl
gt; To view this discussion on the web visit https://groups.google.com/d/ > msgid/django-users/52E8BC2C.40708%40mweb.co.za. > > For more options, visit https://groups.google.com/groups/opt_out. > -- Freundliche Grüße Denis Cornehl Simon-Dach-Str. 7 / 10245 Berlin M: +49 (151) 25 25

Re: wait message

2014-01-05 Thread Denis Chernoshchekov
Try using Ajax. 2014/1/5 fabricio > I am needing to display a wait message while processing perform some > process on the server anyone could help me > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and s

Re: django 1.4 : gunicorn can't find static files. settings option

2014-01-05 Thread Denis Cornehl
> 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, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this di

Re: Query parameters for receiving post

2013-10-09 Thread Denis Chernoshchekov
Your right... I can't testing now. 2013/10/9 Hélio Miranda > gives error: > 'BaseList' object has no attribute 'values' > > The query has to be the same as I stated it works: > * > Player.objects.filter(country__in=Country.objects.filter(nationality__in=Nationality.objects.filter(name='Espanhol

Re: Query parameters for receiving post

2013-10-09 Thread Denis Chernoshchekov
try this solution http://plnkr.co/edit/cyM6AmZcyFVUU6soFKhB 2013/10/9 Denis Chernoshchekov > ok, i understand, i minute. > > > 2013/10/9 Denis Chernoshchekov > >> *fld_name = 'nationality_in' *must be with double '_'* **fld_name = >> 'natio

Re: Query parameters for receiving post

2013-10-09 Thread Denis Chernoshchekov
ok, i understand, i minute. 2013/10/9 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

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. > >

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
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
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
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
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: 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: 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: 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: 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: 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: 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: 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: 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: 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 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: 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: 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: 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: 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: 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: 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: 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
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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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-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: 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 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: 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: 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: 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: 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: 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

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: 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

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: 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

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_

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

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

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: 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

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

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

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

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

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: 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: >

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

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

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&#

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

  1   2   >