Re: How can we secure django python files for production release?

2018-11-15 Thread Andréas Kühne
The short answer: You don't. What is your use case? Why do you want to do this? Django is run on a server and only the devops should have access to updating / looking at the django files. You CAN use only the pyc files - but it's more bother than it's worth and the pyc files can be returned to

Re: template

2018-11-15 Thread Аккозов Медер
App name(example "blog")/templates/app name again ("blog")/html file чт, 15 нояб. 2018 г., 18:53 Scott Tresor scotttre...@gmail.com: > hello how to user template for django > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe

Re: MySQL caching_sha2_password

2018-11-15 Thread Jason
did you try googling the error? a simple google query returned a number of possible avenues of investigation > > -- 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

Re: MySQL caching_sha2_password

2018-11-15 Thread Mamadou Harouna Diallo
Are install pymysql ? If aren't you need install it Le jeu. 15 nov. 2018 18:19, Ansh Srivastava a écrit : > Hi experts, I am tryin' to connect to MySQL database and the following > error flashed! > > return Database.connect(**conn_params) > File >

python manage.py runserver

2018-11-15 Thread fysaljackson
python manage.py runserver isnt running with me -- 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

Re: MySQL caching_sha2_password

2018-11-15 Thread Ansh Srivastava
Yes @Jason I am swamped with all those googling but nothin' found there! [image: Mailtrack] Sender notified by Mailtrack

MySQL caching_sha2_password

2018-11-15 Thread Ansh Srivastava
Hi experts, I am tryin' to connect to MySQL database and the following error flashed! return Database.connect(**conn_params) File "C:\Users\ansh\AppData\Local\Programs\Python\Python36\lib\site-packages\M ySQLdb\__init__.py", line 86, in Connect return Connection(*args, **kwargs) File

Re: python manage.py runserver

2018-11-15 Thread Benjamin SOULAS
could you give us the context? what the error is? Le jeu. 15 nov. 2018 19:14, a écrit : > python manage.py runserver isnt running with me > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > You

Migrations - moving model between apps

2018-11-15 Thread Matthew Pava
I'm moving a model to a different app in my project, and I want to keep the same data that I already have. I created a migration with a RunSQL operation that simply renames the table with the new app prefix. However, when I run makemigrations, Django insists on adding a migrations.CreateModel

Re: Migrations - moving model between apps

2018-11-15 Thread Simon Charette
Hello Matthew, I'm going to assume no foreign keys are pointing to the model "Foo" you are trying to move from the app "old" to "new". If it's the case then simply repoint them and run makemigrations once the following steps are completed. You could wrap the generated AlterField in

Re: Render works but url does not change

2018-11-15 Thread Joel
Post details.. The url, your urls.py etc On Fri, 16 Nov, 2018, 8:05 AM Derrick Lu HI, > I am having trouble with url when rendering to a new page via a button. > The new page renders but the url does not reflect the new page. > Has anyone had that problem before? > > -- > You received this

Render works but url does not change

2018-11-15 Thread Derrick Lu
HI, I am having trouble with url when rendering to a new page via a button. The new page renders but the url does not reflect the new page. Has anyone had that problem before? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: python manage.py runserver

2018-11-15 Thread Mamadou Harouna Diallo
Are you active your virtuel env if you are use it ? Or verify if you are in the folder where manage.py is ? Le jeu. 15 nov. 2018 18:14, a écrit : > python manage.py runserver isnt running with me > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >

Re: Render works but url does not change

2018-11-15 Thread Derrick Lu
This is my url.py *app_name = 'springcity'urlpatterns = [url(r'^$', views.index, name='index'),url(r'^home/$', views.home, name='home'), url(r'^portal/$', views.portal, name='portal'), url(r'^ajax/cutlist/$', views.cutList, name='cutlist'),]* This is my

Re: How to solve django.db.utils.OperationalError: (2013, 'Lost connection to MySQL server during query')?

2018-11-15 Thread vineeth sagar
Try reducing the connection max age to a lesser value like 3600 maybe? On Nov 15, 2018 2:41 PM, "prateek gupta" wrote: > Hi, > > My all db have 20 gb of size. > > On Thursday, November 15, 2018 at 12:27:27 PM UTC+5:30, Krishnasagar > Subhedarpage wrote: >> >> Hi Prateek, >> >> Did you check

