Re: Cannot deploy Django project on Heroku from a Ubuntu 18.04 laptop

2018-10-24 Thread Mo-rema07
Thanks, I installed cheetah3 and I am no longer getting the same error message. However, regardless of the python version in my pipfile or requirements.txt Hereku installs python-3.6.5 What could be the reason for this? On Monday, October 22, 2018 at 7:24:51 PM UTC+2, Andréas Kühne wrote: > > T

Django unit testing and pk's changing

2018-10-24 Thread David
Hi When I run tests on my app they run through fine. When I run tests just using "manage.py test" the app mentioned above contains failures. Example code: def test_lumpsum_get_absolute_url(self): lumpsum = LumpSum.objects.get() self.assertEquals(lumpsum.get_absolute_url(),

Re: Django unit testing and pk's changing

2018-10-24 Thread David
The issue was my using incorrect def get_absolute_url's in my model My error. On Wednesday, 24 October 2018 12:24:07 UTC+1, David wrote: > > Hi > > When I run tests on my app they run through fine. > > When I run tests just using "manage.py test" the app mentioned above > contains failures.

I Suck

2018-10-24 Thread Edson Rodrigues
This is just an outburst. I have been trying to learn Django for months and I do not learn. I already paid for a course at Udemy, followed tutorials on YouTube, followed the Django Project tutorial and nothing worked to me. I am a failure as a programmer / developer. :( -- You received this me

Re: new to django

2018-10-24 Thread Aditya Bohra
On Thursday, October 18, 2018 at 2:51:02 PM UTC+5:30, shubham...@gmail.com wrote: > > "django-admin startproject mysite" i tried to run this in cmd propmt but it > is not working showing "django-admin' is not recognized as an internal or > external command," what to do? > > Is it working n

Re: I Suck

2018-10-24 Thread vineeth sagar
Hi, This kind of attitude gets you no where my man, Programming is supposed to be hard. You pick-up things every day. First focus on your weaknesses and then work your way up. If you don't have good python experience learn python first and then comeback to django. If there is some part of django y

Re: new to django

2018-10-24 Thread Ing.Daniel Bojorge
Thanks for tell us. Dios L@s Bendiga Saludos, [image: --] daniel.bojorge [image: http://]about.me/daniel.bojorge *Curso Django 2.1 (Course of Django 2.1)* Mi Blog Nicaragua "Si us

Re: I Suck

2018-10-24 Thread Ing.Daniel Bojorge
Try to learn with an case or problem that you want to resolv. Try to automatize some task, and then You can go learning with the practice. Code is hard, but is beautifull!!! Dios L@s Bendiga Saludos, [image: --] daniel.bojorge [image: http://]about.me/daniel.bojorge

Re: Django auto-deletes field related to MySQL Transactions

2018-10-24 Thread RyanW
Hi Matthew and Joel. Thanks for your help. I'm attaching the models.py, views.py and templates for your reference. I'm drawing a blank on the implementation that could trigger a delete. Thanks again On Tuesday, October 23, 2018 at 11:54:17 AM UTC-5, Matthew Pava wrote: > > And make sure your f

Re: I Suck

2018-10-24 Thread Ishtiaq Ahsan
I also did suck. I think it was worse than yours. It was just few months ago. Now I am pretty comfortable with almost any backend framework. So asking you few questions: Q1: Do you know python? Q2: Are you familiar with MVC or similar architectural concepts? Q3: Do you know any other backend fram

RE: Django auto-deletes field related to MySQL Transactions

2018-10-24 Thread Matthew Pava
I can’t see anything wrong with what you’ve presented. Try generating a new database and using that. See if you still get random deletes on that database. From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of RyanW Sent: Wednesday, October 24, 2018 9:51 AM To:

Re: Django auto-deletes field related to MySQL Transactions

2018-10-24 Thread RyanW
I've tried two separate MySQL db's on two separate servers. They both have given me deletes. What's strange is that I've set up a local copy on my laptop with both a local Postgres DB and MySQL connection, and I don't get the same deletes. I've narrowed it down that it must be something the u

RE: Django auto-deletes field related to MySQL Transactions

2018-10-24 Thread Matthew Pava
In that case, is there something in a template that is possibly calling the delete view based on some user trigger, i.e. some Javascript function? From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of RyanW Sent: Wednesday, October 24, 2018 10:11 AM To: Django u

Re: new to django

2018-10-24 Thread Mamadou Harouna Diallo
Hello, Are you active your virtuel env ? You must active the virtuel env Le jeu. 18 oct. 2018 à 09:20, a écrit : > "django-admin startproject mysite" i tried to run this in cmd propmt but it > is not working showing "django-admin' is not recognized as an internal or > external command," what t

I Suck

2018-10-24 Thread PARTH PATIL
Hey don't get disheartened, even i faced the same problem when i was learning django for the first time. I will just you don't rush things. Just try doing some small things first. You can change a few lnes from example code and see how it affects the system. This kind of things really help. Al

Re: new to django

2018-10-24 Thread maunish dave
Chech if you have installed django or not Type this command on cmd ' django pip install' On Wed 24 Oct, 2018, 8:05 PM Aditya Bohra, wrote: > > > On Thursday, October 18, 2018 at 2:51:02 PM UTC+5:30, shubham...@gmail.com > wrote: >> >> "django-admin startproject mysite" i tried to run this in cmd

Re: I Suck

2018-10-24 Thread Vineet Kothari
We all suck, give it a go On Wed 24 Oct, 2018, 10:49 PM PARTH PATIL, wrote: > Hey don't get disheartened, even i faced the same problem when i was > learning django for the first time. I will just you don't rush things. Just > try doing some small things first. You can change a few lnes from ex

Re: I Suck

2018-10-24 Thread Ryan Gedwill
I felt the same as you while learning django, and I already had some professional experience. It is extremely overwhelming to learn something like this on your own. Even people who go to college and get internships don't have to go through it. Pick something you want to make, and break it down in

Re: new to django

2018-10-24 Thread SHUBHAM .SINGH. RATHORE
First you createsuperuser than runserver On Thu 18 Oct, 2018 2:50 pm , wrote: > "django-admin startproject mysite" i tried to run this in cmd propmt but it > is not working showing "django-admin' is not recognized as an internal or > external command," what to do? > > -- > You received thi

Re: Django auto-deletes field related to MySQL Transactions

2018-10-24 Thread C. Kirby
Is this happening to production users? It is probably because their browser is doing pre-fetch of links to speed up their UX. GET request are considered by the browser to be safe (non-destructive) and ideally idempotent. YOu should _never_ put a destructive action behind a GET, it should always

Re: Cannot deploy Django project on Heroku from a Ubuntu 18.04 laptop

2018-10-24 Thread Andréas Kühne
Hi again, Great that you get it running. The reason for it not upgrading the python version is that you need to specify it in a special way on Heroku. I had the same problem - you just need to look at the following: https://devcenter.heroku.com/articles/python-runtimes#selecting-a-runtime Add a

Re: I Suck

2018-10-24 Thread Mark Phillips
Are you working on a project now? What is the project, and where are you stuck? What specifically are you trying to get to work with django? Let us know the specifics of your project and where you are stuck so we can help! You aren't alone in this - the purpose of this list is to help each other!

new Django website with old mysql database

2018-10-24 Thread Thibaud MONTAGNON
Hello, I got some problems to join my mysql database to django. I install mysqlclient and I configure : #settings.py -> DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'OPTIONS': { 'read_default_file': '/path/my.cnf', } } } #my.cnf -> [client]

Re: I Suck

2018-10-24 Thread Holger Otto ANDRE
Hello Weird !!! I just began the last week and I found it piece of cake. I am using Visual Studio 2017 community (its free) and you can find in MSDN and Microsoft Academy very simple to follow tutorials and samples You can give it a try *Holger André* On Wed, Oct 24, 2018 at 8:35 AM Edson Rodr

Re: I Suck

2018-10-24 Thread Gerardo Palazuelos Guerrero
Dude, We are all like you, at some point. I'm also an experienced programmer, and Django has been kind of different. I'm still learning. Listen the other guys: set a goal and solve it. Simple. Good luck. -- Gerardo Palazuelos Guerrero On Wed, Oct 24, 2018 at 8:35 AM Edson Rodrigues wrote: >

Adding crop and rotate to django image upload

2018-10-24 Thread 2012 . us
Hello, I confess that I have no experience with django. I have a project where the django app was written by developers and I want to add a few things to a form that uploads an image. The image currently uploads but the user cannot rotate and crop the image to their liking. The site is using

Re: Channels: about max message size

2018-10-24 Thread Chris
Thank you Andrew. Hope I can upgrade soon to get the Channels 2.X awesomeness :) On Wednesday, October 24, 2018 at 2:08:19 AM UTC+9, Andrew Godwin wrote: > > Hmm, it's possible the 0.x series didn't have response streaming for files > so there'd be a limit, but I honestly can't remember, that wa

Re: Django auto-deletes field related to MySQL Transactions

2018-10-24 Thread RyanW
Yes, it is. Are you referring to 'delete' method in my views? On Wednesday, October 24, 2018 at 1:24:12 PM UTC-5, C. Kirby wrote: > > Is this happening to production users? It is probably because their > browser is doing pre-fetch of links to speed up their UX. GET request are > considered by th

Re: Adding crop and rotate to django image upload

2018-10-24 Thread Mark Phillips
You could look at this project for ideas on how to accomplish your crop and rotate actions - https://github.com/matthewwithanm/django-imagekit However, if you want the user to manually crop and rotate the image on your site while looking at a Django view, then you will have to use some Javascript

Re: Django auto-deletes field related to MySQL Transactions

2018-10-24 Thread Mark Phillips
Just a wild guess - do you have a cascade delete in your models that is causing the deletion? Is a user deleting another object, and that is triggering a cascade delete on a different model? Mark On Wed, Oct 24, 2018 at 4:22 PM RyanW wrote: > Yes, it is. Are you referring to 'delete' method in

Re: Django auto-deletes field related to MySQL Transactions

2018-10-24 Thread RyanW
Hi Mark, I did at one point, but I don't any longer ( I use RESTRICT now). Would you guys mind if I attached a copy of the app for review? Thank you! On Wednesday, October 24, 2018 at 6:36:12 PM UTC-5, mark wrote: > > Just a wild guess - do you have a cascade delete in your models that is > c

Help to get started with Gsoc 2019

2018-10-24 Thread PARTH PATIL
Hey i am* Parth Patil*, a second year undergraduate engineer. I have been using django since the last year and had done many cool projects with it, also I'm cureently a maintainer for 3 websites as well. I am willing to participate in* GSoC 2019*. I thought this would be a good time to start. I