Re: How can I acess Multilinestring(dim=3)

2024-02-24 Thread David James Nwoyie
Increase the dim to 4 because of the Django of use 0 as the starting point On Sat, Feb 24, 2024, 8:48 PM Richard Mair wrote: > Hi i am using > > geom = models.MultiLineStringField( > dim=3, srid=EPSG_CODE, blank=True, null=True, spatial_index=True > ) # EPSG:3128=AustriaLambert > > > and my

Re: Exciting Opportunity: Join Our Django WhatsApp Bulk Messaging Project!

2024-02-24 Thread David James Nwoyie
Am interested in the +2349038924701 On Sun, Feb 18, 2024, 5:48 PM SURAJ TIWARI wrote: >  Join Our Django WhatsApp Bulk Messaging Project! > >  Hello everyone, > > Are you looking for an exciting opportunity to gain hands-on experience in > Django development? Do you want to work on a

JOB | Lead Platform Engineer (Singapore/London)

2023-05-26 Thread James Tobin
using "JamesBTobin (at) Gmail (dot) Com". Kind regards, James -- 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...@googl

Re: Django error while running

2023-03-22 Thread James Kalu
I think it ushould be 'rest_framework' in settings.py under installed apps. On Wednesday, March 22, 2023 at 4:50:30 AM UTC+3 David Nugent wrote: > Any traceback with this at the end: > > _bootstrap._gcd_import(name[level..], package, level) > > Is almost always is due to a problem with your

Re: Django Admin

2023-03-13 Thread James Hunt
ery simple you should add it in the login/register html page but > inside the tag after & to be specific after this > above line. > > On Mon, 13 Mar 2023, 11:15 a.m. James Hunt, wrote: > >> I have yet to create a HTML page so I'm not sure that the inclusion of {% >

Re: Django Admin

2023-03-13 Thread James Hunt
o include it in every html page > > On Sat, 11 Mar 2023 at 23:33, James Hunt wrote: > >> Hi there. I am fairly new to Django but have had previous success with >> creating an app and being able to access the Admin page. >> Recently, if I attempt to access the admin page of a n

Re: Django Admin

2023-03-12 Thread James Hunt
= ( 'https://8000-famouswelsh-djangosetup-7vkpsqt0kez.ws-eu90.gitpod.io/') # Application definition On Sunday, March 12, 2023 at 12:57:19 PM UTC Muhammad Juwaini Abdul Rahman wrote: > Have you tried my suggestion? > > On Sun, 12 Mar 2023 at 20:32, James Hunt wrote: > >> I have lit

Re: Django Admin

2023-03-12 Thread James Hunt
roject.com/en/4.1/ref/settings/#default-auto-field DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' On Sunday, March 12, 2023 at 9:46:04 AM UTC Muhammad Juwaini Abdul Rahman wrote: > I think you need to add the following in settings.py: > > CSRF_TRUSTED_ORIGIN = ('') > > > &

Django Admin

2023-03-11 Thread James Hunt
the CSRF token. I cant get past this issue which means I can never access the admin page!! Please help. Regards James -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails fro

Re: Custom user model password is not hashed

2023-01-26 Thread James
Yup, 100% correct. Glad to hear you fixed it. Custom user models that inherit from the abstractbaseuser class can be a little tricky at first. On Friday, November 13, 2015 at 5:41:09 AM UTC-7 benjamin...@gmail.com wrote: > The problem was, when creating a custom user, one has to define a

Re: Arrayfield constraint issue in 4.1

2022-12-12 Thread James Gillard
I agree it looks odd, but the docs I linked say that list is fine, and here's example from a test inside Django itself: https://github.com/django/django/blob/cb791a2540c289390b68a3ea9c6a79476890bab2/tests/postgres_tests/models.py#L51 [image: James from Journee] <https://www.journeetrips.

Re: Arrayfield constraint issue in 4.1

2022-12-11 Thread James Gillard
> list() ? > > > On Sat, Dec 10, 2022 at 10:00 PM James Gillard > wrote: > >> Thanks for the feedback. I opened a ticket and it was indeed confirmed as >> a bug: https://code.djangoproject.com/ticket/34205 >> >> On Thursday, 8 December 2022 at 15:04:40

