Weird issue with a form
I've been scratching my head over this one. I have a user registration form but when I submit data on it and it always returns a 404 (it wants to go to the /users/accounts/ URL) but there are no URLs there. It initially went to /user/ but I created the view it was looking for but it just then moved to /user/accounts/. I have added the get_success_url to point to the correct URL using reverse but even that doesn't work. Can someone help me out with this please? Thank you. Simon. -- 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 web visit https://groups.google.com/d/msgid/django-users/DuQl41jFoSkfZGUn35r4DdcARH3iV1InUZ5sozg4Jg4EfJ1tQPYGcC7WVs0Pr8UzyLtYWDXp5TiS0rBzC2QCRjXbSoR3bWwLRIbnK7f8bqA%3D%40protonmail.com. signature.asc Description: OpenPGP digital signature
Registration form in template
I have a register user template with a form which works well but I have a problem where there is lots of other text next to the form elements such as password length and what characters need to go in a password. Is their a reasonable way to hide that text or do I need to do it with JavaScript? Thank you. Simon. -- 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 web visit https://groups.google.com/d/msgid/django-users/xepYvHchH7kpHYeaYe7ByePm8VQYSjgIEzyGjSKDhOcAOhbh7j1vLmwSgLEgC5kkq-wYMOHjPM7--mLSu9w22I_BT9A-sQjZgTxVi9RR8IM%3D%40protonmail.com. signature.asc Description: OpenPGP digital signature
Strange bug with Firefox
Hi, I have a strange issue that affects the latest stable version of Firefox and the latest Firefox Developer Edition as well. I'm making a custom user and am just setting all the forms up. I can login with the user and when I go to the password change form it is displayed correctly in Firefox but if I right click and click view source it shows a completely different form. On the other hand when I use Chrome and Chrome Developer Edition it shows the correct form and works exactly as intended. I've never seen anything like this before. I thought it was a problem with a browser extension so I removed them all (apart from Bitwarden) and completely cleared the history but none of that seems to have fixed the issue. I'm at a loss. Can someone suggest what might be going on here? As I said it works fine in Chrome. Simon. -- 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 web visit https://groups.google.com/d/msgid/django-users/zT7ozAu9QZo4FQ9XwBRiSTIc2ZwYA3eknb3Z-NJpibp6KIw3I9HmI0vOjhwtoyUux2qIu_Zqa3dI3ecbdkQKWdHmT86PsXQ378hsYbrp3gw%3D%40protonmail.com. signature.asc Description: OpenPGP digital signature
Re: Unit test to make sure correct template is returned from a specific URL?
Thank you very much! --- Original Message --- On Monday, September 25th, 2023 at 14:07, Muhammad Juwaini Abdul Rahman wrote: > Use assertTemplateUsed. > https://docs.djangoproject.com/en/dev/topics/testing/tools/#django.test.SimpleTestCase.assertTemplateUsed > > On Sun, 24 Sept 2023 at 22:37, 'Simon Connah' via Django users > wrote: > > > I can write a unit test which checks say the title on a page and compares > > it to a string but that is really prone to breakage. What I want to do > > instead is to check that the template that is returned by the URL is the > > same one that is expected in the unit test. Is there an easy way to do this? > > > > -- > > 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 web visit > > https://groups.google.com/d/msgid/django-users/MnCVU2YvJzLiFdMPPAVBwMY7SMosqS5wvqopbySnD05i7BTc375v_Bo5GB4VlUQSd5K2OwsiblAbxsfsz7in96L4_Ou4RTRm0jwVN3aMp54%3D%40protonmail.com. > > -- > 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 web visit > https://groups.google.com/d/msgid/django-users/CAFKhtoRiz4mr69ZLu7_wCxVFXgjnvmAW3JCoYdcDrx%2Bwu94vrw%40mail.gmail.com. -- 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 web visit https://groups.google.com/d/msgid/django-users/O_3E4w3kT2FE_XgQrWGfQFM_DcKq_syuWJ0eEuZ0zJfIPnZ6rzbF80z28SORLG9r7rik-evYNQhGnchpIcEDOP9zqIX9n_xOntOTHDAbv4M%3D%40protonmail.com. signature.asc Description: OpenPGP digital signature
Unit test to make sure correct template is returned from a specific URL?
I can write a unit test which checks say the title on a page and compares it to a string but that is really prone to breakage. What I want to do instead is to check that the template that is returned by the URL is the same one that is expected in the unit test. Is there an easy way to do this? -- 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 web visit https://groups.google.com/d/msgid/django-users/MnCVU2YvJzLiFdMPPAVBwMY7SMosqS5wvqopbySnD05i7BTc375v_Bo5GB4VlUQSd5K2OwsiblAbxsfsz7in96L4_Ou4RTRm0jwVN3aMp54%3D%40protonmail.com. signature.asc Description: OpenPGP digital signature
Re: Splitting views.py and urls.py into a directory rather than single files
Thank you! That got it working! --- Original Message --- On Monday, September 18th, 2023 at 13:34, Asim Sulehria wrote: > You can just directly declare an array of URL Patterns in a separate file and > then import that file in the url files you want to make the main urls file > > On Mon, Sep 18, 2023 at 5:28 PM 'Simon Connah' via Django users > wrote: > > > Hi, > > > > I have an app which has a lot of views and URLs and keeping them in just > > one file makes it really hard to manage because it is so long. I'd like to > > make a views and URLs folder which will allow me to break up views and URLs > > into different categories but I'm not sure what the best way to go about > > doing that is. > > > > Can someone point me in the right direction please? > > > > Thank you! > > > > Simon. > > > > -- > > 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 web visit > > https://groups.google.com/d/msgid/django-users/4svI0xN0uu53BvHzhG9Aa1qvI61v1qPlQOhkOLpaJPRXX1Jysfu-BOmrFlBsDOfHfKRHwTaXJNmKFApZ1W13jQLdpVvXQDEPdWq87T-ILR8%3D%40protonmail.com. > > -- > 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 web visit > https://groups.google.com/d/msgid/django-users/CAPz57eGK6EXPGObGH5-ej3OPGvEmox%2BkR34xW3Eg1weWQug%3Dcw%40mail.gmail.com. -- 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 web visit https://groups.google.com/d/msgid/django-users/d3_jwrhlaNWhn-_QfIOhopznbSi5o3e5tF5p-pF34iqaGFRRBVFScOg6PL95XWeJIBV6JpmQpXg0L0FcGNH9fjM5CItLGCZ8mIoJqNxEohU%3D%40protonmail.com. signature.asc Description: OpenPGP digital signature
Splitting views.py and urls.py into a directory rather than single files
Hi, I have an app which has a lot of views and URLs and keeping them in just one file makes it really hard to manage because it is so long. I'd like to make a views and URLs folder which will allow me to break up views and URLs into different categories but I'm not sure what the best way to go about doing that is. Can someone point me in the right direction please? Thank you! Simon. -- 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 web visit https://groups.google.com/d/msgid/django-users/4svI0xN0uu53BvHzhG9Aa1qvI61v1qPlQOhkOLpaJPRXX1Jysfu-BOmrFlBsDOfHfKRHwTaXJNmKFApZ1W13jQLdpVvXQDEPdWq87T-ILR8%3D%40protonmail.com. signature.asc Description: OpenPGP digital signature
Re: UpdateView and DeleteView
Will do! Thank you for your help. --- Original Message --- On Saturday, August 26th, 2023 at 19:30, Ruby wrote: > I'm glad it worked out,Consider using LoginRequiredMixin to ensure that > current user is authenticated before accessing the view. > > > On Sat, Aug 26, 2023, 16:23 'Simon Connah' via Django users > wrote: > > > Thank you! That is very helpful. > > > > > > --- Original Message --- > > On Saturday, August 26th, 2023 at 14:07, Ruby > > wrote: > > > > > > > You can simply set a test case using the built-in user passes test > > > (https://docs.djangoproject.com/en/4.2/topics/auth/default/#django.contrib.auth.decorators.user_passes_test) > > > > > > On Sat, Aug 26, 2023, 11:20 'Simon Connah' via Django users > > > wrote: > > > > > > > I want to make sure that the only people who can update and delete an > > > > object are either superusers or the person that originally created them > > > > but I'm not sure how to go about doing it. Can someone point me in the > > > > right direction? > > > > > > > > I'm not sure which method(s) to override. > > > > > > > > Thank you. > > > > > > > > > > > > -- > > 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 web visit > > https://groups.google.com/d/msgid/django-users/iT1fh6Btk96LInLjgvQNNIOeqZTL6TMcV5IbsAmfVdnR1ujaNPCbV_zhJeXr5o7emCHzK_BHnYDtyxQ1ZJVu7oDGqyDRkJirWsaGto-5bbA%3D%40protonmail.com. > > -- > 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 web visit > https://groups.google.com/d/msgid/django-users/CAPUD46vM6PEJK4btLa-DCF8-VvExdnJ2OpzB0-Z6h03CVWvzOg%40mail.gmail.com. -- 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 web visit https://groups.google.com/d/msgid/django-users/nMbslf1DnsTi42UmcaQZjvuHxoVVxPQapPAABp-aN5zswI1iBp61YS-J9IwUsRPyTb_87IJsY5rMktNRS9h6rY57zUjT_4fJzdSU8Dxuiec%3D%40protonmail.com. signature.asc Description: OpenPGP digital signature
Re: UpdateView and DeleteView
Thank you! That is very helpful. --- Original Message --- On Saturday, August 26th, 2023 at 14:07, Ruby wrote: > You can simply set a test case using the built-in user passes test > (https://docs.djangoproject.com/en/4.2/topics/auth/default/#django.contrib.auth.decorators.user_passes_test) > > On Sat, Aug 26, 2023, 11:20 'Simon Connah' via Django users > wrote: > > > I want to make sure that the only people who can update and delete an > > object are either superusers or the person that originally created them but > > I'm not sure how to go about doing it. Can someone point me in the right > > direction? > > > > I'm not sure which method(s) to override. > > > > Thank you. > > > > -- 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 web visit https://groups.google.com/d/msgid/django-users/iT1fh6Btk96LInLjgvQNNIOeqZTL6TMcV5IbsAmfVdnR1ujaNPCbV_zhJeXr5o7emCHzK_BHnYDtyxQ1ZJVu7oDGqyDRkJirWsaGto-5bbA%3D%40protonmail.com. signature.asc Description: OpenPGP digital signature
UpdateView and DeleteView
I want to make sure that the only people who can update and delete an object are either superusers or the person that originally created them but I'm not sure how to go about doing it. Can someone point me in the right direction? I'm not sure which method(s) to override. Thank you. -- 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 web visit https://groups.google.com/d/msgid/django-users/RC50Lr8yv1j7M_cjvPHLpvLJ1RzHJP3QQaF5oQu4vAmfeijfMbprfVyyHGTIvg9udwKhe_-XcM9tYH9tRyaX-MDQauXKf3PiJbMOq2hEfj4%3D%40protonmail.com. signature.asc Description: OpenPGP digital signature
Building a modular app?
Hi, I want to make a blogging platform and have a question about organising the project. With my blog, I'll have the blog in one Django app and then have something like a forum in another app, along with additional functions in other apps. Also, I'd like to have a single-user system that uses AbstractUser (or AbstractBaseUser). So how do all apps require my AbstractUser class for authentication, and then the other apps be added or removed based on what is needed for each site? I want to split auth from the rest project. Thanks! -- 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 web visit https://groups.google.com/d/msgid/django-users/Y-FsxPZKXSIkwB9-Hj599nnwPVu5XWMbDlfv0HEnIu9cLNeRU5b-1egUTZv8vUpHVLc4uq6oP8pVEXlxW9PqVDQQMud9BJBdBn6V6EI0hEM%3D%40protonmail.com. signature.asc Description: OpenPGP digital signature
Re: Creating a model instance using currently logged in user
Hi, Sorry. When I wrote that message I wasn't thinking properly. After a sleep and a bit of Googling, I sorted the issue out. In the future, I'll be much more explicit about my problems. Just goes to show how important sleep is when programming :). Thank you for your response though. At least it has confirmed to me that form_valid() is the correct location for things like this. I seem to have a tendency to miss important details in the Django documentation for some reason. On Wednesday, 4 April 2018, 19:16:50 BST, Daniel Rosemanwrote: On Tuesday, 3 April 2018 22:17:34 UTC+1, Simon Connah wrote: > Hi, > > Apologies as this is a newbie question. > > I have a Model, a CBV CreateView and a ModelForm. > > The ModelForm is set to use the model, and the model has a field called > author which is a ForeignKey to default Django auth User model. > > I have removed the author field from the ModelForm as if I allow it the form > widget shows a list of all of the registered users on the website. > > What I need to do is pre-populate the ModelForm with self.request.user from > the CreateView. I've tried doing it in the form_valid() method but can't seem > to get it working. As soon as a user creates an instance of the Model, I want > the author to always equal self.request.user. > > I have a feeling you filter the ModelForm only to show the logged in user but > I'm a bit stuck on that front. Perhaps you have to pre-populate the field in > the ModelForm and then use a HiddenInput for the author field in the > ModelForm? > > Any help would be appreciated. > > Thank you. No, the right approach is to do it in form_valid as you tried initially. This is explicitly documented: https://docs.djangoproject.com/en/2.0/topics/class-based-views/generic-editing/#models-and-request-user If you're having trouble, you need to be more specific than "I can't get it working". -- DR. -- 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-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4bcfdc2c-7e2f-42dd-9295-1a31d85317d5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/331856020.1804157.1522893033506%40mail.yahoo.com. For more options, visit https://groups.google.com/d/optout.
Creating a model instance using currently logged in user
Hi, Apologies as this is a newbie question. I have a Model, a CBV CreateView and a ModelForm. The ModelForm is set to use the model, and the model has a field called author which is a ForeignKey to default Django auth User model. I have removed the author field from the ModelForm as if I allow it the form widget shows a list of all of the registered users on the website. What I need to do is pre-populate the ModelForm with self.request.user from the CreateView. I've tried doing it in the form_valid() method but can't seem to get it working. As soon as a user creates an instance of the Model, I want the author to always equal self.request.user. I have a feeling you filter the ModelForm only to show the logged in user but I'm a bit stuck on that front. Perhaps you have to pre-populate the field in the ModelForm and then use a HiddenInput for the author field in the ModelForm? Any help would be appreciated. Thank you. -- 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-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1520525941.1331821.1522790170028%40mail.yahoo.com. For more options, visit https://groups.google.com/d/optout.
Re: Advertising a new Django open source project?
Oh, good catch. I'll fix that tomorrow. Thanks. On Monday, 26 March 2018, 18:45:24 BST, Dylan Reinhold <dreinh...@gmail.com> wrote: One thing I noticed. In your Blog model you are saving your slug every time. If you are using the slug as your URL this means if a title is changed the URL will change and anyone who had the original URL will get a 404. Probably not want you want. Dylan On Mon, Mar 26, 2018 at 10:33 AM, 'Simon Connah' via Django users <django-users@googlegroups.com> wrote: Well, I've opened up the repository if anyone is interested in taking a look. As I've said elsewhere, it is very early in development, but I have a couple of weeks where I should be able to dedicate a decent amount of time to get it working properly. The main thing I'm a bit worried about is the design since I suck at that sort of thing. The repo is here: https://gitlab.com/glamorous- systems/seductive On Sunday, 25 March 2018, 09:55:21 BST, Etienne Robillard <tkad...@yandex.com> wrote: Hi Simon, You can also consider setting up a official website for your project. Regards, Etienne Le 2018-03-24 à 15:13, 'Simon Connah' via Django users a écrit : Hi, First of all, I am sorry because I know that this is off-topic but I couldn't think of a better place to ask the question. I'm in the process of developing a cross between a blog, a media gallery and some essential e-commerce features which is designed for end users rather than other Django developers (much like Wordpress is although I am not saying my project is going to be anything like Wordpress). I want to advertise the project so that other people can help with its development and offer ideas on features as well as use it if they want to. I have no idea where to advertise my open source project? Is there a decent place to make people aware of what I am doing? I'm fine doing all the backend tasks, but it would be great to have some help on the frontend design aspects. I can handle the JavaScript as well. I'm just not so hot on CSS. Any help is appreciated. Simon. -- 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+unsubscribe@ googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/ group/django-users. To view this discussion on the web visit https://groups.google.com/d/ msgid/django-users/1400150805. 2759758.1521918783407%40mail. yahoo.com. For more options, visit https://groups.google.com/d/ optout. -- Etienne Robillard tkad...@yandex.com https://www.isotopesoftware. ca/ -- 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+unsubscribe@ googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/ group/django-users. To view this discussion on the web visit https://groups.google.com/d/ msgid/django-users/d9f5e8ef- 826f-f5dc-1f4b-99e8f14fdb72% 40yandex.com. For more options, visit https://groups.google.com/d/ optout. -- 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+unsubscribe@ googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/ group/django-users. To view this discussion on the web visit https://groups.google.com/d/ msgid/django-users/228244104. 3602778.1522085598580%40mail. yahoo.com. For more options, visit https://groups.google.com/d/ optout. -- 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-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHtg44AgvgLwvFu9MhmgtKvd8wxPR9T_VUWB9JnE3kKYxt-qrA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. -- 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-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com
Re: Advertising a new Django open source project?
Well, I've opened up the repository if anyone is interested in taking a look. As I've said elsewhere, it is very early in development, but I have a couple of weeks where I should be able to dedicate a decent amount of time to get it working properly. The main thing I'm a bit worried about is the design since I suck at that sort of thing. The repo is here: https://gitlab.com/glamorous-systems/seductive On Sunday, 25 March 2018, 09:55:21 BST, Etienne Robillard <tkad...@yandex.com> wrote: Hi Simon, You can also consider setting up a official website for your project. Regards, Etienne Le 2018-03-24 à 15:13, 'Simon Connah' via Django users a écrit : Hi, First of all, I am sorry because I know that this is off-topic but I couldn't think of a better place to ask the question. I'm in the process of developing a cross between a blog, a media gallery and some essential e-commerce features which is designed for end users rather than other Django developers (much like Wordpress is although I am not saying my project is going to be anything like Wordpress). I want to advertise the project so that other people can help with its development and offer ideas on features as well as use it if they want to. I have no idea where to advertise my open source project? Is there a decent place to make people aware of what I am doing? I'm fine doing all the backend tasks, but it would be great to have some help on the frontend design aspects. I can handle the JavaScript as well. I'm just not so hot on CSS. Any help is appreciated. Simon. -- 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-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1400150805.2759758.1521918783407%40mail.yahoo.com. For more options, visit https://groups.google.com/d/optout. -- Etienne Robillard tkad...@yandex.com https://www.isotopesoftware.ca/ -- 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-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d9f5e8ef-826f-f5dc-1f4b-99e8f14fdb72%40yandex.com. For more options, visit https://groups.google.com/d/optout. -- 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-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/228244104.3602778.1522085598580%40mail.yahoo.com. For more options, visit https://groups.google.com/d/optout.
Re: Advertising a new Django open source project?
Hi Egor, Thank you for the reply. When I get a bit nearer to completion I'll certainly follow your advice. Thanks for the links. Simon. On Saturday, 24 March 2018, 20:03:41 GMT, Egor Smolyakov <egors...@gmail.com> wrote: Hello, Simon. I had a similar question a few months ago when I advertised my project https://github.com/egorsmkv/simple-django-login-and-register So, I posted the url of my project to these Reddit hubs: - https://www.reddit.com/r/django/ - https://www.reddit.com/r/Python/ Also, I posted the url to the show's section of Hacker News: https://news.ycombinator.com/show I think, it helps you. On 24 March 2018 at 21:13, 'Simon Connah' via Django users <django-users@googlegroups.com> wrote: Hi, First of all, I am sorry because I know that this is off-topic but I couldn't think of a better place to ask the question. I'm in the process of developing a cross between a blog, a media gallery and some essential e-commerce features which is designed for end users rather than other Django developers (much like Wordpress is although I am not saying my project is going to be anything like Wordpress). I want to advertise the project so that other people can help with its development and offer ideas on features as well as use it if they want to. I have no idea where to advertise my open source project? Is there a decent place to make people aware of what I am doing? I'm fine doing all the backend tasks, but it would be great to have some help on the frontend design aspects. I can handle the JavaScript as well. I'm just not so hot on CSS. Any help is appreciated. Simon. -- 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+unsubscribe@ googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/ group/django-users. To view this discussion on the web visit https://groups.google.com/d/ msgid/django-users/1400150805. 2759758.1521918783407%40mail. yahoo.com. For more options, visit https://groups.google.com/d/ optout. -- Kind Regards, Yehor Smoliakov. -- 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-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACL14xpzuP4oQrO_fFBkdo5R-c9SG9HU1cDYCOHQCsVacu2vyw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. -- 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-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/230395608.2795627.1521944994252%40mail.yahoo.com. For more options, visit https://groups.google.com/d/optout.
Advertising a new Django open source project?
Hi, First of all, I am sorry because I know that this is off-topic but I couldn't think of a better place to ask the question. I'm in the process of developing a cross between a blog, a media gallery and some essential e-commerce features which is designed for end users rather than other Django developers (much like Wordpress is although I am not saying my project is going to be anything like Wordpress). I want to advertise the project so that other people can help with its development and offer ideas on features as well as use it if they want to. I have no idea where to advertise my open source project? Is there a decent place to make people aware of what I am doing? I'm fine doing all the backend tasks, but it would be great to have some help on the frontend design aspects. I can handle the JavaScript as well. I'm just not so hot on CSS. Any help is appreciated. Simon. -- 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-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1400150805.2759758.1521918783407%40mail.yahoo.com. For more options, visit https://groups.google.com/d/optout.
Re: Dealing with templates in an open source Django project?
Hi Etienne, Thank you for the reply. I think I get what you mean now. It would certainly solve a lot of issues so thank you for the idea. I'd have to rejig a few things to make sure it works correctly but I think once it is all configured it would be a much more stable system. I appreciate the help :). Simon. On Monday, 19 March 2018, 15:27:40 GMT, Etienne Robillard <tkad...@yandex.com> wrote: Hey man, First of all you're definitely not stupid. :-) Second, I think you're starting pretty well to understand what I'm trying to explain. I do admit however that I haven't myself experimented with this type of functionality, but I really think it should be possible to define some specific Django models to let the user customize the look and feel of your interface via the admin site. You could start progressively by letting the user choose from a list a custom CSS file to use for its blogging site. Then you could perhaps let the user choose a specific header and footer for his theme. There's no limit in what you can do. Just let your imagination flows in and use your Django programming skills to let your users manage their blogging site the way they want. You could even define some specific Javascript fields for allowing users to enable or disable some more advanced functionality... Anyways, that's all I can think off right now... Have fun, Etienne Le 2018-03-19 à 09:55, 'Simon Connah' via Django users a écrit : Hi Etienne, Thank you for your reply. I have to apologise because I think I am a bit stupid. I'm not sure what you mean. I think I might understand what you mean to a degree, but I'm not sure how to go about it. In effect, I should layout a basic template for general use and then create admin views which allow users to customise the specifics of the templates. Is that what you meant? If it is, then it is indeed an interesting idea I hadn't considered. I'm not entirely sure how I would go about doing that at the moment. I'd have to think. If you meant something else, then please let me know if I have misunderstood what you mean. Simon.On Sunday, 18 March 2018, 23:39:47 GMT, Etienne Robillard <tkad...@yandex.com> wrote: Hi Simon, I'll try to help you out with that. Have you considered using Django models to allow end users to create, edit and customize templates within the Django admin? This should be pretty easy to do. All you need is to define some models for your customized templates and then the user can configure the styling within the Django admin. HTH, Etienne Le 2018-03-18 à 18:21, 'Simon Connah' via Django users a écrit : Hi, First of all apologies for posting two messages to this list in a couple of days but I've just got back into Django after a rather long break, and it is taking me a little time to get back in the swing of things. I'm in the process of making a simple blogging platform which I intend to release as an open source project. It is not designed to be a reusable app used by other Django. Instead, it is intended to be an all in one blogging solution for end users to install and use much like they do with something like Wordpress. There is one major problem though that I don't know the answer. As I am building the blogging platform, I am of course writing my templates to make sure that everything is working correctly. But a side issue with that is that the templates now contain phrases related to the website I intend to create when the blogging platform is at a reasonable stage of development. Now, when I open up the Git repository to the public, and people start using they are going to get the templates that I have already created. That will mean that they'll either need to go through them all individually (I doubt they will have heard of grep or similar tools) or just delete them all and start from scratch. What I would like to see is people release their styles that can then be customised based on my model, form, view architecture and then they can do what they want with the templates. As long as I document the variables used in the templates that shouldn't cause too many problems. In effect then I have two options. Distribute the code with my already existing templates or have a private repository with my templates and a public repository with no templates and documentation on how to create the templates and either make some styles myself or hope that someone else does. Ideally, I'd like it to work a little bit like Wordpress where you can install a style very easily I'm just not sure how to go about doing that. How would you go about this problem? I am both trying to make a blogging platform for my use while at the same time keeping it reasonably open so other people can use it as well. I'm probably missing something obvious here, but I'd appreciate some advice before I
Re: Dealing with templates in an open source Django project?
Hi Etienne, Thank you for your reply. I have to apologise because I think I am a bit stupid. I'm not sure what you mean. I think I might understand what you mean to a degree, but I'm not sure how to go about it. In effect, I should layout a basic template for general use and then create admin views which allow users to customise the specifics of the templates. Is that what you meant? If it is, then it is indeed an interesting idea I hadn't considered. I'm not entirely sure how I would go about doing that at the moment. I'd have to think. If you meant something else, then please let me know if I have misunderstood what you mean. Simon.On Sunday, 18 March 2018, 23:39:47 GMT, Etienne Robillard <tkad...@yandex.com> wrote: Hi Simon, I'll try to help you out with that. Have you considered using Django models to allow end users to create, edit and customize templates within the Django admin? This should be pretty easy to do. All you need is to define some models for your customized templates and then the user can configure the styling within the Django admin. HTH, Etienne Le 2018-03-18 à 18:21, 'Simon Connah' via Django users a écrit : Hi, First of all apologies for posting two messages to this list in a couple of days but I've just got back into Django after a rather long break, and it is taking me a little time to get back in the swing of things. I'm in the process of making a simple blogging platform which I intend to release as an open source project. It is not designed to be a reusable app used by other Django. Instead, it is intended to be an all in one blogging solution for end users to install and use much like they do with something like Wordpress. There is one major problem though that I don't know the answer. As I am building the blogging platform, I am of course writing my templates to make sure that everything is working correctly. But a side issue with that is that the templates now contain phrases related to the website I intend to create when the blogging platform is at a reasonable stage of development. Now, when I open up the Git repository to the public, and people start using they are going to get the templates that I have already created. That will mean that they'll either need to go through them all individually (I doubt they will have heard of grep or similar tools) or just delete them all and start from scratch. What I would like to see is people release their styles that can then be customised based on my model, form, view architecture and then they can do what they want with the templates. As long as I document the variables used in the templates that shouldn't cause too many problems. In effect then I have two options. Distribute the code with my already existing templates or have a private repository with my templates and a public repository with no templates and documentation on how to create the templates and either make some styles myself or hope that someone else does. Ideally, I'd like it to work a little bit like Wordpress where you can install a style very easily I'm just not sure how to go about doing that. How would you go about this problem? I am both trying to make a blogging platform for my use while at the same time keeping it reasonably open so other people can use it as well. I'm probably missing something obvious here, but I'd appreciate some advice before I get too far into the project so any changes that need to be made will be smaller. Thank you. Simon. -- 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-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1385218970.2358644.1521411671572%40mail.yahoo.com. For more options, visit https://groups.google.com/d/optout. -- Etienne Robillard tkad...@yandex.com https://www.isotopesoftware.ca/ -- 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-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/cda864be-eb13-57ba-b79b-6fb1c5be2c7f%40yandex.com. For more options, visit https://groups.google.com/d/optout. -- 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 djang
Dealing with templates in an open source Django project?
Hi, First of all apologies for posting two messages to this list in a couple of days but I've just got back into Django after a rather long break, and it is taking me a little time to get back in the swing of things. I'm in the process of making a simple blogging platform which I intend to release as an open source project. It is not designed to be a reusable app used by other Django. Instead, it is intended to be an all in one blogging solution for end users to install and use much like they do with something like Wordpress. There is one major problem though that I don't know the answer. As I am building the blogging platform, I am of course writing my templates to make sure that everything is working correctly. But a side issue with that is that the templates now contain phrases related to the website I intend to create when the blogging platform is at a reasonable stage of development. Now, when I open up the Git repository to the public, and people start using they are going to get the templates that I have already created. That will mean that they'll either need to go through them all individually (I doubt they will have heard of grep or similar tools) or just delete them all and start from scratch. What I would like to see is people release their styles that can then be customised based on my model, form, view architecture and then they can do what they want with the templates. As long as I document the variables used in the templates that shouldn't cause too many problems. In effect then I have two options. Distribute the code with my already existing templates or have a private repository with my templates and a public repository with no templates and documentation on how to create the templates and either make some styles myself or hope that someone else does. Ideally, I'd like it to work a little bit like Wordpress where you can install a style very easily I'm just not sure how to go about doing that. How would you go about this problem? I am both trying to make a blogging platform for my use while at the same time keeping it reasonably open so other people can use it as well. I'm probably missing something obvious here, but I'd appreciate some advice before I get too far into the project so any changes that need to be made will be smaller. Thank you. Simon. -- 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-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1385218970.2358644.1521411671572%40mail.yahoo.com. For more options, visit https://groups.google.com/d/optout.
Showing only current user in Django admin
I'm just making my first Django app in a very long time, and I have forgotten most of what I learnt. I'm using the built-in admin panel for ease of use, and it seems to be working well, with one exception. I have a BlogPost model with the usual things in it. One of the fields is a FK to the User object called Author. When I display that model in the admin panel, it shows a drop-down list where you can select which one of the currently registered users should be the author. What I'd rather happen is that it only shows the currently logged in user, with no option to choose a different user. On a slightly related noted I also have a CharField in the model and the admin centre this is displayed as a small HTML text field which isn't big enough (the CharField is max_length=512). I've done some Googling but can't find a reasonable way to easily change the admin panel widgets. Sorry if these questions are stupid. It has been a very long time since I last used Django and if memory serves, I never used the built-in admin panel at all. Thank you for any help. Simon. -- 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-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/817606181.2004362.1521280012565%40mail.yahoo.com. For more options, visit https://groups.google.com/d/optout.
Re: Some newbie questions on CBVs and FBVs
Hi, First of all thank you very much for the reply. It was very useful. I'll re-read the documentation and see what I was missing out on. The get_queryset() method was a very useful hint. That may well solve the issue I was having. Simon.On Friday, 24 November 2017, 06:20:35 GMT, Matemática A3K <matematica@gmail.com> wrote: On Thu, Nov 23, 2017 at 8:49 PM, 'Simon Connah' via Django users <django-users@googlegroups.com> wrote: Hi everyone, First of all sorry for the newbie questions it has been a long time since I used Django and I think I have forgotten just about everything I once knew. I'm working on a user app for a website. I can't use the built in user model as I need a little more flexibility and the ability to grow in the future if required. Basically I have three problems. 1) I need some views to be limited to the user who created the view. Users do no create Views, what you are meaning is the objects "created" by the user (or objects attributed or associated to the user if you want to be even more precise) For instance I have an UpdateUser view and I only want the currently logged in user to be able to change their own user model data. So say I have the username "djangouser" and I go to UpdateView the only row in the database that I can change on the database server is the one with the username "djangouser". I'm not sure what the best way to handle this problem is? Set the queryset attribute of the UpdateView to User.objects.filter(name=self.request.user) or override the get_queryset() method in the view:def get_queryset(self): base_qs = super(YourUpdateView, self).get_queryset() return base_qs.filter(user=self.request.user)https://stackoverflow.com/questions/8594759/django-updateview-restrict-per-user https://docs.djangoproject.com/en/1.11/ref/class-based-views/mixins-single-object/#django.views.generic.detail.SingleObjectMixin.get_queryset I could do it manually in a function based view without any problem but I find CBVs to be really hard to customise when you want to do something that they were not specifically designed to do. Overriding the queryset is a common pattern in CBV :) At that point I just end up writing a FBV instead and doing it all myself as it is quicker than trying to figure out all the mixins and all the methods of the class. I must be missing something simple with CBVs. Any help would be appreciated with this :). You should read the whole topic: https://docs.djangoproject.com/en/1.11/topics/class-based-views/intro/ and then read the reference:https://docs.djangoproject.com/en/1.11/ref/class-based-views/mixins/ 2) In FBVs you get passed a variable to the function with the URL conf variables, for instance: (path('/blah//', view, name='blah') would result in the FBV recieving a username parameter. Where are these variables stored when using a CBV? You should read the topic :) 3) Is it considered bad practice to use FBVs in Django? IMO, no :) I just find them so much easier and quicker to write. I know that CBVs result in less code duplication but I find I constantly need the Django docs open to see what each CBV supports and which methods it has available. Where as with FBVs I just write the code and everything works. CBV is a pattern, if you don't embrace it, it may get in your way :) Anyway, thank you for any help :). Simon. -- 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+unsubscribe@ googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/ group/django-users. To view this discussion on the web visit https://groups.google.com/d/ msgid/django-users/1609714478. 2477254.1511480996285%40mail. yahoo.com. For more options, visit https://groups.google.com/d/ optout. -- 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-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BFDnh%2BYZfaoRPAvZCeGr3L2uz6W%3DTgcVChAwJV%3DCmhC4Y9%2BQA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. -- 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-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-user
Some newbie questions on CBVs and FBVs
Hi everyone, First of all sorry for the newbie questions it has been a long time since I used Django and I think I have forgotten just about everything I once knew. I'm working on a user app for a website. I can't use the built in user model as I need a little more flexibility and the ability to grow in the future if required. Basically I have three problems. 1) I need some views to be limited to the user who created the view. For instance I have an UpdateUser view and I only want the currently logged in user to be able to change their own user model data. So say I have the username "djangouser" and I go to UpdateView the only row in the database that I can change on the database server is the one with the username "djangouser". I'm not sure what the best way to handle this problem is? I could do it manually in a function based view without any problem but I find CBVs to be really hard to customise when you want to do something that they were not specifically designed to do. At that point I just end up writing a FBV instead and doing it all myself as it is quicker than trying to figure out all the mixins and all the methods of the class. I must be missing something simple with CBVs. Any help would be appreciated with this :). 2) In FBVs you get passed a variable to the function with the URL conf variables, for instance: (path('/blah//', view, name='blah') would result in the FBV recieving a username parameter. Where are these variables stored when using a CBV? 3) Is it considered bad practice to use FBVs in Django? I just find them so much easier and quicker to write. I know that CBVs result in less code duplication but I find I constantly need the Django docs open to see what each CBV supports and which methods it has available. Where as with FBVs I just write the code and everything works. Anyway, thank you for any help :). Simon. -- 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-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1609714478.2477254.1511480996285%40mail.yahoo.com. For more options, visit https://groups.google.com/d/optout.
Re: Django field model for HTML parser?
The error message is pretty obvious. "You're using the staticfiles app without having set the STATIC_ROOT setting to a filesystem path." Set the STATIC_ROOT setting in settings.py. https://docs.djangoproject.com/en/1.11/ref/settings/#static-root On Saturday, 18 November 2017, 20:12:52 GMT, drone4fourwrote: Thank you, Jason. The WYSIWYG editor like ckeditor is precisely what I am looking for. I have set out to run ckeditor. I am following along with the instructions on how to install it. Inside my virtual environment I invoke pip install django-ckeditor. Then I add ckeditor to INSTALLED_APPS in settings.py. But then my shell is telling me that I have improperly configured static root in the files app even though my settings.py does include a line: STATIC_URL = '/static/' The installation doc linked to above does refer to the official Django doc on how to manage static files, which I find to be helpful but isn’t really very applicable to my particular situation because I do not have any image files that I am working with in my case at this point. When I run python3 dobbs_portal_blog/manage.py collectstatic, I get this error: $ python3 dobbs_portal_blog/manage.py collectstatic You have requested to collect static files at the destination location as specified in your settings. This will overwrite existing files! Are you sure you want to do this? Type 'yes' to continue, or 'no' to cancel: yes Traceback (most recent call last): File "dobbs_portal_blog/manage.py", line 22, in execute_from_command_line(sys.argv) File "/home/gnull/Dropbox/TECH/python/2017/django-experiment-with-nick/subgenius-blog-env/lib/python3.6/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line utility.execute() File "/home/gnull/Dropbox/TECH/python/2017/django-experiment-with-nick/subgenius-blog-env/lib/python3.6/site-packages/django/core/management/__init__.py", line 356, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/home/gnull/Dropbox/TECH/python/2017/django-experiment-with-nick/subgenius-blog-env/lib/python3.6/site-packages/django/core/management/base.py", line 283, in run_from_argv self.execute(*args, **cmd_options) File "/home/gnull/Dropbox/TECH/python/2017/django-experiment-with-nick/subgenius-blog-env/lib/python3.6/site-packages/django/core/management/base.py", line 330, in execute output = self.handle(*args, **options) File "/home/gnull/Dropbox/TECH/python/2017/django-experiment-with-nick/subgenius-blog-env/lib/python3.6/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 199, in handle collected = self.collect() File "/home/gnull/Dropbox/TECH/python/2017/django-experiment-with-nick/subgenius-blog-env/lib/python3.6/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 124, in collect handler(path, prefixed_path, storage) File "/home/gnull/Dropbox/TECH/python/2017/django-experiment-with-nick/subgenius-blog-env/lib/python3.6/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 354, in copy_file if not self.delete_file(path, prefixed_path, source_storage): File "/home/gnull/Dropbox/TECH/python/2017/django-experiment-with-nick/subgenius-blog-env/lib/python3.6/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 260, in delete_file if self.storage.exists(prefixed_path): File "/home/gnull/Dropbox/TECH/python/2017/django-experiment-with-nick/subgenius-blog-env/lib/python3.6/site-packages/django/core/files/storage.py", line 392, in exists return os.path.exists(self.path(name)) File "/home/gnull/Dropbox/TECH/python/2017/django-experiment-with-nick/subgenius-blog-env/lib/python3.6/site-packages/django/contrib/staticfiles/storage.py", line 50, in path raise ImproperlyConfigured("You're using the staticfiles app " django.core.exceptions.ImproperlyConfigured: You're using the staticfiles app without having set the STATIC_ROOT setting to a filesystem path. (subgenius-blog-env) gnull at gnosis in $ On Saturday, November 18, 2017 at 7:46:21 AM UTC-5, Jason wrote: What you're trying to look for is a WYSIWYG editor (What You See Is What You Get), and there are a number of third party packages you can look at https://djangopackages.org/ grids/g/wysiwyg/ ckeditor is one of the largest and most popular such projects, and has integration with django via https://github.com/django- ckeditor/django-ckeditor On Friday, November 17, 2017 at 9:21:57 PM UTC-5, drone4four wrote: I didn’t do a very good job explaining. Let me try again. If you take a look at this image of Blogger, the red arrow points to the formatting bar. The formatting is a helpful feature in Blogger which allows blog posters to add an essay worth of content, and then alter the appearance of the Lorem