Re: I want to know about how to implement elastic search in the python django

2019-10-02 Thread Sithembewena L. Dube
https://www.youtube.com/watch?v=cXYVE28igkE Kind regards, Sithembewena *Sent with Shift * On Wed, Oct 2, 2019 at 5:08 PM sachinbg sachin

Python and Django dev available

2019-08-01 Thread Sithembewena L. Dube
Hi everyone, I'm a developer with just over 10 years' experience under my belt. I've worked with many languages and frameworks, including the popular Django web framework. I'm currently in the market for remote opportunities. Please reply if looking for a resource. Serious enquiries only please.

Re: trying to use a variable inside a static content tag

2019-07-27 Thread Sithembewena L. Dube
Interesting. Kind regards, Lloyd *Sent with Shift * On Sat, Jul 27, 2019 at 11:25 PM Lyman Hurd wrote: > A helpful user in the Python #

Re: Sending Email from form

2019-06-30 Thread Sithembewena L. Dube
+ message + \ '"\n\nWe will respond as soon as possible.' +\ Kind regards, Lloyd *Sent with Shift <https://tryshift.com/?utm_source=SentWithShift&utm_campaign=Sent%20with%20Shift%20Signature&utm_medium=Email%20Signature&utm_content=General%20Email%20Group>* On Sat

Re: Sending Email from form

2019-06-29 Thread Sithembewena L. Dube
check it out and update shortly. > > Sent from my iPhone > > On 29 Jun 2019, at 2:27 AM, Sithembewena L. Dube > wrote: > > I just finished a project where I did the same thing you require. > > I used the Mailgun API. > > The relevant documentation can be found here: > >

Re: linking three models??

2019-06-29 Thread Sithembewena L. Dube
I am not sure I understand what you wish to do. What output would you need? An unrelated tip: in Python the convention is to use lowercase names for variables and functions (words separated by underscores). It makes the code more readable to the vast majority of Python developers, or at least tho

Re: Sending Email from form

2019-06-28 Thread Sithembewena L. Dube
I just finished a project where I did the same thing you require. I used the Mailgun API. The relevant documentation can be found here: https://documentation.mailgun.com/en/latest/user_manual.html#sending-via-api Kind regards, Lloyd *Sent with Shift

Re: Heroku and DJango_Filters

2019-06-27 Thread Sithembewena L. Dube
.com/epiccharterschools> <https://twitter.com/epiccharter> > <https://www.instagram.com/epiccharterschools/> > <https://www.youtube.com/user/EpicCharterSchools> > > > > > On Wed, Jun 26, 2019 at 6:09 PM Sithembewena L. Dube > wrote:

Re: Heroku and DJango_Filters

2019-06-26 Thread Sithembewena L. Dube
thon manage.py collectstatic > --noinput'. > remote: See traceback above for details. > remote: > remote:You may need to update application code to resolve this > error. > remote:Or, you can disable collectstatic for this application: > remote: > rem

Re: Heroku and DJango_Filters

2019-06-26 Thread Sithembewena L. Dube
Charlotte, I am now typing from my phone (away from my desk) but if you still need help after trying out my last recommendation, I would be happy to look at it for you. Kind regards, Lloyd On Wed, Jun 26, 2019, 17:59 Charlotte Wood < charlotte.w...@epiccharterschools.org> wrote: > I need help.

Re: Heroku and DJango_Filters

2019-06-26 Thread Sithembewena L. Dube
.. >>>> >>>> >>>> >>>> >>>> Charlotte Wood, MEd >>>> >>>> Educator >>>> >>>> (405) 578-5701 >>>> >>>> Zoom Meeting ID#: 4055785701 >>>> >>>

Re: Heroku and DJango_Filters

2019-06-26 Thread Sithembewena L. Dube
t;>> >>> Charlotte Wood, MEd >>> >>> Educator >>> >>> (405) 578-5701 >>> >>> Zoom Meeting ID#: 4055785701 >>> >>> *Zoom URL:* https://epiccharterschools.zoom.us/j/2970513912 >>> >>> Classroom Googl

Re: Heroku and DJango_Filters