Re: Arrayfield constraint issue in 4.1

2022-12-10 Thread James Gillard
elated changed. File a bug with the simplest example code that > demonstrates the issue. > > > On December 8, 2022 6:37:52 AM CST, James Gillard > wrote: >> >> I can't yet work out whether this is a Django bug or how I'm using model >> constraints... Upgraded from

Favicon Error While Using Inline Favicon

2022-11-13 Thread James
on a media query. Best Regards, -James Logan -- 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 d

Re: Apps aren't loaded yet exception when trying to run migrate Django oscar

2022-11-12 Thread James
I fixed something similar once by having the model that was causing the problem be set to abstract in its class meta. O you need to "makemigrations user" if you've opened up the usermodel and changed a lot of stuff (also had that problem before) Hope these simple solutions work! On

Re: Can't Load Django Dev Sever

2022-11-11 Thread James
Thanks so much! I thought I was doing something wrong when I deleted the cache and cookies and nothing happened. Just needed to restart my computer after clearing the cache/cookies; may have been a firefox bug! Thanks again for you help! Best Regards, -James Logan On Friday, November 11

Can't Load Django Dev Sever

2022-11-10 Thread James
Hello, I can't connect to my django web server and it's all my fault. I turned on SECURE_HSTS_SECONDS to 60 by accident in development, in another project, a few days ago. Now I can not load http://127.0.0.1:8000 on FireFox and I don't know how to fix it. And yes runserver is set to that

Re: Django multistep form

2022-11-07 Thread James
Hi, Can you also link the relevant urls.py please? Thanks! On Monday, November 7, 2022 at 2:58:01 AM UTC-7 uobod...@gmail.com wrote: > I have a multi-step form that is 3 steps but it has 4 forms. In the first > form, the user has to choose from two choices. The user’s first form > choices

Re: HOW TO GET DJANGO MODELS FIELD VALUE FROM MODEL OBJECT IN TEMPLATE TAGS-DJANGO

2022-11-07 Thread James
Hi; There's a method you're supposed to override in your views (inherit from Views) to do what you want, it's called "get_context_data". This method will pump whatever data you send to it into your template tags. On Sunday, November 6, 2022 at 4:15:35 AM UTC-7 rani...@gmail.com wrote: > my

Re: Static files is not loading while deploying the project to AWS ec2

2022-11-07 Thread James
It sounds like nginx doesn't know where your static files are being served from. If you don't want to bother with NGINX you can use Whitenoise. Django doesn't serve staticfiles in production; something that isn't overly apparent. You still need something like apache or nginx or whitenoise to

Re: hello guys I need help

2022-08-30 Thread Rotimi Michael james
my name is engr rotimi michael james , i think i can help you please just make the model one to one relations , that is one user to a page and a page to one user, hope it help. On Mon, Aug 29, 2022 at 3:06 PM ISTEEN ISAC wrote: > I am beginner , how to redirect different types of pa

Re: Job -Fullstack python expert ( Django framework)

2022-08-25 Thread Rotimi Michael james
am interested in the job On Thu, Aug 18, 2022 at 8:03 PM Each1Teach1 < pcintegral.pcintegr...@gmail.com> wrote: > This project is very straight to the point. We are building a micro > service on top of Django framework. We currently have a virtual private > cloud on DO and will like to migrate

Re: Django project(website) and cpane

2021-06-18 Thread James Maina
the hosting company should provide a username and password for cpanel login after you link with your domain and you'll be able to access the login page using domainname.com/cpanel then use the login info and you'll see a dashboard for uploading your files On Fri, 18 Jun 2021, 00:14 Peter

os module import error

2021-05-31 Thread James Ndubuisi
Good afternoon. It seems on creating the Django project using django-admin startproject command , the os module isn't imported by default, causing an error. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: Weird Django-admin bug

2021-02-04 Thread James Gutu
ils from it, send an > email to django-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAJXS7_Pdo4%3DAxGNPM6oEBHTExJdAWuBn74YDVJ72Qzt5Hjqmcw%40mail.gmail.com > <https://groups.google.com/d/msgid/django-u

Missing staticfiles manifest entry on heroku app, runs fine locally

