a question about django admin and language

2016-02-25 Thread Paul Z
he question is: I don't want to it select language in Django Admin Interface, I want to it always display in English.

UnicodeEncodeError: 'ascii' codec can't encode characters in position,,, on handling serialized post data

2016-03-24 Thread Paul Bormans
te/env/python/lib/python2.7/encodings/utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeEncodeError: 'ascii' codec can't encode characters in position 6-7: ordinal not in range(128) >>> unquote('Kroati%C3%AB').decode(&#x

Security Check in Django

2018-06-20 Thread Jerrina Paul
Hi, We started migrating a java project to Django .Our present code we are using different filters for security. Mainly we are checking below filters · Session hijacking check · XSS attach check · CSRF check · Path manipulation check(directory traversal attack) ·

Handling multiple timezones in Django Admin

2018-10-02 Thread Paul Tiplady
he admin? Or perhaps a clean way of storing a User.time_zone config property that could be used to localize the admin cleanly. Cheers, Paul -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: Django Channels - core.py error

2018-11-06 Thread Paul Whipp
I've just had trouble with exactly the same error. In my case I was building from the tutorial ChatConsumer with my own XChatConsumer and I hadn't referenced it in the routing.py. As a result the tutorial async chat consumer was receiving a scope that did not contain a room_name in its url_rout

template {% url %} tag is giving server's absolute path