Re: How to solve django.db.utils.OperationalError: (2013, 'Lost connection to MySQL server during query')?

2018-11-15 Thread Krishnasagar Subhedarpage
Okay. Please check error logs of mysql. Its default path: /var/log/mysql/error.log Please look into any error signals for the same table into it. This could give clue for root cause of issue. Regards, Krishnasagar Subhedarpage On Thu, 15 Nov 2018 at 14:42, prateek gupta wrote: > Hi, > > My

Re: How to solve django.db.utils.OperationalError: (2013, 'Lost connection to MySQL server during query')?

2018-11-15 Thread prateek gupta
Hi, My all db have 20 gb of size. On Thursday, November 15, 2018 at 12:27:27 PM UTC+5:30, Krishnasagar Subhedarpage wrote: > > Hi Prateek, > > Did you check disk info of server instance? What's disk consumption? > > Regards, > Krishnasagar Subhedarpage > > > > > On Thu, 15 Nov 2018 at 12:09,

Re: Custom queryset in a list_editable field of Admin changelist

2018-11-15 Thread Poorna Shashank
This has been very old and I had to search for it for a long time. Posting in case some one needs the answer to the same. So, the way to do this would be to go via the ModelForm route where the querysets for each fields for each instance can be set separately from django import forms class

Re: Looking for Job in Django

2018-11-15 Thread Sameer Sharma
In which city you are looking for a job ? On Thursday, November 15, 2018 at 11:38:08 AM UTC+5:30, Harish Soni wrote: > > Hi All, > I'm looking for opportunity. > > Serving Notice Period . > More than 2+ year of experience. > E2E development knowledge, Team Management, Project Management, >

How can we secure django python files for production release?

2018-11-15 Thread HEMENDRA SINGH HADA
As we know python is interpreted language and we've to give it in readable format ? But how we can secure those files for production release so customer can't change it or modify it ? As like in Bin in C++, jar in JAVA and .exe in .Net

Fwd: Dead code: Vulture?

2018-11-15 Thread Lachlan Musicman
Hola, I have inherited a Django 1.8 code base, which I'm updating to latest release. I was wondering if anyone has used a Dead Code or Unused Code finder, like Vulture? https://github.com/jendrikseipp/vulture and if so, what their opinions on those tools were? cheers L. -- '...postwork

Re: Looking for Job in Django

2018-11-15 Thread Harish Soni
Preference is Bangalore but relocation is also not a big deal if it's good opportunity. On Thu, Nov 15, 2018, 5:58 PM Sameer Sharma In which city you are looking for a job ? > > On Thursday, November 15, 2018 at 11:38:08 AM UTC+5:30, Harish Soni wrote: >> >> Hi All, >> I'm looking for

Re: How to fix (2027, 'Malformed packet') exception?

2018-11-15 Thread Jason
its an issue with your mysql connection lib. which one are you using? On Thursday, November 15, 2018 at 1:02:20 AM UTC-5, prateek gupta wrote: > > Hi All, > > I am facing a strange issue in my pre-prod server (in dev and uat it's > working fine). > Whenever I login in django admin and click on

template

2018-11-15 Thread Scott Tresor
hello how to user template for django -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send

Re: How to fix (2027, 'Malformed packet') exception?

2018-11-15 Thread prateek gupta
I am using mysqlclient 1.3.12. On Thu 15 Nov, 2018, 6:20 PM Jason its an issue with your mysql connection lib. which one are you using? > > On Thursday, November 15, 2018 at 1:02:20 AM UTC-5, prateek gupta wrote: >> >> Hi All, >> >> I am facing a strange issue in my pre-prod server (in dev and

Re: template

2018-11-15 Thread Joel Mathew
Huh? On Thu, 15 Nov 2018 at 18:23, Scott Tresor wrote: > hello how to user template for django > > -- > 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: template

2018-11-15 Thread Nelson Varela
This is just a guess... but I think no... I am really sure you can find it. here: https://docs.djangoproject.com/en/2.1/topics/templates/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop