Django Developer with Prior Experience developing a dialer required

2024-04-03 Thread Abhishek J
Dear Developers, I need to build an android and IOS phone dialer similar to Truecaller. We are seeking experienced and dedicated candidates who are proficient in Django and possess a keen interest in contributing to this impactful initiative. We look forward to the opportunity to collaborate

Freelance Opportunity : Django Developer for building A Dialer

2024-04-02 Thread Abhishek J
Dear Developers, I need to build an android and IOS phone dialer similar to Truecaller. We are seeking experienced and dedicated candidates who are proficient in Django and possess a keen interest in contributing to this impactful initiative. We look forward to the opportunity to collaborate

Accessing my local backend

2023-03-12 Thread Rafael J. Soteldo S.
Hi there: I'm being able to access my local backend built with django/python from Postman and react, but if I try to access it from an application built for mobiles, I get a Network error. I try to access the backend from an android device What should I set in django in order to being able to

Uptime all the time

2023-01-22 Thread j harvey
I am looking for ideas on how to keep my app running all the time, even when uploading data that will replace the current data. Some of these tables will have a million rows or more. Ideas? Thanks in advance, John -- You received this message because you are subscribed to the Google Groups

Upgrading Django from 3.2.16 to 4.1.x

2023-01-16 Thread 'Ellinghaus, Lance J' via Django users
I will be upgrading from Django 3.2.16 to 4.1.x and wanted to know if anyone has any suggestions. I am using oracle as the backend. The release notes do not go into much detail. Do I just need to install the Django 4.1.x software and run the makemigrations to do the upgrade? Thank you, Lance

Re: User authentication with simple-jwt drf

2022-08-31 Thread Mobina J
hii import pandas as pd from django.contrib import messages from django.core.mail import EmailMessage from django.shortcuts import render from django.template.loader import render_to_string from app_1.form import NotificationForm def email_generic_template(request): form =

Project Organization.

2021-12-19 Thread J A
. This would allow me to keep different types of data separated and displayed differently. My question is this: Is this a good idea? if I break things up into different applications can I also create a federated search across apps? Thanks J -- You received this message because you

RE: edit_view() missing 1 required positional argument: 'id'

2021-09-14 Thread Vikram J
Good Day, I got this error how can I fixed it, plz help me out, views.py def edit_view(request, id , *args, **kwargs): d1 = data.objects.get(id=id) if request.method == 'POST': form = dataForm(request.POST, instance=d1) if form.is_valid():

Re: use of annotate in django query

2021-07-26 Thread V. J
Hello, I'm making a list of potential customers, in about two months, we will have a business plan ready and we will issue a digital token (ICO) based on our product in the company. Would you be interested in learning more ...? Dne so 5. čvn 2021 19:09 uživatel Lalit Suthar napsal: > just

Re: CSS not linking with HTML

2021-07-26 Thread V. J
Hello, I'm making a list of potential customers, in about two months, we will have a business plan ready and we will issue a digital token (ICO) based on our product in the company. Would you be interested in learning more ...? Dne čt 3. čvn 2021 10:06 uživatel sukhy gill napsal: > Dear frnd >

How does django-admin work?

2021-05-31 Thread J Lee
I'm new to Django, and I've just been dazzled by the magic of Django. My main question is how does Django add django-admin to my path automatically and how does django-admin startproject create my files? It may be wy over my head, but I welcome any and all response. I would like to learn

Re: Am I being hacked?

2021-05-07 Thread Stephen J. Butler
Unlikely. The local connection is in a high port range and the remote connection's port is 443, which indicates your machine made an outbound HTTPS connection to that IP. Does your code make any HTTP requests? Does it use anything like OpenID Connect for auth? Do you have SSL certs it is checking

Beginning project of displaying graphical information from a sql database

2021-04-06 Thread J R
Hello, Fairly new to Django, I've been through a few tutorials and understand the basics. My goal is to create a page which shows a defined asset's value over time compared to various social metrics tying to that asset (volume of reddit comments, twitter posts, ect.). The user will input

channels_redis SSL help

2021-01-19 Thread j
Hi all, hope you are all doing well. Would someone be available to help me figure out how to connect with SSL using channels_redis? I made a web app using django channels + channels_redis and I'm having an issue with configuring SSL. (I want SSL because I have deployed the app to Google App

