Re: manage.py loaddata: Problem installing fixture... Email matching query does not exist

2022-10-17 Thread Luiz Angelo Daros de Luca
Hello Moritz, I have good news. I managed to migrate from sqlite3 to postgresql. You need to apply this patch and load each mailman app individually because it conflicts with existing objects, truncating the *_profile tables on the way. https://gitlab.com/mailman/hyperkitty/-/merge_requests/469

Re: manage.py loaddata: Problem installing fixture... Email matching query does not exist

2022-09-27 Thread Luiz Angelo Daros de Luca
Hello Moritz, I got the same problem doing the same mailman3 migration (but to a postgres db). Do you have a solution? Regards, -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it,

Re: Problem when i turn debug False

2021-09-02 Thread Luca Bertolotti
Yes i have read the documentation but as you can see I never understand. I think that I can use whitenoise in a2hosting, let me ask for a stupid question, a friend have a VNS on a different machine is possible use his machine for load static files? Regards Il giorno gio 2 set 2021 alle ore 16:00

problem with user autentication

2020-04-03 Thread Luca Bertolotti
Hello i can't authenticate user I have crete the user with: def create_user(request us = request.POST['username'] ml = request.POST['email'] passw = request.POST['password'] User.objects.create_user(us, ml, passw) return.. I see the user in the database

get data from html table

2020-01-19 Thread Luca Bertolotti
Hello there is a way to get data from html table like this {% extends "base.html" %} {% load static %} {% block content %} {% csrf_token %}Nuovo {% csrf_token %}Cerca ID Matricola Descrizione Disegno Peso in KgMatricola Fornitore QuantitàPrezzo

apache on windows

2019-10-21 Thread Luca Bertolotti
Hello I need to run my project in windows with apache. I have installed apache and it's running because when i browse to 127.0.0.1:5000 i get "It works!", i change the default port to 5000 because on windows you have IIS working on port 80 this are my file I write only what i have change from

filter.update

2019-10-11 Thread Luca Bertolotti
sorry but i have a big problem I have this mylist = ['a','b','c'] than Mydbtable.filter(column = value),update(mylist[0]=value) why update never accept mylist[0] there is a solution? regards -- You received this message because you are subscribed to the Google Groups "Django users" group. T

Re: list cycle in template

2019-10-09 Thread Luca Bertolotti
27;bb'] >> return render({'mylist':mylist}) >> >> Then in your template: >> >> {% for a in mylist %} >> {{ mylist }} >> {% endfor %} >> >> >> >&

list cycle in template

2019-10-09 Thread Luca Bertolotti
Hello in the view a hve a list mylist = ['aa','bb'] n = range(len(mylist)) return render({'mylist':mylist,'n':n,.}) in the template i do this: {% for a in n %} {{ mylist.a }} it never show nothing, but if i do: {% for a in n %} {{ mylist.0 }} it show 'aa' Where is the mistake? Thanks

for loop template

