Re: Bootstrap drop down menu not clickable.

2020-05-16 Thread Simon A
did > other bootstrap features worked well except for the dropdown? > > On Sat, May 16, 2020, 3:51 PM sunday honesty > wrote: > >> All right >> >> On Sat, May 16, 2020, 3:49 PM Simon A wrote: >> >>> Try to run the pip install command if you haven

Re: Bootstrap drop down menu not clickable.

2020-05-16 Thread Simon A
Try to run the pip install command if you havent already. Check the correct command to install bootstrap3 or 4 if forgot the complete package name. On Sat, May 16, 2020, 22:45 sunday honesty wrote: > I included it to installed app and got an error message on the console. > "Module not found, no

Re: Bootstrap drop down menu not clickable.

2020-05-16 Thread Simon A
Is it in you installed apps? On Sat, May 16, 2020, 22:04 sunday honesty wrote: > I did that and got a TemplateSyntaxError stating that bootstrap4 is not a > registered tag library > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Django users" group

Bootstrap drop down menu not clickable.

2020-05-16 Thread Simon A
Try to include the dependencies inside the block content. Here is what I did {% block content %} {% load bootstrap3 %} {% bootstrap_css %} {% bootstrap_javascript %} -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this g

Re: Job board app based in django

2019-06-21 Thread Simon A
Oh really? Yeah I guess it wont be too bad if I create one. On Fri, Jun 21, 2019 at 6:56 PM Omar Abou Mrad wrote: > There are problem N clones of job boards built with django, this shouldn't > affect your decision to create one. > > On Fri, Jun 21, 2019 at 10:59 AM Simon A wro

Re: How to store a bank account number generated into a model field

2019-06-21 Thread Simon A
I think the except block won't trigger since if the code Profile.objects.get(user=request.user) does not get any results, it will return a null result, not throw exception. instead of exception handling, just check if the return value is null or not -- You received this message because you are

Re: [Urgent] 500 when requesting a file from browser.

2019-06-21 Thread Simon A
On the last part of your stacktrace, there is a section File "/usr/lib/python3.6/wsgiref/simple_server.py", line 35, in close self.status.split(' ',1)[0], self.bytes_sent could you please check this line out? you can try to print what is *self.status *to check what it is trying to split

Job board app based in django

2019-06-21 Thread Simon A
hey guys, I would like to develop a job board app based in django. I was wondering if there is already an available job board app based in django like jobberbase. There is a jobberbase clone made from django but its version too old already. thank you, Simon -- You received this message becau

Re: Filtering Data Based On Foreign Key

2019-05-23 Thread Simon A
Have you tried putting the load_price() code inside the init code? like def __init__(self, *args, **kwargs): super(PlayerRegistrationForm, self).__init__(*args, **kwargs) self.fields['club_id'].widget = forms.HiddenInput() membership = request.GET.get('membership_title')

Re: some random problem

2019-05-23 Thread Simon A
share the code here. I know django devs are lazy but don't be this lazy. On Wednesday, May 22, 2019 at 8:07:08 PM UTC+8, Soumen Khatua wrote: > > Hi Folks, > > I'm getting len(cart) is 0 and after iterate *item is not coming from > cart* in this project,plese tell me where is my problem. > I'm sh

Re: Dealing with global or session objects

2019-05-23 Thread Simon A
Hello fellow Java user, If I would do it, I'd setup a model to store those configurations. Then on the app, upon login or upon loading the initial page of the app, I will perform the operation to retrieve the details from the database, and then dump to the django sessions object. # get operati

Re: How to deploy migrations to production

2019-04-02 Thread Simon A
server. > > Take a look at > https://github.com/speedy-net/speedy-net/blob/master/contrib/deploy.sh > אורי > u...@speedy.net > > > On Tue, Apr 2, 2019 at 3:51 PM Simon A > > wrote: > >> There is a workflow section in the migration page from the django pr

Re: How to deploy migrations to production

2019-04-02 Thread Simon A
Ah I see. Thank you Jani for clearing that up. -- 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,

How to deploy migrations to production

2019-04-02 Thread Simon A
There is a workflow section in the migration page from the django project documentation. But there are somethings I am confused about, It says that the migrations need to be created in the non production environment and then checked in to the repository along with the changes in models.py. My

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: Working with pk arguments within an included URL

2019-02-18 Thread Simon A
or an example that > would help me as I’m relatively new to Django and this has been holding me > back months now. > > Thanks > > Gavin > > On Mon, 18 Feb 2019 at 04:11, Simon A wrote: > >> I think I had a similar scenario a few weeks ago. One option that you >

Re: REG: Why my django email settings not sending email notifications?