2020-06-25 Thread James
Hi everyone, I'm getting server error 500 when I deploy my app to heroku. The logs show an issue with staticfiles, even though I'm serving static and media from an S3 bucket: ValueError: Missing staticfiles manifest entry for 'images/favicon.ico' What's odd is that run I run locally, even

Re: HOW TO PROTECT SOURCE CODE DEPLOYED TO A REMOTE SERVER

2020-05-20 Thread James Shen
try to deploy using a container technology like a docker , only expose port 80, and keep the login to SSH to yourself. On Wed, May 20, 2020 at 4:54 PM John McClain wrote: > Hello Sunday, > > I wonder if you could deploy to git and use one of the licenses there to > protect the code. I think

[ANNOUNCE] A new governance model has been adopted for the Django project

2020-03-12 Thread James Bennett
For several years, there have been efforts underway to change the way the Django open-source software project is run. This eventually produced a concrete proposal, which then went through discussion, revision, and voting by the Django core team, Django Technical Board, and Django Software

Channel 1 and Django 2.2 compatibility

2020-01-09 Thread James
Hello guys just a quick question, I have a project running channel 1, we are looking at upgrading to django 2.2, does channel 1 work with django 2.2 without upgrading to channel 2? Cheers James -- You received this message because you are subscribed to the Google Groups "Django users&q

Re: field error in live how to reslove

2019-12-20 Thread James Dunn
double underscore needed before the lte by the looks of it On Wed, 18 Dec 2019 at 04:27, Ahmad Ebrahim wrote: > Show me your model and view > > On Tue, 17 Dec 2019, 20:11 MEGA NATHAN, wrote: > >> Hi all. >> >> field error in live how to reslove >> below i have to attach the screensh please

Re: Should a custom user have meta.swappable

2019-12-17 Thread James Bennett
On Tue, Dec 17, 2019 at 10:47 PM Mike Dewhirst wrote: > ... and I wonder if my custom user model should have an identical Meta > attibute? > No, The 'swappable' Meta attribute is private/undocumented API; if it were meant to be a thing you needed to set, the documentation would tell you to set

Re: How to display on Django page based on user's condition?

2019-11-21 Thread James Dunn
In your view you can do: user = request.user Then you can get Employee with: employee = Employee.objects.get(user=user) Then just get the attributes from the models that you need: eg: employee.division On Thu, 21 Nov 2019 at 19:57, Pema Galey wrote: > Hi All, > I am Employee model directly

Re: Updates in production not showing up

2019-10-23 Thread James Gutu
https://groups.google.com/d/msgid/django-users/a05585c4-df89-41cc-83ec-a41775da2a0f%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/a05585c4-df89-41cc-83ec-a41775da2a0f%40googlegroups.com?utm_medium=email_source=footer> > . > -- -- Regards, James G

Re: Updates in production not showing up

2019-10-22 Thread James Gutu
f1-05a83fc1fe50%40googlegroups.com?utm_medium=email_source=footer> > . > -- -- Regards, James Gutu -- 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: Implementing multiple choice selection

2019-10-18 Thread James Gutu
id/django-users/0630f042-9fa8-4237-a293-d0adcffbe83b%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/0630f042-9fa8-4237-a293-d0adcffbe83b%40googlegroups.com?utm_medium=email_source=footer> > . > -- -- Regards, James Gutu -- You received this message because you are subscri

Re: send_mail error

2019-10-18 Thread James Gutu
oups.google.com/d/msgid/django-users/f7cf2f08-86f8-4d53-9c31-1066a4bf1476%40googlegroups.com?utm_medium=email_source=footer> > . > -- -- Regards, James Gutu -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscrib

Re: Arbitrary GROUP BY fields

2019-10-18 Thread James Gutu
; GROUP BY > > "page_titles"."id", > > "page_titles"."date", > > "page_titles"."name", > "page_titles"."title", > "categories_category"."name", > > "

Re: Creating an app that generates static files