Re: Apple M1 Silicon + Django = weird results

2020-12-21 Thread Stephen J. Butler
Looking at that code for RangedFileResponse, I'm kind of skeptical that it properly implements the Range header. Try removing that bit and see if it works. Have you tried the download with various browsers? I wonder if Safari or Chrome released at the same time as the M1 chips is causing

Re: NoReverseMatch at /searchlit/customsearch and bigger problem of exporting a filtered queryset

2020-08-29 Thread V. J
Věřte si  Vašek. JOdesláno z mého telefonu Huawei Původní zpráva Od: RANGA BHARATH JINKA Datum: so 29. srp 2020 5:00Komu: django-users@googlegroups.comPředmět: Re: NoReverseMatch at /searchlit/customsearch and bigger problem of exporting a filtered querysetHi,     There is a

Re: def__str__(self) not working properly

2020-08-25 Thread Aginjith G J
0 Do this. def __repr__ (self): return self.title restart the shell/session. then check. i had this issue. only after restarting the section it worked On Sunday, 16 September 2018 at 17:14:18 UTC+5:30 Daniel Herrera wrote: > I was having

Re: Security issue in django.db.models

2020-08-08 Thread Stephen J. Butler
If you look at the documentation for 'blank' it says: """ Note that this is different than null. null is purely database-related, whereas blank is validation-related. If a field has blank=True, *form validation* will allow entry of an empty value. If a field has blank=False, the field will be

Re: Trouble getting kwargs into filter

2020-07-05 Thread Stephen J. Butler
get_queryset() isn't documented as taking any args at all, let alone the kwargs of the request. You sometimes see people do "def get_queryset(self, **kwargs)" to future-proof themselves in case get_queryset does, one day, accept args. But it doesn't right now. To get the kwargs for the request

Django 1.11 security backports

2020-06-09 Thread Nikolas J. Nyby
Is anyone maintaining an unofficial Django 1.11 security backports branch? I'm migrating to Django 2.2 as soon as possible, but I was just curious if anyone has a branch with the recent security fixes ported in to Django 1.11. -- You received this message because you are subscribed to the

Re: Ajax and Django and jQuery - .attr()

2020-05-31 Thread Stephen J. Butler
This isn't a jQuery issue, it's a JavaScript/ECMAScript issue. When you use the "arrow function" style like "() => { ...code... }" then certain variables are not bound into the function contact, including "this".

Re: Issue with Heroku Getting Started

2020-05-15 Thread J Maryott
ote: > > > > On Thu, May 14, 2020 at 5:02 AM J Maryott > > wrote: > >> Wondering if anyone may be able to shed some light on this...I've cloned >> the latest dev. version of Django from Git, and though I'm a bit of a >> newbie here, and this might sound totally dumb to

Issue with Heroku Getting Started

2020-05-14 Thread J Maryott
Wondering if anyone may be able to shed some light on this...I've cloned the latest dev. version of Django from Git, and though I'm a bit of a newbie here, and this might sound totally dumb to the professionals (I'm unsure), I also tried pip install django.utilsas a last ditch effort.

Zen of high load & high availability backend

2020-04-18 Thread J . Pablo Martín Cobos
Hi, I have written a small manifest that I would like to share with the community. I hope you like it and entertain you in these days of confinement. If anyone is interested in contributing, you can do a fork and a pull request. English:

Re: Looking for Django developers to work on a new and an existing project with our team

2020-03-31 Thread Juan J . Moreno Piña
available now, I'm located remote Juan *Teaching to learn * *Trading to survive* *M.Sc. Juan J. Moreno* En Venezuela (Maracaibo) Skype:studiom2j Tel (Italy): +39 02320628565 El lun., 30 de mar. de 2020 a la(s) 07:56, Satish Pal ( satishpal...@gmail.com) escribió: > Hi > > I have t

Re: Forienkey to same table

2020-03-29 Thread Stephen J. Butler
Instead of using the model class, or string name of the model class, use the string value 'self'. https://docs.djangoproject.com/en/3.0/ref/models/fields/#foreignkey On Sun, Mar 29, 2020 at 9:44 PM Mohsen Pahlevanzadeh < m.pahlevanza...@gmail.com> wrote: > I have table A with my following

Re: keep getting the Fatal Python error with mod_wsgi and apache

2020-03-26 Thread Stephen J. Butler
Did you recreate the virtualenv on the server, or did you copy it from your development machine? You should recreate virtualenv's when deploying to a different server. On Thu, Mar 26, 2020 at 8:53 AM Fateh Budwal wrote: > Yes python 3.8.2 is installed > > On Wednesday, March 25, 2020 at 8:30:35

Re: Django Mails

2020-03-23 Thread Juan J . Moreno Piña
('run the code from here if code is successfully run in the try block of code above') hope this could help. *Teaching to learn * *Trading to survive* *M.Sc. Juan J. Moreno* En Venezuela (Maracaibo) Skype:studiom2j Tel (Italy): +39 02320628565 El lun., 23 de mar. de 2020 a la(s) 02:51, mick

Re: User Athentication Issue

2020-03-21 Thread Juan J . Moreno Piña
m9HGGSR4AHFui3NZYkm%3DUyPBBw%40mail.gmail.com?utm_medium=email_source=footer> >> . >> > > -- > 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 i

Re: Uploading images from media folder during runtime.

2020-03-21 Thread Juan J . Moreno Piña
on on the web visit > https://groups.google.com/d/msgid/django-users/deafdbcf-5b91-436d-a8aa-68d58ab80df3%40googlegroups.com. > -- *M.Sc. Juan J. Moreno* En Venezuela (Maracaibo) Skype:studiom2j Tel (Italy): +39 02320628565 NB: Telf. mobil (en reparacion) <https://www.bitrix24.net/id1459

need connection string help to connect to Db Postgresql

2020-03-20 Thread Juan J . Moreno Piña
I am not able to connect Postgresql , due to miss connectio string. also filling DB confi table: Engine="" Name="" User pass Host: ? Database_port: ? thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

Re: Stuck with Django on a Synology Diskstation

2020-03-05 Thread V. J
Zdravím vás, myslíme že přístup byl udělen jen pár lidem kteří odvádí dobrou práci, jelikož by bylo dost nebezpečné udělit přístup všem, tak pokud vas mohu poprosit obraťte se s žádostí na ně. A pokud uznaji za vhodné že je to potřeba, provedou opravu, nebo doplnění. Pokud se mýlím, tak mě

Re: Running django admin separately

2020-02-29 Thread Stephen J. Butler
I think so. Haven't tested, one way should be be to have have two url.py's, one that includes only the admin URLs and one that includes only your project URLs. Then have two settings modules that look like this: # main site settings from .settings import * ROOT_URLCONF = 'myproject.urls_main' #

Re: Why can't Nginx find Django's static files?

2020-02-21 Thread Stephen J. Butler
like you should have. On Fri, Feb 21, 2020 at 11:49 AM Robert F. wrote: > > > On Thursday, February 20, 2020 at 8:52:31 AM UTC-8, Stephen J. Butler > wrote: >> >> Django only serves up static files itself when run using runserver. This >> is meant for develop

Re: Why can't Nginx find Django's static files?

2020-02-20 Thread Stephen J. Butler
Django only serves up static files itself when run using runserver. This is meant for development and not production use. When you run it through gunicorn the Django framework won't serve up static files. That's why you connections to :8000 (gunicorn directly, bypassing nginx) don't work right.

Re: What's the preferred way to implement matching mechanism (radius distance search) in an uber-like app

2020-02-16 Thread V. J
Zdravím vás, přišel jsem o PC tak nejsem schopen dělat víc, vše dělám stále jen po telefonu, budu se snažit o to co chci a pokud se mi to povede bude to báječný, pokud bych dělal špatně věci, rád bych od vás zpětnou vazbu, děkuji vám a napíšeme si. Vašek JachimOdesláno z mého telefonu

Re: AutoField & auto-incrementing

2020-02-12 Thread J. Guadalupe Chavez
El mar., 11 de febrero de 2020 4:27 p.m., Mike Dewhirst < mi...@dewhirst.com.au> escribió: > On 11/02/2020 7:06 pm, Bruckner de Villiers wrote: > > > > Jason, > > > > Thank you. I have changed the title of this mail. If I have read the > > 10 year old ticket 8576 correctly, it seems to be a DB

Re: Django query with few data(1,000-3,000) takes too long(1min) to load

2020-02-07 Thread Stephen J. Butler
You've got a lot of foreign key fields where the fetch is being deferred until template render time, and it being done individually for each row instead of in bulk. I think if you added this attribute to your ListView subclass you'd see better performance: queryset =

Re: How to express `foo = (bar < quox)` as a constraint

2020-01-27 Thread Stephen J. Butler
Frankly, if is_on_sale has such a tight constraint I wouldn't have it as its own column. Why not just make it an annotated field with an F expression? https://docs.djangoproject.com/en/3.0/ref/models/expressions/#using-f-with-annotations Item.objects.annotate(is_on_sale=(F('price') <

Re: Error: Key 'groups' not found in 'UserForm'

2020-01-05 Thread Stephen J. Butler
Take another look at the doc's example on formfield_for_manytomany: https://docs.djangoproject.com/en/3.0/ref/contrib/admin/#django.contrib.admin.ModelAdmin.formfield_for_manytomany You need to call super() and this isn't the right way to override the widget. def formfield_for_manytomany(self,

Re: SyntaxError SECRET_KEY

2020-01-05 Thread Stephen J. Butler
My guess is that you have an unbalanced '(' on a previous line and the error doesn't get thrown until here (when it thinks maybe SECRET_KEY is a kwarg to the function call). What does the previous setting or two look like? On Sun, Jan 5, 2020 at 3:06 PM 'Dash LaLonde' via Django users <

Re: SyntaxError SECRET_KEY

2020-01-05 Thread Stephen J. Butler
On Sun, Jan 5, 2020 at 3:13 PM Mohamed A wrote: > Be careful your secret key contains a # > > Which comment everything after > > Not when it's quoted as part of a string. It should be fine in this case. -- You received this message because you are subscribed to the Google Groups "Django

Re: get user that is member of two different group

2020-01-02 Thread Stephen J. Butler
I don't think that's what the he asked for. It will return users who are members of either test1 OR test2, but I read the question as returning users who are members of both test1 AND test2. I think the proper query would be: User.objects.filter(groups__name='test1').filter(groups__name='test2')

How to filter a Window query?

2020-01-01 Thread Tom J. Wassing
I am search for a solution to filter the results of a query which uses a window function. I would like to reduce the results set to only include the entries where the row number is smaller than 10. It is not supported by the ORM to filter directly on this query set

Field Select MasterDetail

2019-10-31 Thread J-23
Hello, I am new to Django. I have a FormFault model, which has two foreign keys "BuildingOwner" and "Building", the key "Building" depends on "BuildingOwner" on the form, it gives me two fields of type Select (ComboBox) or is there a way in Django that the content of ComboBox changes depending

Re: Component design question

2019-06-20 Thread J. Pic
Damnit, my port was wrong above, here goes, with list for content and dict for attributes as arguments instead of using *args, **kwargs: if not request.user.is_authenticated: content.append( Li( [A([_('Log in')],

Re: Component design question

2019-06-20 Thread J. Pic
Better for perspective to port the first example in second syntax to compare: if not request.user.is_authenticated: content.append( Li( A([_('Log in')], dict(href=reverse('crudlfap:login'))), dict(cls='no-padding'),

Component design question

2019-06-20 Thread J. Pic
Hi all, We're running some experiments replacing templates by Components (which support channels based data-binding amongst other niceties) in Python, i would like to run an opinion survey about two syntaxes before moving on. Syntax 0 is what seems more "pythonic" but requires a less strict call

error passing int values from browser to path

2019-03-20 Thread charan . j . tej
iam oassing an interger valu from browser to the path using but it is showing as an error not an intege Environment: Request Method: GET Request URL: http://localhost:8000/hello/2 Django Version: 2.1.7 Python Version: 3.7.2 Installed Applications: ['django.contrib.admin',

RE: Re: Composite Primary / Foreign Key support

2019-02-18 Thread 'Ellinghaus, Lance J' via Django users
NONCONFIDENTIAL // EXTERNAL So, basically, Django will not be supporting Composite Primary Keys in the future? Lance -Original Message- From: django-users@googlegroups.com On Behalf Of Michal Petrucha Sent: Monday, February 11, 2019 8:34 AM To: Django users Subject: [External] Re:

Re: What do you think about unify templates feature?

2019-01-18 Thread J . Pablo Martín Cobos
e, but I know ifor experience it is very hard collaborate with code in Django, and more difficult with a new feature. To understand it, the best is to use the command with a simple template such as admin/index.html. Best, > > On Fri, Jan 18, 2019 at 7:23 PM J. Pablo Martín Cobos > wrote:

Re: What do you think about unify templates feature?

2019-01-18 Thread J . Pablo Martín Cobos
Sorry, I reply beetween lines El vie., 18 ene. 2019 16:32, J. Pablo Martín Cobos escribió: > Hi another time, > > I am tring to reply every people in this email: > > Josh > > I was not using django.template.loaders.cached.Loader, but the result are > very similar i

Re: What do you think about unify templates feature?

2019-01-18 Thread J . Pablo Martín Cobos
lcome, but they must come without > too much maintenance burden. > > On Thu, Jan 17, 2019 at 11:02 AM J. Pablo Martín Cobos > wrote: > >> Hi, >> >> From one year ago, I am using an own command for Django templates that >> unify them. With an example it

Re: What do you think about unify templates feature?

2019-01-18 Thread J . Pablo Martín Cobos
emplates, so Django win time. We can get a backend a little faster with very little effort. Best! > On Thu 17 Jan, 2019 2:32 pm J. Pablo Martín Cobos >> Hi, >> >> From one year ago, I am using an own command for Django templates that >> unify them. With an examp

Re: What do you think about unify templates feature?

2019-01-18 Thread J . Pablo Martín Cobos
silly thing. Best, > Regards, > Maciej > > czw., 17.01.2019, 10:02 użytkownik J. Pablo Martín Cobos > napisał: > >> Hi, >> >> From one year ago, I am using an own command for Django templates that >> unify them. With an example it is easy to see. If I am t

What do you think about unify templates feature?

2019-01-17 Thread J . Pablo Martín Cobos
Hi, >From one year ago, I am using an own command for Django templates that unify them. With an example it is easy to see. If I am to render for example a template call news.html like it: 1. news.html {% extends "base.html" %} {% block title %} {% include "inc.news.title.html"

Re: django-EmailSending with PHP

2018-12-06 Thread Nagarjuna J
sendgrid was paid service so i want price less service. is there any option to get this service without price On Thu, Dec 6, 2018 at 2:38 PM Andréas Kühne wrote: > Hi, > > I'm sorry, but I think this is a really strange request - why would you > want to send email with PHP? The thing is that

django-EmailSending with PHP

2018-12-06 Thread nagarjuna . j
hi guys, Now am using sendgrid to send_email in django(using SMTP). But i need to add php mailing in django (django PHP Email integration ). Is there any way to integrate PHP Email with django? -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Error in function to return permissions

2018-10-31 Thread Stephen J. Butler
@login_required needs "request" as the first parameter. On Wed, Oct 31, 2018 at 11:58 AM Joel Mathew wrote: > I have a custom function to check if a user is authorized to do > certain functions: > > @login_required > def checkpermission(request, permiss): > username = request.user.username

Regarding FileResponse and compressed file objects. Bug?

2018-10-30 Thread Zachary J.
Consider this situation: import gzip from django.http import FileResponse def some_request(request): return FileResponse( gzip.open('/path/to/filename.gz'), content_type="text/plain", filename="filename.txt", as_attachment=True ) This theoretically

Refund issue with paypal using django and python

2018-10-18 Thread nagarjuna . j
I'll use django-paypal for processing payments in my site, but, I need the *refund* funcionality, wich I didnt find in the django-paypal docs. How can I achieve this, if django-paypal doesnt has this featured I'd to move to other package, in that case, any reccommendation? -- You received

Re: Creating superuser

2018-10-05 Thread Nagarjuna J
once migrations are completed successfully. then check urls.py, bellow two lines are there are not from django.contrib import admin path('admin/', admin.site.urls), then browse this http://127.0.0.1:8000/admin On Fri, Oct 5, 2018 at 4:36 PM VIPIN VIPIN wrote: > This is not working > > >

How to call the super class instance variables in sub class in python3

2018-10-03 Thread nagarjuna . j
how i can call super class instance varibles in subclass (python3) -- 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

Re: __init__.py Won't Upload To Github Respository

2018-09-01 Thread Stephen J. Butler
GitHub has an excellent set of gitignore files. My first commit to a project is always one of these: https://github.com/github/gitignore In particular: https://raw.githubusercontent.com/github/gitignore/master/Python.gitignore On Sat, Sep 1, 2018 at 10:52 AM Kasper Laudrup wrote: > Hi Sandy,

Re: Optimizing Prefetch for Postgres IN Limit

2018-07-27 Thread Ram J
in the same query makes the optimizer use the index again. Thanks Ram On Thu, Jul 26, 2018 at 10:09 PM Ram J wrote: > Hi Xof, > > The issue is that, when you do a naive Prefetch you are left with nothing > but Django’s auto generated IN query. I was asking about he recommended w

Re: Optimizing Prefetch for Postgres IN Limit

2018-07-26 Thread Ram J
Hi Xof, The issue is that, when you do a naive Prefetch you are left with nothing but Django’s auto generated IN query. I was asking about he recommended way to make this into a JOIN, which is not obvious how to do with Django Also in my case the naive IN query on the PK *did not* generate a

help in understanding the sqlite3 backend

2018-07-07 Thread Sumit J
Hello, I am trying to understand the sqlite3 backend, especially the register_converter part. I wanted to understand why are those converters put in place? I commented out this registration and even then was able to to query the database in django shell via the ORM.. Even raw query execution

Re: Decorator function argument woes

2018-04-30 Thread Stephen J. Butler
M, Mike Dewhirst <mi...@dewhirst.com.au> wrote: > On 30/04/2018 3:35 PM, Stephen J. Butler wrote: > >> @login_required doesn't take a test function. You need to use >> @user_passes_test directly. >> > > Thank you Stephen. > > I thought I'd start another th

Re: Decorator function argument woes

2018-04-29 Thread Stephen J. Butler
@login_required doesn't take a test function. You need to use @user_passes_test directly. On Mon, Apr 30, 2018 at 12:26 AM, Mike Dewhirst wrote: > I'm pretty sure this is a not-understanding-python problem rather than a > Django problem but here goes ... > > In a (FBV)

Create custom widget in django-jet

2018-04-13 Thread j . romeroc97
Hey everybody, I'm here for some help, I'm using django-jet right now and trying to create a new widget with a view that I created before, somebody has knowledge about how to do this? -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: import file from view.py

2018-03-14 Thread Mahesh M J
Hi, You can try to create a Python module and write a parser there and set the variables. You can import that file in views.py and use it for getting the relevant values. Hope this helps. Thanks, Mahesh. On Tue, Mar 13, 2018 at 21:06 sum abiut wrote: > I have a conf file

Redirect to DetailView with success_url.

2018-03-06 Thread j . romeroc97
Hi!, I have a question and I hope you guys can help me, I wanna redirect to a DetailView using the success_url from my CreateView. How is this, I have a CreateView to save a device, and I wanna do that once the device is saved, redirect to DetailView to show a QR Code and vinculate with

Re: 2 decimals, always

2018-01-21 Thread Carmelo J . Morales Muñoz
thankd for your help its ok thanks!... El viernes, 19 de enero de 2018, 14:13:24 (UTC+1), Kasper Laudrup escribió: > > Hi Carmelo, > > On 2018-01-19 13:24, Carmelo J. Morales Muñoz wrote: > > hello! > > > > I don´t know how solve this... I need dj

Re: Django and Oracle12C Connection Error

2018-01-20 Thread Stephen J. Butler
Your Django settings 'NAME' is neither a SID nor a service name. Try: 'NAME': 'testdb', 'USERNAME': 'C##TDBUSER', 'PASSWORD': 'testdb', 'HOST': 'localhost', 'PORT': 1521 On Fri, Jan 19, 2018 at 11:37 PM, Rishab Kumar wrote: >

2 decimals, always

2018-01-19 Thread Carmelo J . Morales Muñoz
hello! I don´t know how solve this... I need django show always float numbers in this format: 1234.56 actually use 1 decimal only, example: 1234,1 I need 1234,10 thanks for your help -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Multiple websites on same host using Apache as Webserver.

2018-01-19 Thread Carmelo J . Morales Muñoz
I have same problen you, i have use gunicorn but I don´t know how can I solve it El miércoles, 17 de enero de 2018, 13:09:16 (UTC+1), Mahesh Vernekar escribió: > > Can someone provide help on configuring multiple websites on the same host. > I have tried the appropriate configuration. > But the

Session Variables

2017-05-28 Thread yeddu . j . prasad
Dear Experts, I am new to Django and need your help. I want a set of variables populated into session variables. These will be fixed values for the user such as which company he belongs to, his email id, his role etc. These values will be read from the database by the login form. These values

Re: Multiple uwsgi apps in one project

2017-05-26 Thread marcin . j . nowak
Thanks. Could you explain last point about 3 different sites? As I said I'd like to have separate middlewares and urls. Currently I have two Django projects defined, they share app paths and most of settings (middlewares are redefined and urls are separate). Marcin W dniu piątek, 26 maja

Re: Multiple uwsgi apps in one project

2017-05-26 Thread marcin . j . nowak
I think that my reqs are pretty straightforward. I'd like to setup project environment with 3 different apps: 1. main app (public) 2. admin app (vpn) 3. local network app for api talking with other services in the datacenter The whole thing is about preserving same project

Multiple uwsgi apps in one project

2017-05-26 Thread marcin . j . nowak
Hi. I'd like to serve more uwsgi apps for the same project. These apps must have just separate urls and must be served on spearate domains. I'd like to have separate appservers. The rest, i.e. project's environment, should stay same. How to achieve that? I know I can create a new django

Re: Channels - unbalanced load for threaded workers

2017-05-17 Thread Stephen J. Butler
CPython uses a global interpreter lock, which means that only one thread per process can ever be running Python code. Where threading really helps is if your python project is mostly I/O bound (waiting on database work, network connections, etc). If it's CPU bound then you probably won't see much

Re: Alternative to celery

2017-05-11 Thread marcin . j . nowak
RQ is simple, stable and reliable. Redis is also a persistent storage, but you should read about this and use the best solution for your case: https://redis.io/topics/persistence You may also consider deploying a fault-tolerant Redis cluster (min. 3 nodes AFAIR) RQ has different

Re: Angular 2 + Django + Postgresql

2017-05-09 Thread marcin . j . nowak
>From my personal experience: - make frontend (angular) almost 100% separate from backend (django) - if you want to build truly restful service, avoid DRF (more precisely -- avoid whole "magical" model views, which implements CRUD antipattern) - focus on hypermedia (i.e. use Hydra,

Re: field cannot be specified for model form as it is a non-editable field

2017-05-09 Thread marcin . j . nowak
Thank you for all replies. @James Your proposal about design change is generally OK, but while doing the upgrade I definitely DO NOT want to change the implementation. It is just too risky. @Tim Sorry for hostile sounding, but I'm just tired of such drastic changes. For a x-years long

RE: Angular 2 + Django + Postgresql

2017-05-08 Thread Yeddu J Prasad
Thank you Elorm. From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Elorm Koku Sent: Monday, May 8, 2017 7:56 PM To: django-users@googlegroups.com Subject: RE: Angular 2 + Django + Postgresql My best bet: expose django with drf and use angular as a

RE: Angular 2 + Django + Postgresql

2017-05-08 Thread Yeddu J Prasad
Thank you Matthew. I will check this out. The only reason I wanted to create the tables first in PostgreSQL is to ensure that I have all the relations right. The schema is quite complex with multiple levels of hierarchical relations & constraints. If this is not possible, I will go the

Angular 2 + Django + Postgresql

2017-05-08 Thread yeddu . j . prasad
Dear Experts, I am planning to build an application using this stack. Any blogs / videos / Links that can help me understand how these three connect will be a great help. Specific questions I am trying to answer are. 1. Will I be able to integrate Django with Angular easily. Does this

field cannot be specified for model form as it is a non-editable field

2017-05-08 Thread marcin . j . nowak
Hi. After upgrading to 1.11 I'm getting this error: FieldError: created_at cannot be specified for model form as it is a non-editable field. First of all, the model contains created_at field declared as DateTimeField(auto_now_add=True). Probably that's why it is non-editable. But I cannot

Re: Automatic content types removal

2017-05-05 Thread marcin . j . nowak
Thanks, Tim. I'll take a look at this. > From the Django 1.11 release notes: > >- The prompt for stale content type deletion no longer occurs after >running the migrate command. Use the new remove_stale_contenttypes > >

Django forks / clones / wrappers

2017-05-05 Thread marcin . j . nowak
Hi Does anyone know a web framework, non full-stack / microframework, but partially compatible with Django (in terms of the programming interface)? Django have too many design flaws for big projects, so I'd like to move into something less coupled. Any bridges / wrappers for Flask maybe? The

Automatic content types removal

2017-05-05 Thread marcin . j . nowak
Hi. Why Django automatically removes content types? Due to lack of flexibility in auth system I was forced to create custom content type for custom perms. Now I've realized that my custom content type is missing. I am not sure, of course, but I think that Django removed my CT silently. I know

Re: How can I access obj in admin.py

2017-05-03 Thread Stephen J. Butler
You want to override get_inline_instances: https://docs.djangoproject.com/en/1.11/ref/contrib/admin/#django.contrib.admin.ModelAdmin.get_inline_instances On Wed, May 3, 2017 at 12:33 AM, Mike Dewhirst wrote: > I want to adjust inlines based on a property of the object. >

OneToOne mappings

2017-03-13 Thread marcin . j . nowak
Hi. The problem is: A 1:1 B B.a = OneToOne(A) and there is a vA - an unmanaged model of A's view A and B are linked together. vA view is not linked with B, of course. When I try to declare OneToOne within vA, Django expects vA.b_id field which is missing (that's ok). When I try to

Re: Migrations

2017-03-13 Thread marcin . j . nowak
On Friday, March 10, 2017 at 9:18:42 PM UTC+1, Matthew Pava wrote: > > Does anyone else get a migraine when working migrations? > Yes*. Long time ago. Stayed with Liquibase wrapped with Liquimigrate. Builtin migrations are pretty unrielable, because they're strongly dependent on your

Re: group by 3 fields

2017-03-01 Thread marcin . j . nowak
On Wednesday, March 1, 2017 at 2:09:06 PM UTC+1, larry@gmail.com wrote: > > > I had thought of using a view, but that would have been a lot of > overhead on such a large table. I also considered adding a column and > running a one time script to update the existing rows, and modifying >

Re: group by 3 fields

2017-03-01 Thread marcin . j . nowak
> > As is so often the case, the requirements changed. Now what I had to > do, if I was doing it in SQL would have been: > > (CASE > WHEN TRIM(IFNULL(roiname, '')) IN ('', 'None') THEN CONCAT_WS('.', > CONVERT(roi_type_id, CHAR), roi_id) > WHEN CONCAT_WS('.', CONVERT(roi_type_id, CHAR),

Re: Flattening model relationships (in APIs)

2017-02-27 Thread marcin . j . nowak
Wanna read something interesting? Look at http://t-code.pl/blog/2016/02/rest-misconceptions-0/ You will realize how many "antipatterns" are propagated in turorials on our World Wide Web, and where they're already implemented. On Monday, February 27, 2017 at 2:52:46 PM UTC+1, Ankush Thakur

Re: Flattening model relationships (in APIs)

2017-02-27 Thread marcin . j . nowak
On Monday, February 27, 2017 at 3:38:34 PM UTC+1, Xavier Ordoquy wrote: > > > The more strict RESTfull way would be to use the several entry points and > use hyperlinks on them (though it would add some extra requests). > > This is just about representation. Nobody forces you to do such things.

Re: Flattening model relationships (in APIs)

2017-02-27 Thread marcin . j . nowak
On Monday, February 27, 2017 at 3:30:11 PM UTC+1, Ankush Thakur wrote: > > I guess this is the library in question: > https://github.com/marcinn/restosaur (took some effort to find it!). > Thanks, if I decide to stick with the API-first approach, I'll use it. > Either way, I've bookmarked it

Re: Flattening model relationships (in APIs)

2017-02-27 Thread marcin . j . nowak
I was limited by DRF long days ago and I realized that it is not following REST architecutre. It does good job in automation in exposing models over http, but everything else is way complicated. But there were no problem mix both tools in one project. DRF was for "80%" of work and my lib for

  1   2   3   4   5   6   7   >