2019-02-17 Thread Simon A
Just to add, please try to create a python file with the simplest implementation of send mail just to check if it actually works. On Monday, February 18, 2019 at 11:43:22 AM UTC+8, Sid wrote: > > can you check if you your email server is somehow blocking your emails? > Have you enabled your deb

Re: Working with pk arguments within an included URL

2019-02-17 Thread Simon A
I think I had a similar scenario a few weeks ago. One option that you have is to store the originally selected PK to the session object. Whenever you load a page, for you can retrieve the PK from the session object. Most likely you'll do this on the get_queryset function On Sunday, February 17,

Re: Is there a package for user-tagging and user-properties?

2019-02-14 Thread Simon A
This might not be a package but django allows to extend the User object via a one to one relationship. Once extended, you can add as many fields as you like. It will be better though if this will happen at the start of the project. Using this method at the middle of the project might cause a lot

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

2019-02-11 Thread Simon A
Yes that's very true. I guess I acquired a phobia for diving into the source code because of my first programming language (J**A) because it felt like I was reading cryptic stuff. But not with Python. On Monday, February 11, 2019 at 9:08:35 PM UTC+8, Jason wrote: > > Sometimes going through the

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

2019-02-10 Thread Simon A
Hi Jason, Thank you for your response, really appreciate the help. I was working on your suggestion but then stumbled across django-password-validators which seems to do the required task for me. For now I will go with this one. But I will surely include the github for django when learning thi

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

2019-02-10 Thread Simon A
7;m not trying to be spoon fed here but just a bit lost. Any feedback would be appreciated. Thank you, Simon On Sunday, February 10, 2019 at 6:28:10 AM UTC+8, Simon A wrote: > > @Jason, yes I believe I do need to research further when that action > happens. the point where the password is

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

2019-02-09 Thread Simon A
@Jason, yes I believe I do need to research further when that action happens. the point where the password is hashed and stored in the User table. I'll continue to work on it. @James, currently the requirements are non debatable for us developers in the company. The security team implemented the g

Password Policy Adherence. Cannot use the passwords used before

2019-02-07 Thread Simon A
Hello, I'm trying to make my django app follow this policy, that the user cannot user his/her last 6 passwords that were already used before. I tried using the django-password-policies library but I'm getting a lot of errors. I think it's not compatible anymore with the current version of djan

Re: function get_form_kwargs() not being called

2018-12-14 Thread Simon A
And it really is that. I had to follow the steps required by vanilla migration procedure to make it work like I want it to. On Friday, December 14, 2018 at 11:11:07 PM UTC+8, Simon A wrote: > > Oh shoot, I think I know now why this isn't working for me. > > It is because I&#x

Re: function get_form_kwargs() not being called

2018-12-14 Thread Simon A
Oh shoot, I think I know now why this isn't working for me. It is because I'm using vanilla for my views. I'll continue to test. On Friday, December 14, 2018 at 8:34:15 PM UTC+8, Simon A wrote: > > Just to add, I used a django-crud cookie cutter to generate codes fo

Re: function get_form_kwargs() not being called

2018-12-14 Thread Simon A
Just to add, I used a django-crud cookie cutter to generate codes for CRUD On Monday, December 10, 2018 at 8:47:28 PM UTC+8, Simon A wrote: > > I'm trying to pass a parameter from a redirect to the CreateView and to > the form. > > I have no problem retrieving the value from

Re: function get_form_kwargs() not being called

2018-12-12 Thread Simon A
ith the same name? > > Especially since you do have other class-based views, you must know what > you’re doing. > > > > *From:* django...@googlegroups.com [mailto: > django...@googlegroups.com ] *On Behalf Of *Simon A > *Sent:* Tuesday, December 11, 2018 10:32 PM > *T

Re: function get_form_kwargs() not being called

2018-12-11 Thread Simon A
e class based. On Monday, December 10, 2018 at 8:47:28 PM UTC+8, Simon A wrote: > > I'm trying to pass a parameter from a redirect to the CreateView and to > the form. > > I have no problem retrieving the value from the redirect to the CreateView. > > But my issue

Re: How to transfer django projects from one pc to another

2018-12-10 Thread Simon A
if you are really lazy, you can just zip your whole project. then transfer to another machine. I transfer my projects from work (using windows) to home (using ubuntu) then vice versa. I only had to manually install the necessary packages will be notified to you when you need to get them install

function get_form_kwargs() not being called

2018-12-10 Thread Simon A
I'm trying to pass a parameter from a redirect to the CreateView and to the form. I have no problem retrieving the value from the redirect to the CreateView. But my issue is when trying get the value to the form. I'm overriding get_form_kwargs function of my CreateView but when I try to do o