2019-10-04 Thread Luca Bertolotti
from the view i give to the template the following variables selezione = Dbasedett.objects.filter(idbase=mod_id, revdbase=rev_test) lista = ['test', 'test_one'] Than i return render(.{'selezione':selezione, 'lista':lista} In the form i need to do this: {% for dati in s

rumove upload_to in the database

2019-09-19 Thread Luca Bertolotti
Hello in the model i have : file = models.FileField(upload_to='disegni/', blank=True, null=True) in the database in the column file django save : disegni/filename.xxx in which way i can save only the filename and not the folder? Best Regards -- You received this message because you are subscri

Re: media file upload

2019-09-18 Thread Luca Bertolotti
ns/4526273/what-does-enctype-multipart-form-data-mean > > Sent from my iPhone > > On 18 Sep 2019, at 17:38, Luca Bertolotti > wrote: > > Hello i can't upload the file, i'm in a debug mode: > > the urls.is: > > from django.contrib import admin > from

Re: media file upload

2019-09-18 Thread Luca Bertolotti
Thanks Luca Il giorno mercoledì 18 settembre 2019 19:29:00 UTC+2, mohammed habib ha scritto: > > Make sure to add ‘enctype="multipart/form-data"’ to your form tag, so > that the file data is included in when the form is submitted > > > https://stackoverflow.com

media file upload

2019-09-18 Thread Luca Bertolotti
Hello i can't upload the file, i'm in a debug mode: the urls.is: from django.contrib import admin from django.urls import path, include from django.conf import settings from django.conf.urls.static import static urlpatterns = [ path('', include('polls.urls')), path('admin/', admin.site

Re: queryser variable from template to a view

2019-09-18 Thread Luca Bertolotti
Hello if i pass and in the view i do this def exmple(request,myvar): sort = myvar.order_by() i get an error because myvar is a string instead i near a query set Luca Il giorno mercoledì 18 settembre 2019 15:56:19 UTC+2, Jani Tiainen ha scritto: > > Hi. > > t

queryser variable from template to a view

2019-09-18 Thread Luca Bertolotti
Hello i need to pass a query set from template to a view: in which way i have to define the urls file path('test//***what to write+++', views.test, name='test'), -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

Order column

2019-09-18 Thread Luca Bertolotti
Hello I have a query that filter the data. I put the results in a table in the template I have make a function that by clkicking on the th order the data,ex. def filter(request): results = My.objects.filter() return render(request, "pro/all.html", {"all": results, }) than in the te

Re: variable from template to view

2019-09-13 Thread Luca Bertolotti
Hello again > I have solved with this: def canc_cli(request, idcliente): print('luca :'+str(idcliente)) Clienti.objects.filter(pk=idcliente).delete() return redirect('tutti_clienti') -- You received this message because you are subscribed to the Google Group

variable from template to view

2019-09-13 Thread Luca Bertolotti
i(request, idcliente): print('luca :'+str(idcliente)) Clienti.objects.filter(pk=idcliente).delete() tutti = Clienti.objects.all() return render(request, "polls/tutti_clienti.html", {"tutti": tutti}) Than he to the right job, but if i push the butt

Re: page not found but url exists

2019-08-26 Thread Luca Mazzilli
Kean, Have you tried removing the initial slash inside the path? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To vi

django tests - model instance not created

2019-05-09 Thread luca bocchi
I'm experiencing issues on creating fixtures for a particular model in a test class with Django and the DRF. I'm using model-mommy , but even creating a single instance just using the Django ORM for that model does not work: *from

Re: Error at OneToOneField in models while creating new models class

2018-09-26 Thread luca bocchi
seems that your app is not in settings.INSTALLED_APPS, add 'section' there and retry. L Il giorno lunedì 24 settembre 2018 13:22:48 UTC+2, Srinivas Gadi ha scritto: > > Thank you for the response, > 1. Deleted the migrations folder > 2. Removed the SQLite3 DB itself > 3. My dir structure. > > 24

Re: what's args parameter in reverse()

2018-09-26 Thread luca bocchi
args should be a list or a tuple, although is not specified clearly in the docs: https://docs.djangoproject.com/en/1.11/ref/urlresolvers/#reverse def test_post_update_view(self): response = self.client.post(reverse('post_edit',args=['1']),{ 'title':'Updated title', 'body':

Re: Make migration issue for a unique True filed.

2018-09-26 Thread luca bocchi
fields are not null by default, so you don't need: *null=False* that's why *makemigrations* doesn't detect changes in the *MyModel* model. L Il giorno mercoledì 26 settembre 2018 13:16:24 UTC+2, jisson varghese ha scritto: > > > I have model MyModel in app app1 > > class MyModel(models.Mod

Re: DEFAULT_FILE_STORAGE and tests

2018-09-25 Thread luca bocchi
Il giorno giovedì 20 settembre 2018 15:25:23 UTC+2, sandro dentella ha scritto: > > Hi, > > I have a storage that create some thumbnail and is declared in some > models' fields. It's created inheriting from DEFAULT_FILE_STORAGE and it > just works fine both in FileSystemStorage and in Aws. >

Re: My django model joining wrong fields when there are multiple related fields with join

2018-09-25 Thread luca bocchi
Hi Sadaf, re the m2m rel: since your not adding additional fields on the intermediate model ProductShadowCategory, there's no need for that: class Category(SlugableModel): shadow_products = models.ManyToManyField("product_management.Product") the orm will automatically create an intermediate

Re: My django model joining wrong fields when there are multiple related fields with join

2018-09-25 Thread luca bocchi
Hi Sadaf, re the m2m rel: since your not adding additional fields on the intermediate model ProductShadowCategory, there's no need for that: class Category(SlugableModel): shadow_products = models.ManyToManyField("product_management.Product") the orm will automatically create an intermediate

Re: DEFAULT_FILE_STORAGE and tests

2018-09-25 Thread luca bocchi
already tried: class GeneraliDiscoverRunner(DiscoverRunner): def setup_test_environment(self, **kwargs): settings.DEFAULT_FILE_STORAGE = 'web.storage.TestStorage' super().setup_test_environment(**kwargs) ? although I'm not sure that settings can be changed at runtime by that.

[no subject]

2018-09-25 Thread Luca
-- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. V

Re: DEFAULT_FILE_STORAGE and tests

2018-09-25 Thread luca bocchi
Already tried with: class GeneraliDiscoverRunner(DiscoverRunner): def setup_test_environment(self, **kwargs): settings.DEFAULT_FILE_STORAGE = 'web.storage.TestStorage' super().setup_test_environment(**kwargs) ? otherwise, I'd say to run the test with a custom settings module

Aa

2018-08-01 Thread Luca Subiaco
-- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. V

Re: How to configure NGINX to run Django app in a subpath?

2017-11-30 Thread Luca Moiana
1, Etienne Robillard ha scritto: > > Whats wrong in using FastCGI for your specific use-case ? > Etienne > > Le 2017-11-29 à 15:45, Luca Moiana a écrit : > > Following this tutorial > > I came up with this NGINX server: > > upstream app_name { > >server un

Re: How to configure NGINX to run Django app in a subpath?

2017-11-29 Thread Luca Moiana
> > Then you have no need to have 2 nginx confs, just put that the proxy_pass > "starts" in your prefix instead of root > > On Mon, Nov 27, 2017 at 8:32 AM, Luca Moiana > wrote: > >> Googling around I found this page >> http://albertoconnor.ca/hosting-django

Re: How to configure NGINX to run Django app in a subpath?

2017-11-27 Thread Luca Moiana
before it gets to Django (by nginx or gunicorn). > > HTH :) > > On Sun, Nov 26, 2017 at 4:56 PM, Luca Moiana > wrote: > >> Hi, >> >> Sorry for the slight OT but after days of search I have no clue. >> >> >> Following this DigitalOcean tutoria

Re: How to configure NGINX to run Django app in a subpath?

2017-11-27 Thread Luca Moiana
Thanks, I read you tutorial but I don't get where I should set my subpath? thanks a lot Il giorno domenica 26 novembre 2017 21:06:56 UTC+1, k2527806 ha scritto: > > https://jee-appy.blogspot.com/2017/01/deply-django-with-nginx.html > > On Sun, Nov 26, 2017 at 11:26 PM, Luc

Re: How to configure NGINX to run Django app in a subpath?

2017-11-27 Thread Luca Moiana
that you will have to deal with "/pmapp" prefix in your >> routing / urls. You can deal with this inside Django or have it stripped >> before it gets to Django (by nginx or gunicorn). >> >> HTH :) >> >> On Sun, Nov 26, 2017 at 4:56 PM, Luca Moiana &g

Re: How to configure NGINX to run Django app in a subpath?

2017-11-27 Thread Luca Moiana
al with this inside Django or have it stripped > before it gets to Django (by nginx or gunicorn). > > HTH :) > > On Sun, Nov 26, 2017 at 4:56 PM, Luca Moiana > wrote: > >> Hi, >> >> Sorry for the slight OT but after days of search I have no clue. >> >

How to configure NGINX to run Django app in a subpath?

2017-11-26 Thread Luca Moiana
Hi, Sorry for the slight OT but after days of search I have no clue. Following this DigitalOcean tutorial I was able to setup Django + Postgres + Gunicorn + NGINX running D

Registration Redux sign up process

2016-04-19 Thread Luca Brandi
Hello I installed this app for authentication and registration purposes. I am wondering if there is a way to send activation link only after admin has verified user can be registered or if a signal could be receive dby admin when someone registers before activating it.. Thnaks -- You received

Re: Emails to users

2016-04-11 Thread Luca Brandi
I can create a template but then how to create a function to send it via smtp? Il giorno domenica 10 aprile 2016 19:51:40 UTC+2, Avraham Serour ha scritto: > > Of course there's, you'll need to create email templates and then email > the users > > On Sun, Apr 10,

Emails to users

2016-04-10 Thread Luca Brandi
Hi I am wondering how the admin can communicate to his users...Is there a way for example to create email templates and then email them to user? THANKS -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop rece

Re: Simple to say but difficult in django?

2016-04-10 Thread Luca Brandi
mplete > > considering you are using a login_required decorator then you also want to > limit access to the file > > If you put it in your static directory then it will be public if anyone > knows the URL to the file > > On Sat, Apr 9, 2016 at 1:56 PM, Luca Brandi >

Simple to say but difficult in django?

2016-04-09 Thread Luca Brandi
Hi, I need to make something very simple but it seems all exmplesI found on the web, do not work, so I am sure this group will find the right solution (please consider I am a newbie so please be specific and detailed in your reply): I just need to store a pdf file in my sytic files and have a li

Re: Suggest newsletter to integrate in django project

2016-04-09 Thread Luca Brandi
your needs at > django-packages :) > > https://www.djangopackages.com/grids/g/newsletter/ > > > On Thursday, April 7, 2016 at 12:55:08 PM UTC+2, Luca Brandi wrote: >> >> Hi, >> followed some tutorials on the web integrating Mailchimp in my django >> proj

Suggest newsletter to integrate in django project

2016-04-07 Thread Luca Brandi
Hi, followed some tutorials on the web integrating Mailchimp in my django project but not working... Any suggestion on a similar service easily to integrate in django? thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from t

Dedicated pages for specific group members

2016-04-07 Thread Luca Brandi
Hi is there a possibility to create some group members and let them have some secific url pages accessible to? I am thinking to a kind of "if staff is member of group"open link page.. Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. T

Re: Polymorphic class and geomodels?

2016-02-05 Thread Luca Moiana
od performance) let me know please. > > Many thanks, > > Serge > > > +380 636150445 > skype: skhohlov > > On Fri, Feb 5, 2016 at 7:25 PM, Luca Moiana > wrote: > >> Hi Serge, >> >> thank you for your reply. >> >> I'm working on an

Re: Polymorphic class and geomodels?

2016-02-05 Thread Luca Moiana
u > need in case of abstract class for different types usage ? > > Many thanks, > > Serge > > > +380 636150445 > skype: skhohlov > > On Fri, Feb 5, 2016 at 11:07 AM, Luca Moiana > wrote: > >> Hi Collin, >> >> Sorry for the late reply, but I

Re: Polymorphic class and geomodels?

2016-02-05 Thread Luca Moiana
le.com/group/geodjango > > Collin > > On Monday, October 26, 2015 at 7:18:24 AM UTC-4, Luca Moiana wrote: >> >> Hi, working on my first django app, and run into a problem. >> >> I tend to create geodjango objects, and add all data from external tables >> with p

Polymorphic class and geomodels?

2015-10-26 Thread Luca Moiana
Hi, working on my first django app, and run into a problem. I tend to create geodjango objects, and add all data from external tables with pk. Then I want to have different geometries 8points, lines, polygons) into a unique polymorphic class, can I do that? I have an error that I'll document

Solr highlighting through Scorched in Django

2015-10-05 Thread Luca Guariento
Hi all, I am trying to output the highlighted search-term from a Solr search. I'm using Django 1.8.4 with Scorched. I have already activated highlighting (resp = ('highlighting', self.solr_response.highlighting)) to the search-view, and my json output from a search is: "highlighting": { "f0

