Re: E-comm live project

2024-03-18 Thread Andrea Latorre
I'm in 3889249512 Il lun 18 mar 2024, 18:26 1001_prabhjot Singh ha scritto: > so i am working on a full stack e-comm website and this project is really > very big for me because it's a live project am using django for backend > interested one's can send there number for WhatsApp group > > -- >

django template engine and bootstrap modals

2022-02-10 Thread Andrea Villani
Hi everyone! I am developing an appweb and I'm stuck. My homepage is structured as a ListView, where each row shows every object's attributes using django template engine (ex: {{object.attribute}}. Last column shows a button to do an action through a bootstrap modal and if I put {{object .attrib

Issue in rendering of Inline forms on Django Admin site

2021-11-29 Thread 'Andrea Arighi' via Django users
some trivial error here that could explain what's happening? Or is this is a known bug? Thank you in advance to anyone that will help. Best regards * * * * * Andrea Arighi ~ Software Developer Please consider the environment before printing this email -- You received this message because you ar

Re: Handling multiple protocols in Channels 2

2019-05-06 Thread Andrea Conti
other processes required, and I don't even need to use a channel layer as long as I can live without the group facilities. Runs fine in development mode, let's hope it does not blow up with an external ASGI server. andrea On Monday, May 6, 2019 at 6:26:52 AM UTC+2, Fly Style wrote:

Re: Handling multiple protocols in Channels 2

2019-05-02 Thread Andrea Conti
nts within another process. Andrea On Thursday, May 2, 2019 at 2:33:01 PM UTC+2, Fly Style wrote: > > > have a try of https://github.com/ruralscenery/channels_mqtt > > Andrea Conti於 2019年5月2日星期四 UTC+8下午7時40分20秒寫道: >> >> Hello, >> >> I am trying to use Chan

Handling multiple protocols in Channels 2

2019-05-02 Thread Andrea Conti
each event in a scope which is then passed to the ASGI application. So, once again that would seem to require a second protocol handler besides the http/websocket one. Am I missing something? Any Ideas, corrections and pointers to relevant documentation and examples are welcome. Thanks in adv

Re: admin.TabularInline has_change_permission bug?

2018-12-18 Thread Andrea
I found the reason: https://github.com/django/django/commit/27f5b0aff3442e5c25e84972dff4f5fe1edd4e68 at this line (1962): if not inline.has_change_permission(request, obj): an empty ParentModel is given as `obj` instead of None. Is this a new behavior or a bug? Thanks! Andrea Angelini *Zap

admin.TabularInline has_change_permission bug?

2018-12-18 Thread Andrea
n(self, request, obj=None): print(type(obj)) return super().has_change_permission(request, obj) When I go to "/admin/foo/parentmodel/add/" to add a new ParentModel in the admin panel: In Django 2.1.3 I get: In Django 2.1.4 I get: Can anyone reproduce the problem? Tha

Syntax error with TruncDay

2018-02-07 Thread Andrea
#x27;day', ("test_test"."date_start" - %s)) AS "d... Is anyone able to reproduce the problem? The goal is to shift the `date_start` field in time before applying the `Trunc*` operation. Is that possible? Thanks! Andrea Andrea Angelini *Zap 15* Tailored web solut

Django forms and django models

2017-11-30 Thread Andrea Cristiana Adamczyk Abascal
I have an attribute of a model called "options" that is an array of prayers that are entered through textinputs. How can I declare this attribute in the model and what widget may I use in the model form? thank you! -- You received this message because you are subscribed to the Google Groups "

Re: Migrations with multiple databases

2016-10-27 Thread andrea crotti
: > > Hi Andrea, > > If you have models that are entirely unrelated in different databases > you could use different values for INSTALLED_APPS to limit the apps > Django sees or by settings the values in the MIGRATION_MODULES dict to > None to tell Django that tho

Migrations with multiple databases

2016-10-25 Thread andrea crotti
We have a couple of databases with a tiny number of tables, but django-migrations has still go through all the migrations anyway. So even if the SQL itself is nothing it still takes a massive amount of time and memory for the usual known issues with migrations on big projects. I guess it works t

Re: Django and uuid with PostgreSQL

2016-10-18 Thread Andrea Posi
omplish it Il giorno mercoledì 19 ottobre 2016 02:14:23 UTC+2, Tim Graham ha scritto: > > The SQL looks correct -- it's not using anything Python related. Are you > encountering some error? > > On Tuesday, October 18, 2016 at 9:15:46 AM UTC-4, Andrea Posi wrote: >> >>

Django and uuid with PostgreSQL

2016-10-18 Thread Andrea Posi
I'm creating a rest api using Django and DRF. I don't want to expose IDs directly to clients so I'm trying to setup my models like this example: class AbstractGuidModel(models.Model): uuid = models.UUIDField(blank=True, default=uuid.uuid4, unique=True, editable=False) class Meta:

Re: model form does not work

2016-10-11 Thread Andrea D'Amore
only format messages to keep code properly formatted, use conventional python spacing for ease of read, use proper naming for classes -i.e. don't call your model "RegisterForm" and then your form "Regform". -- Andrea -- You received this message because you are subscrib

Re: Sqlmigrate generated SQL

2016-10-04 Thread andrea crotti
e SQL after would not apply because the schema changed in the meanwhile.. On Tuesday, October 4, 2016 at 10:41:25 AM UTC+1, andrea crotti wrote: > > Related to this other thread: > > > https://groups.google.com/forum/#!msg/django-users/V8Ei2qZJ8VI/bFUeY2wTAQAJ;context-place=forum/

Sqlmigrate generated SQL

2016-10-04 Thread andrea crotti
Related to this other thread: https://groups.google.com/forum/#!msg/django-users/V8Ei2qZJ8VI/bFUeY2wTAQAJ;context-place=forum/django-users I'm working on trying to find a workaround for migrations killing our local/CI servers, until there is a better fix in Django stable.. So started this proje

Re: ModelAdmin missing a couple of key features, or am I doing this wrong?

2016-09-16 Thread Andrea D'Amore
7;s likely to happen at some point with external services. -- Andrea -- 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

Re: creating a loginpage

2016-09-14 Thread Andrea D'Amore
/1.10/ref/urls/#include [2]: https://docs.djangoproject.com/en/1.10/topics/auth/default/ -- Andrea -- 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 dj

Re: Django migrations taking all the memory on Django 1.9

2016-09-08 Thread andrea crotti
o Django 1.10.x either. Hopefully that doesn't > demotivate you from contributing an improvement. > > > https://docs.djangoproject.com/en/dev/internals/security/#supported-versions > > On Monday, September 5, 2016 at 9:55:30 AM UTC-4, andrea crotti wrote: >> >> T

Re: Django migrations taking all the memory on Django 1.9

2016-09-05 Thread andrea crotti
at you disabled migrations for an app > (something_else) that's a dependency of another app that doesn't have > migrations disabled (something). That isn't permitted. I guess there's no > good solution for your requirements as of now. > > On Monday, August 8,

Re: Django migrations taking all the memory on Django 1.9

2016-08-08 Thread andrea crotti
hile testing. There's a ticket to make that a bit > easier: https://code.djangoproject.com/ticket/25388 > > On Saturday, August 6, 2016 at 6:07:04 AM UTC-4, andrea crotti wrote: >> >> >> Ok great thanks for the answer Markus. >> And yes I can try to help, it&

Re: Django migrations taking all the memory on Django 1.9

2016-08-06 Thread andrea crotti
oing things 100% properly while running migrations just for tests. I think that in general if there was just a way to render all the SQL that needs to be run statically for tests it would be great. On Friday, August 5, 2016 at 11:07:56 AM UTC+1, andrea crotti wrote: > > We have a very big Djan

Using Django Smart Selects to populate a dropdown menu within a form

2016-01-29 Thread Andrea Pinna
Dear all, I'm very unexperienced with Django but at the same time I'm trying hard to learn as much as possible. In my website I have a form with two dropdown menus, and I'd like to make the second (items) dependent by the first (categories). As an example, in the first dropdown the possible ch

Merry Xmass

2015-12-24 Thread Andrea Mucci
Merry Xmass to all and all your family Have a good djangoized new year -- 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.

Auto redirect with Apache?

2015-12-11 Thread Andrea Angelini
irst view I get the content of the main page (that is the content of "/") even if the URL remains "/test200/". Can someone reproduce the problem? Is it an Apache misconfiguration? Thanks, Andrea -- You received this message because you are subscribed to the Google Groups &

How to render a grouped list to a template

2015-07-12 Thread Andrea
r X * Book A * Book C Publisher Y * Book B * Book D I tried doing multiple for loops in the template, but couldn't make it work. I would appreciate it alot if someone could nudge me in the right direction on how to solve this. Thanks, Andrea -- You received this message because you a

Grouping lists in a template

2015-07-12 Thread Andrea
C Publisher Y * Book D I want to display: Publisher X * Book A * Book C Publisher Y * Book B * Book D I tried doing multiple for loops in the template, but couldn't make it work. I would appreciate it alot if someone could nudge me in the right direction on how to solve this. Thanks, Andrea

Re: ANN: Django website redesign launched

2014-12-17 Thread Andrea
eep scrolling up and down. As the content is not necessarily supposed to be viewed sequentially, I personally prefer to have more content at the same time in the view. Andrea 2014-12-17 9:59 GMT+01:00 Cal Leeming : > > I am inclined to agree that a site should try and look the same on a

Re: Backup vs Audit

2014-12-09 Thread Andrea Zakowicz
Most of the tools I've found is administered from commands and no template Django admin. What I want is to do both operations from the manager but found nothing. Help!! For example, proven tools are auditlog and dbbackup. El lunes, 8 de diciembre de 2014 10:22:49 UTC-3, Andrea Zak

Backup vs Audit

2014-12-08 Thread Andrea Zakowicz
Hi I wonder if you are aware of how to backup / restoration database and audit from the django admin. -- 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-use

Re: Show a model on the admin list index page

2014-10-07 Thread Andrea
perms = model_admin.has_module_permission(request) I was probably reading the dev documentation of something that's not in Django 1.7 but will be in Django 1.8. https://github.com/django/django/commit/504c89e8008c557a1e83c45535b549f77a3503b2 Thanks! Andrea 2014-10-07 11:54 GMT+02:00 Daniel Rus Morales : >

Re: Show a model on the admin list index page

2014-10-07 Thread Andrea
y. Which is the function in charge of checking for which models the user has permissions in the admin index page? I could override that one as well, as I did for the model with "has_add_permission". Thanks, Andrea -- You received this message because you are subscribed to the Go

Re: Show a model on the admin list index page

2014-10-07 Thread Andrea
d, but it's not shown in the admin index page (and that's my problem). What I do not want to do is to specifically assign the `foo.add_bar` permission under the `permissions` section in the user profile for each user. Thanks for your time spent in tackling this issue. Andrea 2014-10-07 1

Show a model on the admin list index page

2014-10-06 Thread Andrea
== request.user. admin/foo/bar/add allows the user to add a new object correctly. These links are although not displayed in the admin index page: which is the function that triggers the appearance of the model in the index page? admin/foo/ returns 403 Forbidden. I'm using Django 1.7 Thanks, An

Re: Extened User and have fieldsets instead of inlines

2014-08-14 Thread Andrea
I've personally used your approach with the following Inline: class UserProfile2Inline(admin.StackedInline): model = UserProfile2 can_delete = False fk_name = 'user' max_num = 1 Andrea 2014-08-14 5:57 GMT+02:00 Elliot : > Is it possible to have a exteneded u

Re: Django request.GET and jQuery Datatables

2014-07-25 Thread Andrea
OK, thanks! I won't use it for this specific case, but I'm sure it will be extremely helpful in the future. The logic you've shown can be applied in other different contexts. Andrea 2014-07-25 17:49 GMT+02:00 Tom Evans : > On Fri, Jul 25, 2014 at 4:00 PM, Andrea wrote: >

Re: Django request.GET and jQuery Datatables

2014-07-25 Thread Andrea
s what you mean something like that? Thanks, Andrea 2014-07-25 16:28 GMT+02:00 Tom Evans : > On Fri, Jul 25, 2014 at 2:46 PM, Andrea wrote: > > Hi Tom, > > > > thanks for your answer. > > I'm not sure I got it right, do you mean something like the following? >

Re: Django request.GET and jQuery Datatables

2014-07-25 Thread Andrea
column]' % i] = forms.IntegerField(required=False, min_value=0, max_value=5) self.fields['order[%d][dir]' % i] = forms.ChoiceField(required=False, choices=(('asc', 'asc'), ('desc', 'desc'))) self.fields['search[regex]']

Re: Django request.GET and jQuery Datatables

2014-07-25 Thread Andrea
c', 'desc'))) self.fields['search[regex]' % i] = forms.BooleanField(required=False) self.fields['search[value]' % i] = forms.BooleanField(required=False) draw = forms.IntegerField() length = forms.IntegerField() start =

Django request.GET and jQuery Datatables

2014-07-25 Thread Andrea
oiceField(required=False, choices=(('asc', 'asc'), ('desc', 'desc'))) sEcho = forms.CharField(required=False) and input_form = DataTablesForm(request.GET) How do I deal though with the new format, i.e. "columns[i].name" instead

Re: steps to connect as client to a tcp/ip server

2013-05-28 Thread andrea mucci
Hi Chiara The best solution is make two different projects one is your socket server and the other is the Django project. is not a good idea connect with socket directly to Django, this will be cause some large delays and in case of connection fails? what is the timeout of the socket connection?

Templates error on partial rendering

2013-02-18 Thread andrea crotti
I have a case where we use django templates, but it really makes no sense to render the templates if a value is not passed in the contentx, and it should just fail.. I don't find anywhere how to force that though, I understand the default of failing silently but there should be a way also to fa

Re: ANN: Portable Python 2.7.3.2 released

2013-01-20 Thread Andrea Lombardo
> > > Hi, I always get a checksum bad or corrupt file. I tried all mirrors. Even > with several pc... what can i do? Sorry for my english. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://group

Re: Step up to the plate

2012-09-06 Thread andrea mucci
Hi Alex if you need some help contact me to and.mu...@gmail.com have a nice day El 07/09/2012, a las 00:18, Alex Glaros escribió: > Dear Django Group, > > Can you spare a few lines of code? > > Our nonprofit has a great idea to help the unemployed and spur innovation at > the same time. > >

Re: Custom Admin Form for ManyToMany, missing Green Plus Sign?

2012-08-17 Thread andrea
Registering the model worked for me. Thanks! On Tuesday, February 16, 2010 11:18:09 PM UTC+11, Matt Schinckel wrote: > > On Feb 14, 3:49 pm, john wrote: > > > > Yes, the Items model data can be accessed through another part of the > > Admin interface, but I think the purpose of the Green Plus Sig

Re: Newbie form question

2012-07-02 Thread Andrea Mucci
hi the approach is correct, i think the problem is with the Field name have you used choices = ... ? if yes cloud you change the name of this field? cheers, 2012/7/2 Russ Abbott > As a Django newbie I apologize if this is a trivial question. > > I'd like to use a form field as an element

Re: High Traffic

2012-04-16 Thread andrea mucci
tried to switch to nginx+fcgi. and tried ubuntu srrver as well. same results. > > any ideas? > > On 16 באפר 2012 23:18, "andrea mucci" wrote: > hi Yarden > > how many users have you in your database? > you use mod_fcgi or mod_python? ( more recommendable will b

Re: High Traffic

2012-04-16 Thread andrea mucci
hi Yarden how many users have you in your database? you use mod_fcgi or mod_python? ( more recommendable will be mod_fcgi or mod_fcgid ) Django is framework that suppert very very large traffic. you can see an example here http://instagram-engineering.tumblr.com/post/13649370142/what-powers-inst

Re: Missing manage.py

2012-04-16 Thread andrea mucci
hi could you post django version python version you use virtualenv? if yes what version and the code you use to generate the project cheers El 16/04/2012, a las 13:26, Faeez Abd Rahman escribió: > Hi, > > I have a problem whenever I create a new project using the start project > command, no m

Re: Admin site not working

2012-04-15 Thread andrea mucci
hi have you make a syncdb? El 15/04/2012, a las 15:17, mohamed elsebaey escribió: > Hi, > I'm a new user for django, I started using the tutorial for ver 1.4 > with > python 2.7.1 on mac 10.7.3 > when i try to open the admin site it' gives me the following error > > > DoesNotExist at /admin/

Re: Is it a good practice to delegate views based on GET / POST?

2012-04-10 Thread andrea mucci
hi this is something personal choice i prefer to check GET and POST directly from the view method, but in some case is useful to part the GET and the POST view for readable and clean coding El 11/04/2012, a las 01:21, John Yeukhon Wong escribió: > 3/4 down the page > http://www.djangobook.com

Re: Template inheritance and passing variables

2012-04-10 Thread andrea mucci
Hi in django documentation https://docs.djangoproject.com/en/dev/ref/templates/builtins/?from=olddocs Note The include tag should be considered as an implementation of "render this subtemplate and include the HTML", not as "parse this subtemplate and include its contents as if it were part of t

Re: Django tutorial

2012-04-10 Thread andrea mucci
a good solution could be: SITE_ROOT = os.path.realpath(os.path.dirname(__file__)) DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. 'NAME': os.path.join(SITE_ROOT,'sqlite.db'),

Re: Django tutorial

2012-04-10 Thread andrea mucci
hi Ed you have configured the DB with the sqlite3 driver and you point the NAME db to a mysql folder. you need to put the folder for your sqlite database. cheers, El 10/04/2012, a las 23:15, Ed McLaughlin escribió: > DATABASES = { >'default': { >'ENGINE': 'django.db.backends.sqlite3'

Re: [JOB] Urgent - PHP/Python Developer needed

2012-04-10 Thread andrea mucci
> anyway, the fact that there is someone who has a salary so painful not > exclude that the offer is "bad" cheers, El 10/04/2012, a las 23:18, Cal Leeming [Simplicity Media Ltd] escribió: > > > On Tue, Apr 10, 2012 at 10:12 PM, andrea mucci wrote: > hi Cal > >> O

Re: [JOB] Urgent - PHP/Python Developer needed

2012-04-10 Thread andrea mucci
hi Cal > Our solutions are high volume (peaking at around 5000 requests/minute), with > extremely large databases (400 million+ rows) and large content servers > (15TB+ of media files). If you put in the hands of a junior dev this, your customer has to pay more for damages over wage offered th

Re: Django for Enterprise

2012-04-10 Thread andrea mucci
( maybe offer a telecommuting job ) a finally, ask if have some projects posted on github or bitbucket and if not if have some certified references for past jobs cheers, El 10/04/2012, a las 22:17, Ivo Marcelo Leonardi Zaniolo escribió: > Tanks Andrea. > > Maybe my biggest problem is to

Re: Django for Enterprise

2012-04-10 Thread andrea mucci
hi ivo the problem is not if Django is a good framework for huge project, but if you or your devs have experience to design and maintain some "big" projects. with python and django have a lot of projects with huge traffic or huge database design, so i think is possible to create something very "

ANN: Django-Shorty 0.1.0 released

2012-03-13 Thread andrea mucci
y documentation: http://django-shorty.readthedocs.org/en/latest/index.html Thank's Andrea -- 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 thi

Re: Staticfiles on shared hosting using FCGI

2012-01-27 Thread Andrea Mucci
Have you try this '%s/your_static_folder'%os.path.dirname(__file__) You crete a folder in the same position of settimg.py El 14/01/2012, a las 08:06, Tundebabzy escribió: > I am stuck after running collectstatic. I don't know how to point the > server to STATIC_ROOT. > Can someone give assista

translate user registration errors

2010-11-09 Thread Andrea Imparato
Hello to all, I have to translate Username can only contain alphanumeric characters and the underscore. error when my users have to register to my site. How can I do that? I tried blocktrans without success :( Thanks P.S.: django is so cool :) -- You received this message because you are subsc

djagios

2010-10-26 Thread Andrea Imparato
Hello to all, I would like to add some nagios feature to my django app. I found this project http://djagios.org/index.html but I see that is not supported since 9 December 2009 :\. What do you think about it? Is it safe in your opinion or can you suggest me other solutions? Thanks -- You recei

Re: double for in the template

2010-08-26 Thread Andrea Imparato
don't know how to use it in the template. Any advice?:) On 26 Ago, 00:56, bruno desthuilliers wrote: > On 25 août, 18:30, Andrea Imparato wrote: > > > Hello all, > > > is possible to do in templates double for like in C: > > > for(int i = 0, int j = 0; i<0 &a

double for in the template

2010-08-25 Thread Andrea Imparato
Hello all, is possible to do in templates double for like in C: for(int i = 0, int j = 0; i<0 && j<0;i++,j++) ? I can't find nothing interesting in the docs :( -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Reusable/plugable apps integrations best practices

2009-08-23 Thread Andrea Zilio
And what about doing the same way the Comment application (bundled with Django) works? I think that looking the way Comment app works could inspire you On Aug 24, 12:39 am, Richard Marko wrote: > Simple approach for this is to use try catch block to create proper > field like this: > > from dja

Re: Reusable/plugable apps integrations best practices

2009-08-23 Thread Andrea Zilio
I'm intrested in the answer too On Aug 23, 1:36 am, "Chris H." wrote: > So I'm trying to get my head around making my small, tightly focused > apps reusable.  I've done this, but right now still have > "dependencies" between one another, that I'd like to remove.  For > simplicity sake, I have an

Re: Specific fields in 'select'

2009-08-22 Thread Andrea Zilio
I think this is what you need: http://docs.djangoproject.com/en/dev/ref/models/querysets/#only-fields On Aug 22, 1:43 pm, Hanpan wrote: > Am I right in saying that .values() won't span across joins though? I > have a many-to-many field which I would like to retrieve somehow. > > On Aug 22, 12:18

Re: Need for an internationalization/translation system not request-based

2009-08-12 Thread Andrea Zilio
I'm sorry, can you explain a little bit this problem? Or where I can get info about it? On Aug 12, 3:48 pm, Jarek Zgoda wrote: > Wiadomość napisana w dniu 2009-08-12, o godz. 13:00, przez Enrico   > Sartorello: > > > i'm facing a problem developing with Django a Web Application: in > > response

Re: How redirect lightweight webserver messages?

2009-07-17 Thread Andrea Della Pietra
Yes and also on windows. I use tee in order to have print on stdout and also on a log file. The problem is that I don't see django web server messages on log file (I see only my logging messages). Maybe I've found the problem checking Django source. Server log message are send to stderr (stdout is

Customize django.views.generic.create_update.create_object

2009-05-15 Thread AndreA
', delete_object, dict(info_dict, slug_field='slug', post_delete_redirect="/index/")), Everything works correctly but as slugField is just a support field I don't want user should insert it at creation time. How can I "hide" this slugField in autogenerated form? Thank you

Re: Really slow functional tests

2009-02-11 Thread Andrea Reginato
On Feb 11, 1:59 pm, felix wrote: > do you have large initial_data fixtures ? > > tables get flushed and initial_data is added each time. Yes, looking at it it's quite huge, and if it's loaded each time for sure that is the problem, so thanks. I wanted also to ask if the template, that load imag

Really slow functional tests

2009-02-11 Thread Andrea Reginato
Hei guys, I've a question related to some tests I've make. When I run them they need lot of time to be executed. I'm talking about 10 seconds for single test. They are functional test such as the one you can see above (normal functional tests). def setUp(self): self.c = Client()