django send_mail

2019-03-27 Thread Aayush Bhattarai
[image: isjs.PNG] How to send this form in django send_mail. Thanks For Your Help. -- 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...@goo

Re: django send_mail

2019-03-27 Thread Anirudh Jain
Instead of creating a word file, create a HTML template for it if you want the links of your social media accounts to work. Otherwise jusy save this file in static/images folder and load it in a template. Either way you will have to create a template. On Wed, 27 Mar 2019, 13:08 Aayush Bhattarai,

Re: Inconsistent Django test results depending upon how the test is called in Django 1.5.1 running on Python 2.7.4

2019-03-27 Thread Ruben Alves
I had a similar problem and I solved it by making all tests inherit from `django.test.TestCase`. I had some tests inheriting from `unittest.TestCase`, which doesn't reset the database after the test is finished. I found the answer on https://stackoverflow.com/a/436795/6490637 Em segunda-feira

1054, "Unknown column 'userprofile_user.phone' in 'field list'"

2019-03-27 Thread Pinkesh Narad
hello all, I am new to this, and i am getting this error and unable to run my admin as of I did makemigration app-name also delete my migrations several time but still getting same error and i am stuck here. please help me -- You received this message because you are subscribed to the Google

Re: 1054, "Unknown column 'userprofile_user.phone' in 'field list'"

2019-03-27 Thread Phako Perez
Review your model, seems you missed add phone into your model or some misspelling Sent from my iPhone > On Mar 27, 2019, at 12:05 AM, Pinkesh Narad > wrote: > > hello all, > I am new to this, and i am getting this error and unable to run my admin > as of I did makemigration app-name also de

Re: 1054, "Unknown column 'userprofile_user.phone' in 'field list'"

2019-03-27 Thread Aayush Bhattarai
*First make migrations* *python manage.py makemigrations YourAppName* *and then migrate * *python manage.py migrate* *and create superuser* *Maybe your error may be fixed.* -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from t

django-translated-fields

2019-03-27 Thread אורי
Hi, Please take a look at this issue: https://github.com/matthiask/django-translated-fields/issues/10 Do you have any solution? In short, I'm trying to convert Speedy Net from using django-modeltranslation to django-translated-fields. I defined the models and forms and everything works in Englis

why i need to download pycharm , why python ide is not sufficient to write code .

2019-03-27 Thread goodresults
-- -- 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 email to django-use

Re: why i need to download pycharm , why python ide is not sufficient to write code .

2019-03-27 Thread Phako Perez
Isn’t required, it depends on you as PyCharm has more functionalities Sent from my iPhone > On Mar 27, 2019, at 12:49 PM, goodresults wrote: > > -- > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe fr

Re: why i need to download pycharm , why python ide is not sufficient to write code .

2019-03-27 Thread Pedro Folch
It really helps try it On Wed, Mar 27, 2019, 1:11 PM Phako Perez <13.phak...@gmail.com> wrote: > Isn’t required, it depends on you as PyCharm has more functionalities > > Sent from my iPhone > > On Mar 27, 2019, at 12:49 PM, goodresults wrote: > > -- > > -- > You received thi

Re: why i need to download pycharm , why python ide is not sufficient to write code .

2019-03-27 Thread Bill Freeman
Like many tools, it will take longer to learn to use it well than it takes to code a small project, though it will start to help along the way. As an emacs user, I already had what I needed and more, so it was hard to justify the extra effort, but I was working where everyone else used it, and it

Re: Create models using raw SQL queries

2019-03-27 Thread PASCUAL Eric
Hi, Not sure Django is the right choice in your case since one of its main purposes is to hide the SQL stuff by putting the ORM in front. You'd better use Flask, Tornado or any other Web framework which does not come with any special feature WRT data access. Best Eric ___

Re: why i need to download pycharm , why python ide is not sufficient to write code .

2019-03-27 Thread mohamed khaled
You can use such as VS code atom and sublime text you can customize your environment according programme language. Of course pycharm is great IDE and uses for huge companies and mustn't use it On Wed, Mar 27, 2019, 10:48 PM Bill Freeman wrote: > Like many tools, it will take longer to learn to u

Updated package django-adminrestrict 2.0

2019-03-27 Thread robromano
django-adminrestrict enables you to block access to the Django admin pages unless requests come from specific IP addresses. All management of access is done via admin pages themselves. Simple wildcarding of IP addresses is supported. It supports Django 1.4 or later, with recent support for

Re: Create models using raw SQL queries

2019-03-27 Thread Simon A
hi Cameron, as Eric said, by doing this you might not fully take advantage of the features of django. But if you still want to proceed maybe you can use the managed option for models. https://docs.djangoproject.com/en/2.1/ref/models/options/#managed. with this approach, you'll create the databa

Re: Create models using raw SQL queries

2019-03-27 Thread cameron hochbrg
Thank you for your response. I am aware that django has for purpose to hide the SQL. the reason why I wanted to use django is that I had used it before and I didn't want to have to learn a new framework if possible. Le mer. 27 mars 2019 à 21:33, Simon A a écrit : > hi Cameron, as Eric said, by d