2019-10-18 Thread James Gutu
Jack, That sounds about right. On Thu, Oct 17, 2019 at 11:22 PM Jack Sundberg wrote: > Thank you, James! This seems like a good fix. From reading through the > documentation (here > <https://docs.djangoproject.com/en/2.2/topics/http/sessions/>), this is > how I understand

Re: Creating an app that generates static files

2019-10-17 Thread James Gutu
ict, as the unique file will be created in both folders. [user_1_session_id]/entry123.jpeg [user_2_session_id]/entry123.jpeg Though, this might seem like a fix, but the issue may be more fundamental than file names. Let me know what you think. Regards, James On Thu, Oct 17, 2019 at 4:23 PM J

Re: set school year and change boolean to False when school year is not active

2019-10-17 Thread James Gutu
o-users/e429d5d2-a6fc-4bf1-82b0-1c12e08f3f49%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/e429d5d2-a6fc-4bf1-82b0-1c12e08f3f49%40googlegroups.com?utm_medium=email_source=footer> > . > -- -- Regards, James Gutu Mobile: +447368461508 Skype: jmgutu -- You

Re: where to report django issues?

2019-09-22 Thread James Schneider
>From the main website: https://code.djangoproject.com/ Also from the FAQ: https://docs.djangoproject.com/en/2.2/faq/help/#i-think-i-ve-found-a-bug-what-should-i-do https://docs.djangoproject.com/en/2.2/internals/contributing/bugs-and-features/#reporting-bugs HTH, -James On Sun, Sep 22, 2

Re: Reverse for 'modification' with no arguments not found issue

2019-08-31 Thread James Schneider
the original error page, it probably cites something in the modification.html template, and you didn't post that one. -James -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving em

Re: Reverse for 'modification' with no arguments not found issue

2019-08-28 Thread James Schneider
On Wed, Aug 28, 2019, 2:00 AM Ali IMRANE wrote: > Thanks James for your help. > > Indeed, I tought about that problem but I already managed to see an number > on an other page, as well as using that ID to read information behind my > informations (as you can see in the th

Re: page not found but url exists

2019-08-26 Thread James Schneider
me='cpage'] > > The current path, register, didn't match any of these. > I'm assuming your template has a typo in the {% url %} tag referencing 'register' instead of 'cregister'. The rest of the error page should indicate the line that is making the URL name resolution call. -James -- Y

Re: reload the page and the logged in user converted to the admin

2019-08-24 Thread James Schneider
e.objects.filter(user_id=auth_user).delete()): > print(auth_user,' OK deleted .') > formset = countriesFormset(request.POST or None) > Not sure if it's related, but is there a reason you immediately delete the logged-in user as soon as the page loads? Even before

Re: Get queryset outside models.py

2019-08-23 Thread James Schneider
l, as that covers the information to answer your questions and broaden your understanding in some detail. https://docs.djangoproject.com/en/2.2/intro/tutorial01/ -James -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscri

Re: Hello, everybody! I've tried using FormMixin with DetailView and I get error 405 on post method. Can anybody help me? Thanks a lot.

2019-08-22 Thread James Schneider
Post the full error message and/or traceback reported by the server when the error occurs. -James On Thu, Aug 22, 2019, 12:31 PM Catalina Popescu < catalina.t.pope...@gmail.com> wrote: > views.py > > class BookDisplay(DetailView): > model = Book > template_name = 'b

Re: Reverse for 'modification' with no arguments not found issue

2019-08-22 Thread James Schneider
lue. Templates are fun when they mask missing values like that. You already have it displayed earlier in the template. Comment out the {% url %} tag and see if a number is displayed in your template. -James > > -- You received this message because you are subscribed to the Google Groups &

Re: Syntax Error django, python issue

2019-07-28 Thread James Schneider
On Sun, Jul 28, 2019, 10:54 AM Kean wrote: > Hi Chetan > > pls see setup below > It looks like you may have copied in the ellipses (...) from the example. Remove those lines and try again. -James > -- You received this message because you are subscribed to the Google Groups

Re: How to set (global) context value from a templatetag?

2019-07-28 Thread James Schneider
m template context processor: https://docs.djangoproject.com/en/2.2/howto/custom-template-tags/#setting-a-variable-in-the-context That way you can define constants in you application code and have them automatically pulled in as template variables in all your templates without having to repeat a template tag in

Re: Running pending migrations in Middleware