2019-06-26 Thread Sithembewena L. Dube
ites.google.com/epiccharterschools.org/charlottewoodclassroom/home > > Epic Technical Support: (405) 652-0935 > > > > Jordan McKesson Principal > > 405-749-4550 ext. 309 > > jordan.mckes...@epiccharterschools.org > > <http://facebook.com/epiccharterschools&g

Re: Heroku and DJango_Filters

2019-06-26 Thread Sithembewena L. Dube
Oops - I meant 'such as'. Kind regards, Lloyd *Sent with Shift <https://tryshift.com/?utm_source=SentWithShift&utm_campaign=Sent%20with%20Shift%20Signature&utm_medium=Email%20Signature&utm_content=General%20Email%20Group>* On Wed, Jun 26, 2019 at 7:06 PM Sithem

Re: Heroku and DJango_Filters

2019-06-26 Thread Sithembewena L. Dube
cebook.com/epiccharterschools> <https://twitter.com/epiccharter> > <https://www.instagram.com/epiccharterschools/> > <https://www.youtube.com/user/EpicCharterSchools> > > > > > On Wed, Jun 26, 2019 at 11:13 AM Sithembewena L. Dube > wrote: > >> Hi Cha

Re: Heroku and DJango_Filters

2019-06-26 Thread Sithembewena L. Dube
Hi Charlotte, What sort of error do you see? Also, have your checked your logs on Heroku? Lastly, if you have a sandbox on Heroku, you could run the site there in debug mode to get more specific error information. Kind regards, Lloyd *Sent with Shift

Freelance Django developer

2019-06-20 Thread Sithembewena L. Dube
I have capacity to take on some freelance Django work. Message me for help with your Django web apps and APIs. I accept remote work only. Kind regards, Lloyd *Sent with Shift

Re: DateInput not accepting format argument

2019-06-10 Thread Sithembewena L. Dube
Thanks @Joe. I had been trying to avoid using a third party app if I could help it. I ended up using the default Django DateTime widget as-is. Will try out your recommendation if the need arises. Kind regards, Lloyd *Sent with Shift

Re: Form with CheckBoxSelectMultiple not validating

2019-06-10 Thread Sithembewena L. Dube
Thanks for responding @Joe. I had figured out what the issue was. I ended up with: ``` tour_options = forms.MultipleChoiceField( label='Select tour activities', choices=settings.TOUR_OPTIONS, widget=forms.CheckboxSelectMultiple() ) ``` Kind regards, Lloyd *Sent with Shift

Form with CheckBoxSelectMultiple not validating

2019-06-07 Thread Sithembewena L. Dube
I have a form with a CheckBoxSelectMultiple widget. When I select choices and submit the form, `is_valid()` returns False. What could be the cause? Kind regards, Lloyd *Sent with Shift

DateInput not accepting format argument

