Re: How to add object to users unique list?

2022-03-14 Thread Joel Tanko
What do you mean by click of a button? Are you using Ajax or a frontend framework? You most likely aren't handling the post request on the view that's supposed to add the anime to the user's list On Tue, Mar 1, 2022, 10:20 AM raf sandwich Hi Antonis, > > Yes I saw that stackoverflow post also,

Re: Django, Docker & SaaS Multi-Tenant Architecture

2022-03-14 Thread Joel Tanko
This is a micro service issue, you should use webhooks to notify your main Django app with the one you're building, that way you'll know when something happens and can handle that event. On Sun, Mar 6, 2022, 4:24 PM 炉边史话 great job! > > 在2022年1月15日星期六 UTC+8 00:56:12 写道: > >> >> A official discord

Re: How to create dynamic models in django??

2022-03-14 Thread Joel Tanko
If I understand correctly you're trying to give the user the power to create tables from the front end by saving his params to the database and using that data to create a table in another or the same database, I tried doing the same with forms here's a tweak, hope it's what you're looking for or

Re: Allow scroll on jQuery fancy Table

2021-12-30 Thread Joel Tanko
A simple tweak I would use is to find the elements id using DEV tools and set the element{ overflow: auto } using css On Wed, Dec 8, 2021, 1:10 PM Eugene TUYIZERE wrote: > Dear Team, > > I am using jquery fancyTable in the django app but I searched everywhere > and I did not find how to allow t

Re: Not sure if I am doing django-paypal correctly

2021-12-30 Thread Joel Tanko
The code is really simple to implement, but I don't think the explanation was intuitive enough. You would need to create a signal like so #hooks.py from django.dispatch import Signal success_signal = Signal(providing_args=[]) #views.py from .hooks import success_signal ... # after payment succ

Re: Automatic subdomain for each user

2021-12-30 Thread Joel Tanko
Check out the django-hosts package, the docs are pretty explanatory and easy to use. You'd also want to add '.yourdomain' to the allowed_hosts list and it doesn't work with '127.0.0.1' as its harder for if to figure out the sub-domain, if you want to use it on your development server use localhost,

Re: Authentication with Multiple User

2021-07-06 Thread Joel Tanko
If what you're trying to do is have two types of user accounts, then you'd have to create a base user model and have personal and business inherit from it - and it being a subclass of AbstractBaseUser class BaseAccount(AbstractBaseUser): … # all public fields class PersonalAccount(BaseAcc

Multiprocessing using python shows error “I/O operation on closed file”

2021-06-01 Thread Joel Tanko
For someone new to programming, that's a bit complicated for you don't you think? Your problem lies in your "with" block with open('CONFIG.csv') as f: reader = csv.reader(f) return [col for row in reader for col in row] 1. You can only return once and then the function is exited, even

In immediate help of a long time pending request, kindly help.

2021-06-01 Thread Joel Tanko
If you want to show the items relative to the currently logged in user, try adding this option => limit_choices_to={'user' : 'user'}, to your items field in models.py On Tuesday, 1 June 2021, Aritra Ray wrote: > Right, thank you so much. > > Regards. > > On Tue, 1 Jun, 2021, 8:27 pm oba stephe

Re: How Choose Random User from database ?

2021-04-19 Thread Joel Tanko
if you already have a table with some rows in it, writing a random function would work just fine. # as an example from random import randint def select_random_user(): all_users = User.objects.all() selected = list(all_users)[randint(0, all_users.count())] return selected On Tue, 20 Ap

Extending with plugins remotely -at least from a frontend

2021-04-07 Thread Joel Tanko
Hi guys I have a question just one, but it houses a myriad of smaller questions for clarity. So I'm building a django app that creates virtual organizations, I'm planning on hosting with digitalocean for reasons. My app just creates a droplet and host a site ( already done that) Now I want my use

Using django cms in a model instance scenario rather than the whole site

2021-01-15 Thread Joel Tanko
Hey guys, So I have this django project that works similar to shopify(only on a smaller scale) that allows local businesses to open and manage their online stores - made possible by the django app. I decided it would be a good idea to let the store owners (or merchants) send emails from their admin

Re:REQUEST FOR GUIDES IN MY DJANGO CRYPTO EXCHANGE PROJECT

2021-01-15 Thread Joel Tanko
Still need help? Email me @ 7thog...@gmail.com On 13 Jan 2021 3:03 pm, "yingi keme" wrote: > Send a mail to yingik...@gmail.com. From your name I know you are Ijaw. I > am too. > > I can address all or most of your issues. > > > Original Message > Subject: REQUEST FOR GUIDES IN

Stack Overflow Question

2021-01-09 Thread Joel Tanko
Hey, guys any ideas on how to get about this? Django CMS in Django https://stackoverflow.com/q/65645573/12957767?sem=2 -- 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 ema

Re: Redirect one page to another on Django tremplate

2021-01-09 Thread Joel Tanko
You can try using the javascript window.locqtion.href('redirect-url') On 7 Jan 2021 10:07 pm, "pankaj palmate" wrote: > can you elaborate it more means are you taking about Response? > > > On Thursday, January 7, 2021 at 10:48:33 PM UTC+5:30 amanmo...@gmail.com > wrote: > >> Hello Django Lover,

Re: Ongoing project

2020-12-20 Thread Joel Tanko
I am interested. I'm Joel from Nigeria On 20 Dec 2020 12:53 am, "Oyedele Yusuff" wrote: > I'm interested > > On Thu, 17 Dec 2020 12:42 pm Peter Kirieny, > wrote: > >> Hello team >> I have a project in django >> (developing an ecommerce website with some innovations) >> >> Using pycharm and pyth