2019-07-28 Thread James Schneider
On Sun, Jul 28, 2019, 12:47 AM David Grant wrote: > Anyone see any problems with running migrations in Middleware? > What's the actual problem you are trying to solve by doing this? This is a bad idea for a number of reasons, and I can't think of any good ones. -James > -- You

Re: use of migrate command and how to see the tables

2019-07-19 Thread James Bennett
On Fri, Jul 19, 2019 at 2:58 AM yasar arafath Kajamydeen wrote: > Thanks for the reply. Please try to solve the error which i shared (screen > shot ). > It is not an error. You have no migrations to apply, so the migrate command is telling you it sees nothing to do. It may help you to read the

Help filtering choice_set based on size of set in Django Tutorial

2019-07-09 Thread James Boulger
this and I assume it may be due to the difference between the generic Listview and the generic DetailView, or some issue with how the content of the html templates polls/detail.html or polls/index.html is rendered but I have no previous experience with html and only understand Python in principl

Re: do i need a custom admin app or should i just use django admin?

2019-06-17 Thread James Farris
rmissions - > are there any examples someone can point to help illustrate? > > > > On Monday, June 17, 2019 at 11:40:53 AM UTC-5, James Farris wrote: >> >> Think of the Django Admin as a tool for developers or Database Admins. >> IMO, it should never be use

Re: do i need a custom admin app or should i just use django admin?

2019-06-17 Thread James Farris
Think of the Django Admin as a tool for developers or Database Admins. IMO, it should never be used by an end user. Create views as Andreas mentioned and give those views permissions. On Monday, June 17, 2019 at 4:12:53 AM UTC-7, Arya wrote: > > i'm planning to build a full ecommerce business

Re: my file uploads missing/deleted

2019-06-13 Thread James Farris
ot;/app/.heroku/python/lib/python3.6/site-packages/django/core/files/storage.py" > in get_storage_class > 358. return import_string(import_path or > settings.DEFAULT_FILE_STORAGE) > > File > "/app/.heroku/python/lib/python3.6/site-packages/django/utils/module_loadin

Re: my file uploads missing/deleted

2019-06-13 Thread James Farris
When you run the server does it give you any errors? On Thu, Jun 13, 2019 at 8:12 AM omar ahmed wrote: > i added django_dropbox_storage in installed apps in settings.py > what should i add else ? > thanks > On Thursday, June 13, 2019 at 4:43:23 PM UTC+2, James Farris wrote: >

Re: my file uploads missing/deleted

2019-06-13 Thread James Farris
ings] > i found this error > ModuleNotFoundError: No module named '[--settings=test_settings]' > and when i tried to open my site (club page that has image) i foun this error > No module named 'StringIO' > i searched at Google but no similar issues > >> On Thursday, June 13, 2019

Re: my file uploads missing/deleted

2019-06-12 Thread James Farris
you mean in any view function that will show page included images add > connect_to_dropbox() > and what about > > for entry in dbx.files_list_folder('').entries: > print(entry.name) > > > > On Thursday, June 13, 2019 at 12:38:11 AM UTC+2, James Farris wrote: >>

Re: my file uploads missing/deleted

2019-06-12 Thread James Farris
= dropbox.Dropbox('YOUR_ACCESS_TOKEN') > > dbx.users_get_current_account() > Try some API requests > > for entry in dbx.files_list_folder('').entries: > print(entry.name) > > where should i write these commands ? > thanks > > On Wednesday, June 12, 2019 at 1:13:11 AM UTC+

Re: my file uploads missing/deleted

2019-06-11 Thread James Farris
/backends/dropbox.html On Tue, Jun 11, 2019 at 2:17 PM omar ahmed wrote: > yes James you are right i need to upload images using the Django > admin, ... how can i use Dropbox for this issue ? > i need a good tutorial > > On Tuesday, June 11, 2019 at 6:14:10 PM UTC+2, James Farris

Unknown column 'boericke_joints.id' in 'field list

2019-06-11 Thread James Farris
If the database was originally created by Django, it would have been built with an ID field. Django is confused because it can’t find that field in the database. If you added ID to the model, did you run python manage.py makemigrations and then python manage.py migrate -- You received this

Re: my file uploads missing/deleted

2019-06-11 Thread James Farris
He is saying these aren’t static files. It sounds like he uploads them using the Django admin, which of course is like an end user on a client uploading files to the media directory. Since that is the case it sounds like the Dropbox option is the best. Documentation was provided earlier. So

Module lock error when starting development server

2019-06-11 Thread James Farris
Do you have a venv running in another venv? You could try installing and running gdb https://wiki.python.org/moin/DebuggingWithGdb It may give you more insight. But Deadlocking is essentially one python process clobbering another causing the app to lock up. -- You received this message

Re: mysqlclient installation error

2019-06-11 Thread James Farris
I have Django 2.2.x running with mysqlclient successfully mysql-connector-python==8.0.15 mysqlclient==1.3.13 -- 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

Re: Accessing request from form

2019-05-31 Thread James Schneider
ad the time to be more active on this list, but the wife says I have to pay attention to her and the kids, and I'm only allowed to have 2 jobs and 1 hobby. Luckily my current hobby overlaps with Django so here I am. -James > -- You received this message because you are subscribed to the Google Grou

Re: Accessing request from form

2019-05-30 Thread James Schneider
g a point from myself for not RTFM properly, so I break even. -James -- 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...@googlegr

Accessing request from form

2019-05-30 Thread James Schneider
associate the user with specific fields on save from the view as form_kwargs. Or am I making things hard on myself? Thanks. -James -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: set python 3.6.8 default in my ubuntu

2019-05-22 Thread James Schneider
No On Wed, May 22, 2019, 10:22 AM johnpaul mulongo wrote: > > > On Wednesday, May 22, 2019 at 3:48:16 PM UTC+3, omar ahmed wrote: >> >> hello .. >> just finished my first project with django but i can not publish it >> because my default python is python 2.7.12 and Heroku now does not support >>

Re: Troubling installing Python 3 on my iMac

2019-04-30 Thread James
Thanks Suresh! This did the trick. On Tuesday, April 30, 2019 at 7:36:30 AM UTC-6, Suresh Kannan wrote: > > Hi, > > Try these steps > > https://wsvincent.com/install-python3-mac/ > > https://stackoverflow.com/a/20868669/4037275 > > On Tue, Apr 30, 2019 at 8:

Troubling installing Python 3 on my iMac