2019-06-07 Thread Sithembewena L. Dube
Hi, I have a form with a start_date field of type DateField (widget is DateInput). When I specify a format argument, the input does not render as specified. The format is always -MM-DD. My code is as follows: ``` start_date = forms.DateField( label='Start date', widget=forms.widgets.DateInpu

Re: Django How to write Customized Query ( Display Information Departmentwise)

2019-04-20 Thread Sithembewena L. Dube
Your model fields are not cased correctly. https://stackoverflow.com/questions/8908760/should-i-use-camel-case-or-underscores-in-python Kind regards, Sithu *Sent with Shift

Re: Advanced permissions and role creation

2019-04-20 Thread Sithembewena L. Dube
For roles and permissions management, I would stick with Django's Auth application (django.contrib.auth). It sounds like you ought to read up on how to design and build a multi-tenancy SaaS project in Django. I cannot recommend any one resource, so you'll have to do some searching and see what fit

Re: Unhashable TypeError when deleted from model, Django 2.2

2019-04-17 Thread Sithembewena L. Dube
help in that regard. > > But I think this error has something to do with Django’s delete method. > The filtering aspect works just fine. > > > > *From:* django-users@googlegroups.com [mailto: > django-users@googlegroups.com] *On Behalf Of *Sithembewena L. Dube > *Sent:* Tuesday,

Re: Unhashable TypeError when deleted from model, Django 2.2

2019-04-16 Thread Sithembewena L. Dube
Why not use a boolean field on the model to denote expires? Then if that field is True, delete the object? I think that would be cheaper and cleaner, especially with lookups. Kind regards, Sithu *Sent with Shift

Re: How to run ORM commands from DOM Javascript?

2019-04-15 Thread Sithembewena L. Dube
You cannot run Django's Python code in JavaScript in a browser. The advice you have been given applies. Kind regards, Sithu *Sent with Shift

Re: Changing Admin Interface in Django

2019-04-11 Thread Sithembewena L. Dube
If you want to alter how the admin site looks, then that link is quite relevant. Kind regards, Sithu *Sent with Shift * On Thu, Apr 11, 2

Re: Changing Admin Interface in Django

2019-04-11 Thread Sithembewena L. Dube
What do you want to do? Saying you want to "change" the admin could mean anything. Kind regards, Sithu *Sent with Shift * On Thu, Apr 11,

Re: Changing Admin Interface in Django

2019-04-11 Thread Sithembewena L. Dube
I highly recommend the (excellent) documentation. If you have done the official tutorial, then check out the link below and take it from there. https://docs.djangoproject.com/en/2.2/intro/tutorial07/ Kind regards, Sithu *Sent with Shift

Re: Generic display views / DetailView

2019-04-09 Thread Sithembewena L. Dube
The slug must be descriptive of the record. It is often derived from a value such as a blog title. A good slug is useful for SEO purposes as it can contain descriptive keywords. I just sent more reading on slugs from the official Django docs. Kind regards, Sithu *Sent with Shift

Re: Generic display views / DetailView

2019-04-09 Thread Sithembewena L. Dube
The slug would be the part of the url that points to a specific blog entry or article. https://docs.djangoproject.com/en/2.2/glossary/#term-slug https://docs.djangoproject.com/en/2.2/ref/models/fields/#django.db.models.SlugField Kind regards, Sithu *Sent with Shift

Re: How is the best way to separate costumers on my django site?

2019-04-04 Thread Sithembewena L. Dube
Hi https://www.codementor.io/pauloscardine/15-minute-guide-to-secure-saas-multitenancy-with-django-and-let-s-encrypt-ijtlarca8 https://blog.usejournal.com/building-a-saas-application-with-django-web-framework-part-1-2-the-principe-2f0730a6693f Kind regards, Sithembewena *Sent with Shift

Re: Django module view has no attribute?

2019-04-02 Thread Sithembewena L. Dube
@drone4four I meant the main URLconf, not "maul". Kind regards, Sithembewena *Sent with Shift * On Wed, Apr 3, 2019 at 3:36 AM drone4four

Re: Django module view has no attribute?

2019-04-02 Thread Sithembewena L. Dube
There was also a typo in my response, as I wasn't using the aliased imports in the calls to `path`. Also, the single letters were just an illustration (clear variable naming is key). Also, I would not import any app's views in the maul URLconf. This kind of defeats Django's "plug and play" applica

Re: Django module view has no attribute?

2019-04-01 Thread Sithembewena L. Dube
I don't know the contents of the course you are taking, but it looks like the last import of views, which is "from counters import views" is overriding all the others and in it you have not defined a "posts" view. 1. You could solve this by aliasing your imports, e.g.: ``` from django.contrib impo

Re: Installation Question

2019-03-28 Thread Sithembewena L. Dube
Can you paste the command you are running? Kind regards, Sithembewena *Sent with Shift * On Thu, Mar 28, 2019 at 6:31 PM Michael Achterbe

Re: on_delete not getting called when ForeignKey is a property

2019-03-14 Thread Sithembewena L. Dube
There is nothing wrong with having logic in models. This is the principle of object orientation - encapsulating methods and properties in a class definition to group related behaviours and attributes of a specified type of entity. See the section titled "Make ‘em Fat" here: https://django-best-pr

Re: Missing manage.py & settings.py

2019-03-08 Thread Sithembewena L. Dube
Understand the difference between a project and an app. See "Projects vs. apps" at the following link (correct for current version). https://docs.djangoproject.com/en/2.1/intro/tutorial01/ Kind regards, Sithembewena *Sent with Shift

Re: django vue javascript integration

2019-03-01 Thread Sithembewena L. Dube
The issue here appears to be that OP's browser cannot load the .js file as specified in the resource path. I would agree with Wira about checking what the path is and ensuring that the .js file is in the correct location. Kind regards, Sithembewena *Sent with Shift