Admin issues with inlines

2015-09-24 Thread Luca Corti
lxO2xxoMnc-- A stack overflow post (http://stackoverflow.com/questions/11546245/django-inline-admin-formset-extra-entry-has-prefix-instead-of-number) suggests display: none is not picked up from forms.css (empty-form class) but in my case it seems it is. I’m looking at Chrome Developer Tools. My inl

Upgrade to Django 1.7 - AppRegistryNotReady exception

2014-10-12 Thread Luca Trifilio
I'm struggling by trying to make things work after upgrading the Django version from 1.6.7 to 1.7. It looks like I'm not able to focus on the right matter. I try to resume the situation so far. Thing is: if I leave the command django.setup() in my wsgi.py file, when I try to access my website

Re: Suggestions about building new ecommerce website

2014-09-08 Thread Luca Corti
https://www.djangopackages.com/grids/g/ecommerce/ Il 2014-09-08 15:16 Shreyans Jain ha scritto: I want some suggestions on building a big eCommerce website . I have a good experience of making website in asp.net [1] ,asp.net [1] Ajax and sql server 2008 . Now I am thinking about moving from Mic

Re: looking for a good tutorial for creating user with fb,tw,google login

2014-07-21 Thread Luca Corti
Il 2014-07-20 20:53 Bussiere ha scritto: there is no twitter in django-allauth. Twitter is there. https://github.com/pennersr/django-allauth/tree/master/allauth/socialaccount/providers/twitter ciao Luca -- You received this message because you are subscribed to the Google Groups "D

Re: how to make https work in django REST framework

2014-02-13 Thread Luca Corti
Il 2014-02-13 06:16 zhenwu he ha scritto: Thanks for your help, Luca. Could you elaborate a little bit? I am kind of new to this kind of thing. What I am doing is that, I am using django to redirect all url calls to python API to handle something and then return as response. you want me to

Re: how to make https work in django REST framework

2014-02-11 Thread Luca Corti
your web server when the REST API url is called via plain HTTP. ciao Luca signature.asc Description: Message signed with OpenPGP using GPGMail

Re: Admin custom template

2013-11-20 Thread Luca Corti
take a look at its code. ciao Luca signature.asc Description: Message signed with OpenPGP using GPGMail

Re: setlang using AJAX

2011-05-30 Thread Luca Casagrande
load the whole page anyway or you want only part of > the page to be translated? > There's a way to change language without form. > > R. > > On 30. Máj, 13:07 h., Luca Casagrande > wrote: > > > > > > > > > Hello everybody, > > I'd like

setlang using AJAX

2011-05-30 Thread Luca Casagrande
ng to docs, this seems no more possible. Thanks for your support. Luca -- 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 d

Re: Localization of CharField entries

2011-03-22 Thread Luca Casagrande
On 22 Mar, 10:22, bruno desthuilliers wrote: > on 22 mar, 09:26, Luca Casagrande wrote: > > > Hello everyone, > > I'm working on the localization of a Django project and I met some > > difficulties. Following the documentation in the section > > "Internat

Localization of CharField entries

2011-03-22 Thread Luca Casagrande
em is that one of my models has a notes field (CharField) with different text for each entry. What is the best way to translate those values​​, if possible, always working with po files? Thank you very much Luca -- You received this message because you are subscribed to the Google Groups &quo

GeoDjango admin and data reprojection

2011-01-21 Thread Luca Casagrande
I don't understand how Django request a feature to be drawn and which tools uses for reprojection. Thx for your help Luca -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googleg

Removing title from each admin page

2010-11-26 Thread Luca Casagrande
Hello folks, is there any way to remove the title over each admin element, like "Site administration" or "Select..to change". Thanks Luca -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Filter data inside template

2010-07-16 Thread Luca Casagrande
Hello everybody, is it possible to filter data inside template? I have 2 models with a foreignkey relationship: class Requests(models.Model): name = models.CharField(max_length=16) surname = models.CharField(max_length=16) class Information(models.Model): request = models

Looping through models

2010-06-01 Thread Luca Casagrande
loop changing only the model name? Thank you very much Luca -- 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 this group, send email to django-user

Re: Does Django use prepared statement when generating SQL for postgresql?

2009-09-14 Thread Luca Ferroni
ke to know if someone has already done something to use as a starting point. TIA fero -- Potranno toglierci la vita, ma non ci toglieranno mai ... la LIBERTA' !! Luca Ferroni http://pdp.linux.it/~fero PDP FSUG http://pdp.linux.it --~--~-~--~~~---~--~~