2019-04-30 Thread James
I downloaded the file from the python website and went through the entire installation process... accepting all of the default values. However, when I went to my Terminal window and typed python, it still shows the older version: Python 2.7.10 (default, Feb 22 2019, 21:17:52) [GCC 4.2.1

Lazy ForeignKey references break in upgrade from 1.9 to 1.10

2019-03-11 Thread James
Hey everyone, While upgrading from 1.9 to 1.10, I got errors that lazy ForeignKey references cannot be resolved similar to the following (full stack trace is included below): ValueError: Related model 'appname.ModelName' cannot be resolved This occurs with anything from simple models to

Re: How to remove a model definition completely in Django when it previously had foreign keys

2019-03-08 Thread James Bennett
When you need to remove any piece of code that's been referenced in migrations, generally there's a multi-step process. For sake of a simple example, let's assume you have Model A in App A, and Model B in App B. And at some point you added a foreign key from Model A to Model B, but now you want

Re: AuthenticationForm 'data' keyword argument?

2019-02-14 Thread james . peter . schinner
So I should be using: form = AuthenticatioForm(request) It seems odd that the signature for various form aren't the same, at least in respect to *args. **kwags I can understand being different. Regardless I wanted to highlight a gotcha that wasn't immediately obvious. Also, I received no

AuthenticationForm 'data' keyword argument?

2019-02-14 Thread james . peter . schinner
Hi, I have just been following the Django documention on forms: https://docs.djangoproject.com/en/2.1/topics/forms/ And I was having an issue with validating the posted data in the view code. I came across this Stack Overflow post :

Re: Password Policy Adherence. Cannot use the passwords used before

2019-02-08 Thread James Bennett
I'm going to suggest you step back and consider whether the policies you want to implement are good policies. A good, solidly-researched set of recommendations is NIST SP800-63B: https://pages.nist.gov/800-63-3/sp800-63b.html In particular, NIST suggests the following: * Do not use a policy

Re: Poor Performance for Form Rendering In Django 1.11

2018-12-10 Thread James Bennett
On Mon, Dec 10, 2018 at 6:29 AM John Lehmann wrote: > So my takeaway from what you are saying is that no one is running a > production site with a Django select field to render a country or currency > option (e.g., django-countries or django-money), because either of these > would have well over

Re: Poor Performance for Form Rendering In Django 1.11

2018-12-10 Thread James Bennett
On Mon, Dec 10, 2018 at 5:31 AM John Lehmann wrote: > I am still hoping however for someone to explain to me why the default > renderer cannot handle my use case, such as that a few hundred inputs is > too many, or that I am doing something else improperly. Surely this kind > of a change would

RE: Easiest front end JavaScript framework to integrate with a Djangobackend?

2018-11-27 Thread Sir Robert James Patterson
What Alfred said . . . . .and than some  https://django-angular.readthedocs.io/en/latest/ Sent from Mail for Windows 10 From: Alfredo Sumague Sent: Tuesday, November 27, 2018 8:13 PM To: django-users@googlegroups.com Subject: Re: Easiest front end JavaScript framework to integrate with a

editing website menus

2018-10-11 Thread James Otombolo
I run this script which i want to customize.I have installed it already on my server,edited top menus on settings.py,saved,refreshed but nothing.can you help me on how to go about it? http://rdsnewyork .com/ -- You received this message because you are subscribed to the

Re: Django Code distribution to customers.

2018-10-09 Thread James Bennett
Have them sign licensing agreements that force them to pay you lots and lots of money if they copy your code. Seriously, this is the kind of problem you solve with lawyers, not with code. On Tue, Oct 9, 2018 at 10:10 PM vineeth sagar wrote: > We deploy our web applications on the

Re: Django Postgres Intermediary doesn't set ON DELETE CASCADE

2018-06-23 Thread James Bellaby
he db. > > I can see some issues with this coming up, especially if you're doing > deletes with django's raw sql capability. But that should never happen, > you should do a select then iterate and delete. > > On Saturday, June 23, 2018 at 9:28:15 AM UTC-4, James Bellaby wrot

Re: Django Postgres Intermediary doesn't set ON DELETE CASCADE

2018-06-23 Thread James Bellaby
OK. So it's by design. So during development I can't go straight to the database and delete a "Group" quickly due to an error I made. I'd have to set up tests to deal with it at an application level. No probs though. I'm just happy I know it can't be done and not that it's a bug I'd have to

Re: Django Postgres Intermediary doesn't set ON DELETE CASCADE

2018-06-23 Thread James Bellaby
00:56:36 CEST James Bellaby wrote: > > > > > However when looking are the SQL in Postgresql it's created the > Membership > > > table constraint for the Group id with "ON DELETE NO ACTION" > > > > > > CONSTRAINT groups_membership_gro

Django Postgres Intermediary doesn't set ON DELETE CASCADE

2018-06-22 Thread James Bellaby
it's not a bug and I've missed something, I apologies in advance. Cheers, James -- 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...@googl

Re: This site can’t be reached 127.0.0.1 refused to connect.

2018-06-05 Thread James Farris
What’s the actual error? Did you mean ALLOWED_HOSTS? If so you can just add: ALLOWED_HOSTS=[‘*’] On Tue, Jun 5, 2018 at 12:55 PM Jamie Roberts wrote: > Hi, > > This is from memory and may not be your problem but ... I had to add > 127.0.0.1 to ALLOWED_USERS in settings.py > > Sent from my

Re: calculate the followers difference/grow by day

2018-06-05 Thread James Farris
I think you can do something like this stats = Statistics.objects.all().order_by('-last_update') latest_stat = 0 for stat in stats: print(abs(latest_stat - stat.followers)) latest_stat = stat.followers On Mon, Jun 4, 2018 at 11:24 AM, Daniel Germano Travieso < danielgtravi...@gmail.com> wrote:

Re: error: can not import the name 'path'

2018-06-05 Thread James Farris
As the previous reply suggests, what Django version are you using? Using django.conf.urls is a Django 1.11 and below utility function, Django 2.x uses this from django.urls import path *If you are using Django 1.x* this is what your urls.py should look like: from django.conf.urls import urlfrom

Re: Sponsor subdomain pointing to part of our Django site?

2018-06-04 Thread James Schneider
include the year and slug in the path. Your might be able to use the existing urls.py by making the year and slug optional in the regex. When using the sponsored site, you would pass along extra context to the URL dispatcher that includes the year/slug or whatever data is being assumed by the usage

Re: Is it possible to instantiate a model (create an object) and flag the instance as unsaveable?

2018-06-02 Thread James Schneider
event an accidental save by a signal, etc. https://docs.djangoproject.com/en/dev/topics/db/models/#proxy-models -James -- 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

Re: Is it possible to instantiate a model (create an object) and flag the instance as unsaveable?

2018-06-02 Thread James Bradshaw
Hey Bernd, I'm curious about your use case. It's common to create a read-only database user to make sure no data is modified, but I've never come across anything at the instance/row level. -Jimmy On Sat, Jun 2, 2018, 8:14 PM Bernd Wechner wrote: > I'd like to instantiate a model, and play

Re: Starting a poll

2018-05-24 Thread James Farris
If you open the app once the server is started by going to 127.0.0.1:8000 is it loading the website or are you getting a 404 error in the browser? I see the favicon 404 error all the time, but it doesn’t halt my site. It’s just django looking for a favicon. That shouldn’t break anything. Another

Re:

2018-05-23 Thread James Farris
I assume you mean TemplateDoesNotExist and I also assume you have created a templates folder in your project and have details.html in it. If that’s the case did you check your settings.py for your template settings? It should look something like this. TEMPLATES = [ { 'BACKEND':

Re: Django

2018-05-21 Thread James Farris
Start with the Django docs tutorials https://docs.djangoproject.com/en/2.0/intro/tutorial01/ On Mon, May 21, 2018 at 12:20 PM chaitanya goud wrote: > Google "full stack python " > > On 22-May-2018 12:49 am, "Shivprasad Khandapure" < > shivkhandapure...@gmail.com>

Re: need help

2018-05-19 Thread James Farris
window n 404 > error on de webpage. > On May 19, 2018 3:37 PM, "James Farris" <jamesafar...@gmail.com> wrote: > > If you set DEBUG = True > Then restart your python server then reload the page, what is the output? > > It’s best to leave debug on until you have

Re: need help

2018-05-19 Thread James Farris
t 8:32 AM, Umar Kambala <umarkamb...@gmail.com> wrote: > > I have been following de tutorials on web development but got lost on de > peronal. Wen I run my server its gud to go but it won't display de content on > de web browser. It always give me 404 error > >> On May 1

Re: need help

2018-05-19 Thread James Farris
Are you asking where DEBUG = False is? If so, it would be in your project folder/project name/settings.py Sent from my mobile device > On May 19, 2018, at 4:36 AM, Umar Kambala wrote: > > How to I set my debug = false? On my django settings.. I don't know where to >

Re: getting error while reloading the url"http://localhost:8000/polls/".The error is given below.Please tell my why i am seeing this error?

2018-05-18 Thread James Farris
What does your urls.py look like? According to the error it doesn’t appear that polls/ is defined in your urls.py file On Fri, May 18, 2018 at 10:05 AM Avitab Ayan Sarmah wrote: > Page not found (404) > Request Method: GET > Request URL: http://localhost:8000/polls/ > >

Re: ImportError : cannot import name include

2018-05-18 Thread James Farris
If you are not using a virtual env, did you install pip3? If so, since you are using puthon3 -V to get that python version, try running $ pip3 install django And see if you get a different result I think what is happening is when you run pip install it’s referencing another python version, not

Re: New project in virtual env referencing another project's default/redirected path

2018-05-18 Thread James Farris
This is where an IDE like PyCharm comes in handy. It will tell you right away that it doesn’t recognize something and will suggest importing that package. It does a pretty good job with its suggestions. On Fri, May 18, 2018 at 9:35 AM Nitin Kumar wrote: > you have to

  1   2   3   4   5   6   7   8   9   10   >