2018-12-27 Thread Paul Lanza
I have recently changed my django project (using A2 hosting) from fcgi to wsgi. I have successfully gotten the project to work, but I am experiencing a minor caveat I am trying to solve. Now, when I use the {% url %} tag in the templates to form a link, I get the absolute path of the server (

Immediately Need Help

2021-02-19 Thread Kritika Paul
I have to create a unique code for each space saved in dbAb db me save krne k lie, wo multiple part me save ho rha hai, multiple models bhi hai uske.1st model se mujhe space category ka name uthana hai 2nd se city code Category alag alg ho skti hai To code genrate hoga LM-categorycode-citycode-0

Re: Immediately Need Help

2021-02-19 Thread Kritika Paul
t; Teko no wapas 1 se start karneke liye query maarana padenga > > last_no = Model.objects.filter(categorycode="blah", > citycode="blah-blah").count() > > unique_code ="LM" + categorycode > + citycode + str(last_no + 1) > > > Aisa code likkha t

Re: Immediately Need Help

2021-02-19 Thread Kritika Paul
st_no = Model.objects.filter(categorycode="blah", >> citycode="blah-blah").count() >> >> unique_code ="LM" + categorycode >> + citycode + str(last_no + 1) >> >> >> Aisa code likkha toh result milenga 😋 >> >> >>

Re: Immediately Need Help

2021-02-19 Thread Kritika Paul
nko hinglish kaisa samjhenga? 😂 >>> >>> Teko field pe unique constraint lagana padenga >>> >>> Teko no wapas 1 se start karneke liye query maarana padenga >>> >>> last_no = Model.objects.filter(categorycode="blah", >>> citycode=

Re: Immediately Need Help

2021-02-19 Thread Kritika Paul
e, lazy="dynamic")) space_commercial_products=db.relationship("SpaceCommercialProduct", backref=db.backref( "spaces", uselist=True, lazy="dynamic")) space_document=db.relationship("SpaceDocument", backref=db.backref( "spaces

I am using django with DRF and dj_rest_auth

2021-06-12 Thread Manas Paul
I have made my custom user model. The dj_rest_auth returning the response after successfull login { "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjIzdXJfaWQiOjZ9.4yjIBxXhe5grxCe18huamgj1qP44A-zOkUHxZ61wXao" , "refresh_token": "eyJ0eXAiOiJKV1QiLC

Re: Where are you deploying Django App? How much does it cost for a hobby project

2021-10-04 Thread Paul Tiplady
You can deploy to Heroku, there's a free tier and it's very low maintenance. https://devcenter.heroku.com/articles/deploying-python I've had a free Django app running there that I set up almost 10 years ago without any work required to keep it up since then. Heroku is somewhat expensive if you

Django 5.0

2023-12-13 Thread attah paul
any review on the Django from you guys -- 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 view this discussion on the

SimpleJWT and Oauth

2023-12-13 Thread attah paul
Hello I'm currently using SimpleJWT in my DRF API can i merge SimpleJWT with OAuth or any other Auth liberties for Social login -- 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, s

Re: Redesign of agricultural project with python django and next.js technologies.

2024-02-19 Thread Paul Kirui
Hi I am also interested in contributing to this project. GitHub name: paul-kirui My WhatsApp number :- +254710778763 On Monday 19 February 2024 at 09:50:10 UTC+3 Enamul Majid wrote: > I'm interested to contribute in the project. > WhatsApp: +8801917739840 <+880%201917-739840> &

Re: Agricultural and livestock project using python, django and next technologies.

2024-02-19 Thread Paul Kirui
Hi I am interested in contributing to this project. My WhatsApp number :- +254710778763 GitHub name :paul-kirui On Sunday 18 February 2024 at 20:43:17 UTC+3 Jorge Bueno wrote: > I wrote about the same thing before but I only sent the title XD. > The project: > > I'm working

Re: Freelance Opportunity : Django Developer for building A Dialer

2024-04-11 Thread Clinton Paul
hello is the position still available? On Tue, Apr 2, 2024 at 8:19 PM Abhishek J wrote: > 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

Django Model Image as background image in css

2024-05-11 Thread Paul Magadi
How do we use a model image as a background image for static css -- 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

Re: Help deciding ORM VS raw SQL trade-off in Complex scenario

2024-07-14 Thread eric paul
In whatever way possible use the Django ORM for security purposes and also efficiency . I won't recommend to use Raw queries if you don't know what you are doing On Sun, Jul 14, 2024, 7:34 AM Enock Deghost wrote: > 🙄 > > On Sun, 14 Jul 2024, 6:15 am Krishnakant Mane, > wrote: > >> Hello. >> >>

Re: Help deciding ORM VS raw SQL trade-off in Complex scenario

2024-07-14 Thread eric paul
t; the pitfalls and the way around them so that's out of the way. > > Regards. > > > On 7/14/24 12:32, eric paul wrote: > > In whatever way possible use the Django ORM for security purposes and also > efficiency . I won't recommend to use Raw queries if you don

Re: list records of another app in another app

2019-09-24 Thread Paul Barber
I was actually thinking of doing the same thing On Tuesday, September 24, 2019 at 3:10:46 PM UTC-4, Perceval Maturure wrote: > > > Hi awesome django users > i want to list model records of App1 in a detail view of App2 > any ideas? > Regards > > -- > *Perceval Maturure* > > *083 303 9423* > --

Django - Heavy Databse Usage

2019-11-18 Thread Paul Onteri
Let's say you are building a SAAS application system in which every user will use the database heavily, for example, a hospital management system. Should you have separate databases for each user? And how do you implement this in Django? -- You received this message because you are subscribed

Re: Python Django Training

2020-02-03 Thread Manas Paul
Hope this help you a lot to learn django in depth https://manascode.com/ On Saturday, 1 February 2020 19:12:52 UTC+5:30, Srikanth K wrote: > > Hi, > > I am from Hyderabad. I am Python Developer by Profession. I am eager take > up any Python , Django Training (online Preferrable or Weekends). Memb

Re: using Django to create/build enterprise e-commerce system

2020-02-03 Thread Manas Paul
Contact at cont...@manacode.com On Saturday, 1 February 2020 22:43:29 UTC+5:30, Henry Udoye wrote: > > I need the following: > > *ENTERPRISE E-COMMERCE APPLICATIONS COMPONENTS OUTLINED OR MENTIONED OR > LISTED BELOW AND THE ENTERPRISE E-COMMERCE APPLICATIONS COMPONENTS > INTEGRATOR(S) TO PUT OR

Re: Django over modpython

2007-02-17 Thread Scott Paul Robertson
, 10 GB disk, 100 GB bandwidth. They even provide DNS for free. -- Scott Paul Robertson http://spr.mahonri5.net GnuPG FingerPrint: 09ab 64b5 edc0 903e 93ce edb9 3bcc f8fb dc5d 7601 pgpe8Ygf5683t.pgp Description: PGP signature

Suggestions for Django Presentation

2007-03-20 Thread Scott Paul Robertson
d the BYU Unix Users Group, in Utah, and I'm presenting on April 11th and 12th, respectively. -- Scott Paul Robertson http://spr.mahonri5.net GnuPG FingerPrint: 09ab 64b5 edc0 903e 93ce edb9 3bcc f8fb dc5d 7601 pgpYWVV7gSTI9.pgp Description: PGP signature

Re: Suggestions for Django Presentation

2007-03-21 Thread Scott Paul Robertson
d a half. I was planning to only hit the high points, then leave references to other things, and maybe mention briefly why they should care. Thanks for the suggestions (this goes to everyone) -- Scott Paul Robertson http://spr.mahonri5.net GnuPG FingerPrint: 09ab 64b5 edc0 903e 93ce edb9 3bcc f8f

Displaying Related Data

2007-03-26 Thread Paul G. Barnes
OK, I'm a Python/Django newbie (more or less), and I have a problem. I had these two models (details stripped for clarity: class School(models.Model): ... name = models.CharField() street = models.CharField() mail = models.CharField() city = models.CharField() state = mod

Re: Displaying Related Data

2007-03-27 Thread Paul G. Barnes
est)) > > all_personel.html: > > {% regroup personel by school as personel_by_school %} > {% for school_personel in personel_by_school %} > {{ school_personel.grouper.name }} > {% for person in school_personel.list %} > {{person.first_name}} {{person.last_nam

Re: Http authentication and the multiple auth backend model.

2006-08-09 Thread Scott Paul Robertson
-- Scott Paul Robertson http://spr.mahonri5.net GnuPG FingerPrint: 09ab 64b5 edc0 903e 93ce edb9 3bcc f8fb dc5d 7601 signature.asc Description: Digital signature

Re: Passing user.is_superuser through form

2006-08-24 Thread Scott Paul Robertson
lidation_errors expects the type that is returned from POST, strings. You have to ensure the values in new_data_user are all strings, since do_html2python is run after get_validation_errors and that's when the types are set to the expected python types. It's ugly, but it does work. Scot

Re: Passing user.is_superuser through form

2006-08-24 Thread Scott Paul Robertson
On Thu, Aug 24, 2006 at 08:16:25PM +0200, Sean wrote: > > Just stumbled upon this: > http://www.rossp.org/blog/2006/aug/23/changemanipulators-only-part-model/ > > Could be of use to some. > > Scott Paul Robertson wrote: > > On Thu, Aug 24, 2006 at 10:4

Re: secret api keys

2022-10-27 Thread Rajesh Kr. Paul
If you set debug=true, that's show only errors in url, views, and templates. Have no chance to show your secret key, which you placed in settings.py file. On Thu, 27 Oct, 2022, 5:04 am Muhammad Juwaini Abdul Rahman, < juwa...@gmail.com> wrote: > People can't see it straight away. > > However, let

Re: Unpaid Internship

2023-04-24 Thread Paul Kudla ( SCOM )
Pls contact me directly at p...@scom.ca please have an idea thanks - paul Paul Kudla SCOM.CA Internet Services Inc.004-1009 Byron Street South Whitby, Ontario - Canada L1N 4S3Toronto 416.642.7266 Main 1.866.411.7266 Fax 1.888.892.7266 On Apr 24

Re: Reason for not allowing spaces in usernames?

2012-11-17 Thread Paul von Hoesslin
I'm puzzled with this too. Did anyone manage to find a solution to resolving spaces in usernames. Generally a user, these days logs in with their email - that's predominately how I've setup all my django projects. People don't remember usernames. It is legacy, facebook connects with emails, so

ImproperlyConfigured at /admin/polls/poll/add/ 'model' is a required attribute of 'PollAdmin.inlines[0]'.

2013-10-23 Thread Adrian Paul Ciobanita
Hello, i've been playing with Django 1.5.4 for some TDD tutorials, examples, and tried to also do the tutorial : https://docs.djangoproject.com/en/1.4/intro/tutorial02/#adding-related-objects BUT i keep receiving this error, as suggested in the Subject: > ImproperlyConfigured at /admin/polls/po

Re: ImproperlyConfigured at /admin/polls/poll/add/ 'model' is a required attribute of 'PollAdmin.inlines[0]'.

2013-10-23 Thread Adrian Paul Ciobanita
Thx Magnum. That made the difference. On Wednesday, October 23, 2013 4:22:15 PM UTC+3, Lucas Magnum wrote: > > Rename the attribute "mode" to *model* in the ChoiceInline. > > []'s > > Lucas Magnum. > > > 2013/10/23 Adrian Paul Ciobanita > > >&g

Re: managing temporarily created files

2014-07-21 Thread Paul J Stevens
the tempfile.TemporaryFile class, and totally redundant when streaming from memory. -- Paul J Stevens pjstevns @ gmail, twitter, github, linkedin www.nfg.nl/i...@nfg.nl/+31.85.877.99.97 -- You received this message

Re: Dictionary-style string formatting

2014-07-21 Thread Paul J Stevens
here an 's' ? I could not find documentation on this. > > Thanks > > François > -- Paul J Stevens pjstevns @ gmail, twitter, github, linkedin www.nfg.nl/i...@nfg.nl/+31.85.877.99.97 -- You received this messa

Re: Django/Python-ldap Ldap Question Adding Entries

2014-07-27 Thread Paul J Stevens
se 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 > <mailto:django-users+unsubscr...@googlegroups.com>. > To post

Re: modification time in Python - Django

2014-03-04 Thread Paul J Stevens
e says: "2014-03-02T19:03:55Z". The strtime argument contains a typo. Use %M for minutes! -- ____ Paul J Stevens pjstevns @ gmail, twitter, github, linkedin www.nfg.nl/i...@nfg.nl/+31.85.877.99.97 -- You received

Re: Showing which users are viewing a given page

2014-03-04 Thread Paul J Stevens
If you don't want or care about authenticating users, you can't know who is actually at the page, just the number of people, and their IP addresses, browser version, etc. Of course some people have done this before. Maybe check out TogetherJS for more real-time collaboration goodies.

Django 10.6 throws 'mbcs codec error' on Windows 10 machine in autoload.py

2017-03-29 Thread Paul Rusu-Tibreanu
Hi to all, I am trying to get started with Django. So installing Django through pip and following the tutorial on the project's website, I first created a "mysite" project and now try to run " python manage.py runserver". However, this gives me following error: C:\mysite>python manage.py runs

JSONField filter fails with TypeError: can only concatenate tuple (not "list") to tuple

2019-11-01 Thread John-Paul Navarro
The following fails with Django 2.2.6 but works with Django 1.11.x. Did filter() of JSONfield change in 2.2.6 and the query needs to change, or could this be a bug? Goal: Select model rows where the related AbstractService.EntityJSON contents “Capability" list includes the value 'data.transf

Re: JSONField filter fails with TypeError: can only concatenate tuple (not "list") to tuple

2019-11-12 Thread John-Paul Navarro
Django 2.2.7 fixed the problem. Thanks! On Friday, November 1, 2019 at 4:59:11 PM UTC-5, Raffaele Salmaso wrote: > > On Fri, Nov 1, 2019 at 10:38 PM John-Paul Navarro > wrote: > >> The following fails with Django 2.2.6 but works with Django 1.11.x. >> > https://co

Re: Advanced Permissions and States

2008-12-22 Thread Paul van der Linden
Hi, I'm working on a big project at my work myself. We came to this problem last week (we did something to check it, but it was unmanagable). We wanted to move the check to the models. This is a little bit difficult because you basicly doesn't have the user object at in the __init__ function of yo

Re: Advanced Permissions and States

2008-12-22 Thread Paul van der Linden
makka...@gmail.com wrote: >> I'm working on a big project at my work myself. >> We came to this problem last week (we did something to check it, but it >> was unmanagable). >> We wanted to move the check to the models. This is a little bit >> difficult because you basicly doesn't have the user obj

Re: a clean_tarfile() for my form

2008-12-23 Thread Paul van der Linden
Hi, look at the module reference at python documentation: http://www.python.org/doc/2.5.2/lib/module-tarfile.html You can see there an is_tarfile to check if it is a tar file, or you can use TarFileCompat to check if it is a tar_gzipped file. Alan wrote: > Hi There, > > So I have a form where user

Re: Model with 2 foreignkey to User

2008-12-24 Thread Paul van der Linden
Hi, just do as the error is telling you. created_by = models.ForeignKey(User, related_name='createdBy') assigned_to = models.ForeignKey(User, related_name='assignedBy') or something like that. That works. Tirta K. Untario wrote: > Hi all, > > I'm developing a simple todo list. I use Dj

Re: OperationalError: (2003, "Can't connect to MySQL server on 'localhost' (10061)")

2013-04-28 Thread Arturo Paul Castro Calvo
try to define the parameters so 'ENGINE': 'django.db.backends.mysql', 'NAME': 'yourdbname', 'USER': 'root', 'PASSWORD': 'your password', 'HOST': '127.0.0.1', 'PORT': '3306', El domingo, 6 de enero de 2013

Flatpages do not work

2011-07-06 Thread Paul van der Vlis
re seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page. -- What I miss here is /var/www/testchat4/templates/flatpages/ , there is my default.html. And I don't know where to configure "helpim.

Re: Flatpages do not work

2011-07-06 Thread Paul van der Vlis
Op 06-07-11 12:21, CareerDhaba tech schreef: > Hi Paul, > > As described in the error, Django couldn't find the url test/ in the > URLconf because its not there. > > Go to the urls.py of your app and add the appropriate link, and view to > the URLconf. > > Go

Re: OperationalError at /admin/login database or disk is full

2022-05-28 Thread Paul Kudla (SCOM.CA Internet Services Inc.)
out where your database, dhango etc lives and go from there keep in mind that default locations usually work but sometimes not pending how your system was formatted. Happy Saturday !!! Thanks - paul Paul Kudla Scom.ca Internet Services <http://www.scom.ca> 004-1009 Byron Street

Re: What do they mean, exactly

2022-05-28 Thread Paul Kudla (SCOM.CA Internet Services Inc.)
table entries This can happen when syntax errors, migrations errors occured on the last run and it did not make it far enough to add the fields? hope this helps. Happy Saturday !!! Thanks - paul Paul Kudla Scom.ca Internet Services <http://www.scom.ca> 004-1009 Byron Street South Whit

Re: Django email | Gmail | Outlook

2022-05-30 Thread Paul Kudla (SCOM.CA Internet Services Inc.)
on (if you are in unix) is to start up a postfix / dovecot email server instance where you are in control of the protocol's used? this way your in complete control of your emails in both directions. Its a bit of work but leaving things to the main stream providers isn't Happy

Re: POS Printer

2022-05-31 Thread Paul Kudla (SCOM.CA Internet Services Inc.)
reportlab.lib.colors import PCMYKColor, PCMYKColorSep, Color, black, blue, red, orange please understand that this is very rough approach if you need more info a can send my django code if nessesary but is tailered to my system fyi Happy Tuesday !!! Thanks - paul Paul Kudla Scom.ca Internet

Re: Django email | Gmail | Outlook

2022-06-02 Thread Paul Kudla (SCOM.CA Internet Services Inc.)
and busilding some sort of connect library per provider. Afterwhich i save the device key in a local database for future use? Happy Thursday !!! Thanks - paul Paul Kudla Scom.ca Internet Services <http://www.scom.ca> 004-1009 Byron Street South Whitby, Ontario - Canada L1N 4S3 T

Re: ?? question ,its urgent

2022-06-20 Thread Paul Kudla (SCOM.CA Internet Services Inc.)
Just an fyi your email showed up as suspect ?? spf=softfail (google.com: domain of transitioning abhinan...@snakescript.com does not designate 2607:f8b0:4864:20::62b as permitted sender) might want to get that fixed Happy Monday !!! Thanks - paul Paul Kudla Scom.ca Internet Services

Re: server can't connect in browser

2022-06-23 Thread Paul Kudla (SCOM.CA Internet Services Inc.)
telneting to the server as a test to verify ip & ports are correct. example : telnet 192.168.0.2 8000 for example if you get a response then you are good to go. ie "telnet 192.168.0.2 8000" Happy Thursday !!! Thanks - paul Paul Kudla Scom.ca Internet Services <http:/

Re: Fetch email from google

2022-07-08 Thread Paul Kudla (SCOM.CA Internet Services Inc.)
dea how of an iPhone, Android device, or Outlook could all be set up to work with MFA with a standard dovecot/postfix setup. Are there any practical solutions for easily implementing MFA that could work across multiple devices? >> Disclaimer: I work for Auth0 (now Okta) On 7/3/22 9:40 AM,

Re: I need help with saving data to django database.

2022-08-17 Thread Paul Kudla (SCOM.CA Internet Services Inc.)
phonenumber = '' for self.item in Contacts.objects.get(pk=self.accountid).phone_number.all(): if str(self.item.phone_number) == '' or str(self.item.phone_number) == 'None' or str(self.item.phone_type) == 'Fax' : pa

Re: django deploy on IIS

2022-09-10 Thread Paul Kudla (SCOM.CA Internet Services Inc.)
reasons. too many lib issues to mention a few. if you are running any kind of production server you really should look at a linux flavor (i use freebsd as it has several enhancements to the network layer) Again not an answer but maybe it is ! Happy Saturday !!! Thanks - paul Paul Kudla

Re: Need help Scraping a couple of websites

2022-12-16 Thread Paul Kudla (SCOM.CA Internet Services Inc.)
please contact me directly i am familiar with all sorts of databases and have had to migrate data across multiple platforms. Toronto 416.642.7266 Main 1.866.411.7266 Fax 1.888.892.7266 Email p...@scom.ca Happy Friday !!! Thanks - paul Paul Kudla Scom.ca Internet Services <h

Re: it is very hard to find both email and phone number as username to login

2023-02-26 Thread Paul Kudla (SCOM.CA Internet Services Inc.)
ne if user.check_password(password): return user ________ Happy Sunday !!! Thanks - paul Paul Kudla Scom.ca Internet Services <http://www.scom.ca> 004-1009 Byron Street South Whitby, Ontario - Canada L1N 4S3 Toronto

Re: Unpaid Internship

2023-04-30 Thread Paul Kudla (SCOM.CA Internet Services Inc.)
ok please see scom.ca for contact info did not realize email was blocked by django users list Happy Sunday !!! Thanks - paul Paul Kudla Scom.ca Internet Services <http://www.scom.ca> 004-1009 Byron Street South Whitby, Ontario - Canada L1N 4S3 Toronto 416.642.7266 Main 1.866.41

Re: Unpaid Internship

2023-04-30 Thread Paul Kudla (SCOM.CA Internet Services Inc.)
sorry for using the list John Diginee please see scom.ca for my info Happy Sunday !!! Thanks - paul Paul Kudla Scom.ca Internet Services <http://www.scom.ca> 004-1009 Byron Street South Whitby, Ontario - Canada L1N 4S3 Toronto 416.642.7266 Main 1.866.411.7266 Fax 1.888.892.7266 E

<    1   2   3   4   5   6