Re: permissions mapping

2021-09-07 Thread MUGOYA DIHFAHSIH
Hello Enoch.

Have you considered using permissions on this, i think it is the best way
to implement this functionality.

You implement this on the views by checking if the user is authorized to
access the view in this case the edit function.

On Tue, 7 Sept 2021 at 16:12, Ssentumbwe Enoch 
wrote:

> I want to design a factory management application but I need some guidance
> roles permissions.
> I want to divide the floor into sections whereby a supervisor in section A
> can review and edit section A's functions without having rights to edit
> section B's functions. He or she can view section B but not edit or delete
> anything there.
>
> In a section A, the operators will add but not delete or edit the reports
> in section A.
>
> It is like a tree of functions.
>
> --
> 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/8a2e2746-5945-42e9-99a0-3da7c6a0e323n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/8a2e2746-5945-42e9-99a0-3da7c6a0e323n%40googlegroups.com?utm_medium=email_source=footer>
> .
>


-- 
Mugoya Dihfahsih
Software Engineer
Kampala, Uganda
Whatsapp: +256 751612792
Profile: *dihfahsih1.github.io/
<http://dihfahsih1.github.io/profile>profile*

-- 
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/CAP%3DJD9xu9yDvPAHZkw9yriwxmJq5-a_Y3mGYgO-fOGgOMGTZrw%40mail.gmail.com.


Re: Need to volunteer in Django project-as a beginner

2021-08-31 Thread MUGOYA DIHFAHSIH
did you get volunteers already on your project?

On Mon, 30 Aug 2021 at 11:13, FLAVIEN HERI  wrote:

> hello guys i would like to volunteer in some project.
> i'm  currently a beginner in django. having knowledge on:
> - template inheritance,
> -creating form,
> -managing with views, url,
> -django model
> this is my whatsapp number: +243815357825
> Regards
>
> --
> 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/CAG3GEnyi985Q%3DO3xuS-dFuA_4zh%3DNdHJTazNBfXK_hQvjhBV4Q%40mail.gmail.com
> .
>


-- 
Mugoya Dihfahsih
Software Engineer
Kampala, Uganda
Whatsapp: +256 751612792
Profile: *dihfahsih1.github.io/
<http://dihfahsih1.github.io/profile>profile*

-- 
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/CAP%3DJD9x_8-1DF-GFK7Cp-vfUHsTTLb3u5sEAND5iny031zU37g%40mail.gmail.com.


Re: Run Any Python Project

2021-08-23 Thread MUGOYA DIHFAHSIH
but i think the error is so clear, there is no module named gettext_noop so
you need to first install it

On Sun, 22 Aug 2021 at 00:25, Kasper Laudrup  wrote:

> On 20/08/2021 15.08, Rana Zain wrote:
> > Hi,
> > Can anybody help me to know how we can run any python project from Git
> > and any other sources.
> >
>
> https://wiki.python.org/moin/BeginnersGuide
>
> --
> 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/a55ddcee-0da8-c193-0d0b-8b187585cbec%40stacktrace.dk
> .
>


-- 
Mugoya Dihfahsih
Software Engineer
Kampala, Uganda
Whatsapp: +256 751612792
Profile: *dihfahsih1.github.io/
<http://dihfahsih1.github.io/profile>profile*

-- 
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/CAP%3DJD9y%3DcYs2Yx9LC5chBZ%3DTwZO%2Bf-quTRk-T5OX0TDug3%3DhoQ%40mail.gmail.com.


Re: setingup and starting a Django server

2021-04-14 Thread MUGOYA DIHFAHSIH
mukumbuta, you are welcome to a thrilling world of django

On Thu, 15 Apr 2021 at 08:12, damanjeet kaur 
wrote:

> Can you share details to setup Django Server
>
> On Thu, Apr 15, 2021 at 12:26 AM Mukumbuta Simasiku <
> mukumbutasimas...@gmail.com> wrote:
>
>> Hey everyone.
>> I've just setup my first Django server, it worked ad I ended up here.
>> I'm super excited
>>
>> --
>> 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/23fc3219-a5c0-420e-aedd-b0cdd0224e23n%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/23fc3219-a5c0-420e-aedd-b0cdd0224e23n%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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/CAJTCr6HPhRP%3DxZO%2BNbdVMMmC1FMqMqs5OeBfNdDTHF%3D4qyPC8A%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAJTCr6HPhRP%3DxZO%2BNbdVMMmC1FMqMqs5OeBfNdDTHF%3D4qyPC8A%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
Mugoya Dihfahsih
Software Engineer
Kampala, Uganda
Whatsapp: +256 751612792
Profile: *dihfahsih1.github.io/
<http://dihfahsih1.github.io/Mugoya-Dihfahsih-Bio>profile*

-- 
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/CAP%3DJD9z53O5jeWqN%3DBeo-21McF3_9xD6kY7vJbcUFmZ96D5tPg%40mail.gmail.com.


Re: Best and affordable payment gateway for shopping carts

2021-03-24 Thread MUGOYA DIHFAHSIH
In my current project i implemented Cash On Delivery method, I hope it
would be also suitable for your project too.

On Tue, 23 Mar 2021 at 20:42, JC Briar  wrote:

> Stripe.com
>
> On Tuesday, March 23, 2021 at 6:00:58 AM UTC-7 ram.mu...@gmail.com wrote:
>
>> Hi,
>>
>> We are exploring best payment gateway for a Django based web and mobile
>> application. Our criteria for choosing this payment gateway is like  this:
>>
>> 1. Looking for either affordable or free option
>>
>> 2. Suitable for users in North America
>>
>> 3. Support all type of credit cards
>>
>> 4. Compatible for Django web an mobile application
>>
>> If anyone has already implemented for Django applications could you share
>> you suggestions?
>>
>> Best Regards,
>> ~Ram
>>
>>
>> --
> 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/31d10a80-394a-450b-a127-4798adde357dn%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/31d10a80-394a-450b-a127-4798adde357dn%40googlegroups.com?utm_medium=email_source=footer>
> .
>


-- 
Mugoya Dihfahsih
Software Engineer
RCS Consult
Kampala, Uganda
M: +256 751612792 I +256 779839581
E: i...@rcsconsult.net 
W: www.rcsconsult.net

-- 
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/CAP%3DJD9yh%3DsNejxi7ZkEg-HoWbdz2Dan5uew%3D4%3DQd_7%2BOGeoqZg%40mail.gmail.com.


Re: Payments

2021-02-11 Thread MUGOYA DIHFAHSIH
idealy i want to use visa, ineed help on how to integrate it into the
payment module. Thanks... but MPESA is from mobile phone to another phone
transaction(mobile money).

On Thu, 11 Feb 2021 at 19:21, o1bigtenor  wrote:

> On Thu, Feb 11, 2021 at 8:12 AM Joseph Mulingwa Kithome
>  wrote:
> >
> > MPESA ,VISA,PAYPAL
>
> What is MPESA?
>
> --
> 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/CAPpdf58NjEfLrFMEQPsK4L8hjT0sk7HYAd8%3DWApEUrByAWuAog%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/CAP%3DJD9zpmP3hG1RHWzaZxkXK1pZUmzdxgHbR7xx53LTU1RdW9w%40mail.gmail.com.


Payments

2021-02-11 Thread MUGOYA DIHFAHSIH
Hey djangonistas,
Currently i have implemented an ecommerce site using the django-oscar
package and everything is working perfectly.

I want to include a payment module using the visa powered card option, i
would have gone with paypal but it is not supported in my country.

Am requesting for any suggestions and recommendations.

-- 
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/CAP%3DJD9yptPCA%3DHacXtqu6YUvrUi2WM2FKw62b7FZJB1VmSYozw%40mail.gmail.com.


Periodic Execution of django functions or tasks

2020-10-19 Thread MUGOYA DIHFAHSIH
Hello fellow django developers, i am working on a web app in which reports
are archived in the database at the end of every month automatically, i
have searched on internet and many folks are suggesting celery which i have
tried but not fruitful, is there any other library i use to accomplish this.

am using Python 3.8, django 2.2.8 and ubuntu

-- 
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/CAP%3DJD9wJGPFZaCJOefqzt48nqb%3DNbZNXoTtdLv5EzX%2BoUM880Q%40mail.gmail.com.


Re: Static files not work

2020-10-02 Thread MUGOYA DIHFAHSIH
To become an expert in django is very simple, practice django documentation
regularly as you work on real projects

On Thu, Oct 1, 2020, 16:10 waqar khan  wrote:

> Thank you bro.
> I am fresher ,
> How to expert django framework any tips ..
>
> On Thu, Oct 1, 2020 at 5:58 PM MUGOYA DIHFAHSIH 
> wrote:
>
>> instead of loading staticfiles you use {{ load static}}
>>
>> On Thu, 1 Oct 2020 at 15:23, kkwaq...@gmail.com 
>> wrote:
>>
>>> *Error*
>>>
>>> *[image: 1.jpg]*
>>>
>>> *Error line number 2*
>>>
>>> *[image: 2.jpg]*
>>>
>>>
>>> *settingspy*
>>>
>>> *[image: 3.jpg]*
>>>
>>> *html file*
>>>
>>> *[image: 4.jpg]*
>>>
>>> --
>>> 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/35152588-7c0e-44e3-b7bc-fc48bfa81b37n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/35152588-7c0e-44e3-b7bc-fc48bfa81b37n%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
>> 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/CAP%3DJD9yG%3DkcarU-dUCCQZh-%3DS9empaEqRj7EY3huivCWmcXM-Q%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAP%3DJD9yG%3DkcarU-dUCCQZh-%3DS9empaEqRj7EY3huivCWmcXM-Q%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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/CA%2B08CAO71_9LCsrQH%2BSuhLwEynsibVjOCrJrN3VJY3qa%3DNH8sQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CA%2B08CAO71_9LCsrQH%2BSuhLwEynsibVjOCrJrN3VJY3qa%3DNH8sQ%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAP%3DJD9zdiP6C9qs3KeqC-TQs2mvFr8_CH7y-ASaOvmZUbLY7cA%40mail.gmail.com.


Re: Static files not work

2020-10-01 Thread MUGOYA DIHFAHSIH
instead of loading staticfiles you use {{ load static}}

On Thu, 1 Oct 2020 at 15:23, kkwaq...@gmail.com 
wrote:

> *Error*
>
> *[image: 1.jpg]*
>
> *Error line number 2*
>
> *[image: 2.jpg]*
>
>
> *settingspy*
>
> *[image: 3.jpg]*
>
> *html file*
>
> *[image: 4.jpg]*
>
> --
> 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/35152588-7c0e-44e3-b7bc-fc48bfa81b37n%40googlegroups.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/CAP%3DJD9yG%3DkcarU-dUCCQZh-%3DS9empaEqRj7EY3huivCWmcXM-Q%40mail.gmail.com.


Re: can anyone help me

2020-08-29 Thread MUGOYA DIHFAHSIH
On your imagefield you forgot to add
upload_to="folder_inside_your_media_folder"

On Sat, Aug 29, 2020, 19:48 allaberdi...@gmail.com <
allaberdi16yazha...@gmail.com> wrote:

> I can upload images from django admin panel but cannot to do same thing
> with django form ,  it saves any text but did not save images only,  anyone
> help me  please
> github 
> this is my code:
>
> models.py:
> class Posts(models.Model):
>
> Ahal = 'Ahal'
> Balkan = 'Balkan'
> Dasoguz = 'Dasoguz'
> Lebap = 'Lebap'
> Mary = 'Mary'
>
>
> CHOOSE_REGION = {
> (Ahal,'Ahal'),
> (Balkan,'Balkan'),
> (Dasoguz,'Dasoguz'),
> (Lebap,'Lebap'),
> (Mary,'Mary')
> }
>
>
> name = models.CharField(max_length=30, blank=False, verbose_name='Ady')
> image = models.ImageField(blank=True, null=True, verbose_name='surat')
> text = models.TextField(verbose_name='gosmaça maglumat')
> price = models.FloatField(verbose_name='bahasy')
> region = models.CharField(max_length=30, choices=CHOOSE_REGION,
> blank=False, verbose_name='welaýat')
> district = models.CharField(max_length=30, blank=False,
> verbose_name='etrab')
> user = models.ForeignKey(User, on_delete=models.CASCADE,
> verbose_name='eýesi')
> phone = models.CharField(max_length=50, blank=False, verbose_name='telefon
> belgisi')
> published = models.DateTimeField(auto_now=True, verbose_name='satuwa çykan
> guni')
>
>
>
> forms.py:
> class PostForm(forms.ModelForm):
> class Meta:
> model = Posts
> fields = ['name','image','text','price','region','district','user','phone']
>
>
> views.py:
> def add_post(request):
> form = PostForm(request.POST or None)
> if form.is_valid():
> form.save()
> template = 'add_post.html'
> context = {'form':form}
> return render(request,template,context)
>
> settings.py:
>
> STATIC_URL = '/static/'
> STATICFILES_DIR = [Path(BASE_DIR,'static')]
>
> MEDIA_URL = '/media/'
> MEDIA_ROOT = Path(BASE_DIR,'media')
>
>
> urls.py:
>
> from django.conf.urls.static import static
> from django.conf import settings
>
> urlpatterns = [
> path('admin/', admin.site.urls),
> path('', include('posts.urls')),
> ]
>
> urlpatterns += static(settings.MEDIA_URL,
> document_root=settings.MEDIA_ROOT)
>
>
>
> html form tag:
> {% extends 'index.html' %}
>
> {% load static %}
>
> {% block content %}
>
> 
> {% csrf_token %}
> {{form.media}}
> {{form.as_p}}
> 
> 
>
> {% endblock %}
>
> --
> 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/a403ac50-9dfb-4a48-8007-9a52579886d4n%40googlegroups.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/CAP%3DJD9yJCOHs4bTCkhLK1meriLREBD3z%3Dd%3D8y6h9KOMAj80_yQ%40mail.gmail.com.


Re: Sources for learning django

2020-08-23 Thread MUGOYA DIHFAHSIH
All resources are good for learning django but one and the only best place
to learn everything in it's depth is to use the documentation of the
framework.

Django documentation is one of the best of all web frameworks, it has
everything that you need to learn django.

Also the second best source to leaen django is to identify a problem to
solve in form of a project, this will expose to a lot of concepts of django
and yoh will just fall in love with django.. actually  this is how i have
learnt django for the past one and half years.

On Fri, Aug 21, 2020, 16:29 sapna Choudhary  wrote:

> Follow Corey Schafer youtube channel and don't have any about any book.
> Documentation of django would take away your interest to learn django so
> start with this channel.
> please do share your experience.Corey Schafer
> 
>
> On Fri, Aug 21, 2020 at 4:00 AM Mohamed Ghoneim 
> wrote:
>
>> Hey guys,
>>
>> can any one tell me  name of books , websites or youtube channels  which
>> are good to learn django .
>>
>> i also want to ask ,how long does it take to learn django ?
>>
>> 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/5acb085e-246d-4802-9d23-b87b501918c9n%40googlegroups.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/CAP6mExjYKSopfgF2yuMjgh5RTiK%2Bj9eH1Txq_eSDBkg1Ok--bw%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/CAP%3DJD9wT5pjGpPiFKf3n_DddsMQQMwipd74o-kd8Ev_mhyM35A%40mail.gmail.com.


Re: error at deployment

2020-08-23 Thread MUGOYA DIHFAHSIH
Also that error comes about if you didn't  create well the python
application like maybe you missed the application root, or you didn't
replace the code in  your wsgi.py with this line. from myproject import
application

On Sun, Aug 23, 2020, 22:49 MUGOYA DIHFAHSIH  wrote:

> You are missing python manage.py collectstatic, this is used to copy your
> static files to public fold so that they can be served by the server .
>
> On Sun, Aug 23, 2020, 02:14 Amresh Giri  wrote:
>
>> Check logs bro. You'll know what went wrong and where.
>>
>> On Sun, Aug 23, 2020, 3:45 AM Sayur Patel  wrote:
>>
>>> hello i am beginner and this is my first project.
>>>
>>> i have error on my home page.
>>>
>>> i do
>>>
>>>1. installing dependency
>>>2. makemigrations
>>>3.  migrate
>>>4.  createsuperuser
>>>
>>>
>>>-  setting.py
>>>- change static root
>>>- static dir
>>>- media root
>>>- allowed host
>>>- debug = false
>>>
>>>
>>>
>>> anything am i missing?
>>>
>>>
>>> --
>>> 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/c2198c12-b84c-4ee8-a948-6a9c2cffac79n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/c2198c12-b84c-4ee8-a948-6a9c2cffac79n%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
>> 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/CAJqzuMEDcOdvD9Z8drUR0CqTexgLgfwije8pZ6rCee-SKb8k_A%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAJqzuMEDcOdvD9Z8drUR0CqTexgLgfwije8pZ6rCee-SKb8k_A%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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/CAP%3DJD9zMPUOxeRfasyAChReq8snJs8q_2xkEgfiikcJeKCRJvA%40mail.gmail.com.


Re: error at deployment

2020-08-23 Thread MUGOYA DIHFAHSIH
You are missing python manage.py collectstatic, this is used to copy your
static files to public fold so that they can be served by the server .

On Sun, Aug 23, 2020, 02:14 Amresh Giri  wrote:

> Check logs bro. You'll know what went wrong and where.
>
> On Sun, Aug 23, 2020, 3:45 AM Sayur Patel  wrote:
>
>> hello i am beginner and this is my first project.
>>
>> i have error on my home page.
>>
>> i do
>>
>>1. installing dependency
>>2. makemigrations
>>3.  migrate
>>4.  createsuperuser
>>
>>
>>-  setting.py
>>- change static root
>>- static dir
>>- media root
>>- allowed host
>>- debug = false
>>
>>
>>
>> anything am i missing?
>>
>>
>> --
>> 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/c2198c12-b84c-4ee8-a948-6a9c2cffac79n%40googlegroups.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/CAJqzuMEDcOdvD9Z8drUR0CqTexgLgfwije8pZ6rCee-SKb8k_A%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/CAP%3DJD9wfz2Uj0Qexa3x1sVZ7%2ByajTMB3Ym8RiJa62j-FrVxXrg%40mail.gmail.com.


Re: Django Community Survey

2020-07-29 Thread MUGOYA DIHFAHSIH
already taken the survey, thanks for the link, it is a best way django can
improve the future of our django.

On Wed, 29 Jul 2020 at 19:49, Miracle  wrote:

> https://twitter.com/djangoproject/status/1288488760741683201?s=09
>
>
> Django 2020 Community survey
>
> --
> 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/CADZv-jCyjMcNGm2b5Ye3uFcj-w0NumRzpx-JdqyTQCfpds06gw%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/CAP%3DJD9w3itSpMvXxu0tGc-8o%2BuZYivStgoTedweStseJ6tUMDg%40mail.gmail.com.


Re: help me

2020-07-26 Thread MUGOYA DIHFAHSIH
if you could translate the error in Enl=glish, maybe we could be of help

On Mon, 27 Jul 2020 at 03:08, Deborah  wrote:

> bonsoir
>
> je suis bloquée avec -ça je ne sais pas quoi faire
>
> --
> 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/e10f80b0-3110-4108-8cbe-9852f16a3205o%40googlegroups.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/CAP%3DJD9zJdx3dSPmewVs2JqPif_QiwKXtUxpVNGOGqquuMHAeSA%40mail.gmail.com.


Re: Error in sending mail

2020-07-25 Thread MUGOYA DIHFAHSIH
i think it is repeating it cos the email you put in the settings.py is the
same email you used for clients to send to contact you through.
What i mean is a person contacting you sends the email to
rubymoti...@gmail.com and it is the same email you used i the settings.py
to permit django app send email.


On Sat, 25 Jul 2020 at 11:35, Nikola Tesla  wrote:

> *Someone from Django's creators to help me*
> *I have noticed that when the user who sends me a message through the
> contact form, the information that arrives in my mail... arrives in a wrong
> way *
> *I've attached a picture of the error, I want to know how to correct it
> please *
>
> --
> 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/afc4aea3-2cd8-4a02-a358-6ddee98aae10n%40googlegroups.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/CAP%3DJD9y_TPZmyNjLQHXULfopm4AKiQsn2P5GjWQQqCLZKGvL1w%40mail.gmail.com.


Re: randomizing objects in the view with pagination

2020-07-12 Thread MUGOYA DIHFAHSIH
Am anxiously waiting for the answer to this question cos i would like to do
the same for my django web app

On Sun, Jul 12, 2020, 19:46 John McClain  wrote:

> I have a marketplace with many sellers selling the same 3 products in
> various values. In all the are 18 product type for sell on the platform
> with hundreds of sellers.
>
> I was randomizing the product category page when loaded so that items from
> all sellers could appear on the page.
>
> I was not using paginations and I have thousands of products so the page
> was obviously loading very slow.
>
> I added pagination and let python manage the query instead of it happening
> on the server-side. This increased the page load but I lost my
> randomization.
>
> The first page is the only page getting random items loaded. When using
> pagination to get to the 2nd page the items loading on that page are
> descending oldest to newest.
>
> Does anyone have an idea how to manage randomizing items on each new page?
>
> I am django core paginator
>
> https://docs.djangoproject.com/en/3.0/ref/paginator/
>
> Any ideas would be appreciated
>
> Cheers,
>
> John
>
> --
> John McClain
>
> Cell: 085-1977-823
> Skype: jmcclain0129
> Email: jmcclain0...@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/CAN-hv_qyzZQdCXJBRs_a-3MEt46%3DsOtXvknNuEVBzWNZ_bk5Xg%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/CAP%3DJD9z6-8PXmm5Pmh8LjTCi7m%2BajFG1wwWPQZGFZ56W5%2BooQw%40mail.gmail.com.


Re: Django Uploaded images not displayed in production

2020-06-22 Thread MUGOYA DIHFAHSIH
thanks Anton, i will also give nginx a try but currently the client has a
domain with namecheap with shared host plan and that is where he wants me
to deploy the application but name cheap has apache web server


On Sun, 21 Jun 2020 at 22:10, Anton Nyagolov  wrote:

> So guys I have found the problem. My Nginx server was only serving static
> files but not media ones, I have probably forgot about it.
> My Nginx settings were:
> The only thing I had to do is add a location for the media folder:
>
>
> @MUGOYA DIHFAHSIH
> At the begging of setting the server I also used apache2, it was pain in
> the ass and I switched to Nguix and Gunicorn. Setting the server over
> apache took me like 60-70 steps. With Nguix and Gunicorn it takes only 20
> steps, for 15 min you are all set up.
> Watch this video and follow the guy: How to Deploy Python-Django serveer
> in 20 min <https://www.youtube.com/watch?v=hYMTvK5MpQI>
>
> --
> 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/343c056c-cd83-4ce2-a898-ecf21ef0165fo%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/343c056c-cd83-4ce2-a898-ecf21ef0165fo%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
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/CAP%3DJD9xJXWuZVN%2Bpwk9pJJefPp%3DOuyqRCzfFCa%3DOEksb5CqvpA%40mail.gmail.com.


Re: Django Uploaded images not displayed in production

2020-06-21 Thread MUGOYA DIHFAHSIH
Actually me too i have the same problem, i have deployed django web app on
a shared host with apache linux server, and am stuck on how to serve media
files, static files like js, css, and static images not from database load
well.

But the problem is that when i submit a form that has an imagefield with
it, it throws an error message, "404" page not found.
If anyone can help me please.

On Sun, Jun 21, 2020, 21:23 Vishesh Mangla 
wrote:

> If the issue is managing static files on the server simply installing
> Django-heroku saved me from all that trouble.
>
>
>
> Sent from Mail  for
> Windows 10
>
>
>
> *From: *Rob Riedlinger 
> *Sent: *21 June 2020 23:40
> *To: *Django users 
> *Subject: *Re: Django Uploaded images not displayed in production
>
>
>
> Check out this video  https://youtu.be/kBwhtEIXGII  Denis talks about why
> this happens
>
> On Sunday, June 21, 2020 at 7:15:43 PM UTC+2, Anton Nyagolov wrote:
>
> Thanks I will check out the group too for future reference and etc. Those
> images are uploaded to a database and are part of a model. I iterate
> through all the object and for each object I print some information
> including the images, therefore I cannot specify only one specific image. I
> use admin so I can add my (new future) projects and only by admin they
> should be able to display automatically on my website with all the
> information and structure required.
>
> Do you sugest changing the value of the imageField
> (upload_to="static//my_desired_path) ?
>
> --
> 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/33d4c599-135d-45d9-abbc-978e404e4f87o%40googlegroups.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/A68703DE-32D6-417B-AF0F-64EACA533FE0%40hxcore.ol
> 
> .
>

-- 
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/CAP%3DJD9x7L7S9KniwHQ4etsjnCOfj70AizbZO-1z5WxqCbLpnsg%40mail.gmail.com.


Re: Django Saving a form with Imagefield on shared host

2020-06-17 Thread MUGOYA DIHFAHSIH
@Mangla, essentially what i want to do is to serve uploaded images on a
shared host through the media directory in my project root. I have deployed
the web app the static files such as css and images are working fine, but
when i try to submit a form that has imagefield into the database, it
throws 404 error. I know it has to deal with the Aoache web server and the
mod_wsgi but how?

On Wed, 17 Jun 2020 at 10:06, Vishesh Mangla 
wrote:

> One thing that can be done is to save the image as a base64 string in the
> database.
> https://stackoverflow.com/questions/3715493/encoding-an-image-file-with-base64
>
>
>
> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for
> Windows 10
>
>
>
> *From: *MUGOYA DIHFAHSIH 
> *Sent: *14 June 2020 19:15
> *To: *Django users 
> *Subject: *Django Saving a form with Imagefield on shared host
>
>
>
> I am working on django project and now i have deployed it with Namecheap
>
> When i submit a form that does not have an ImageField, the form submits
> successfully on the shared host
>
> but when i submit a form with one of the fields ImageField, it raises 404
> error.
>
> but on the localhost, the forms work perfectly.
>
> what can i do to submit such forms on a shared host.
>
> 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/b79bb9b5-46b4-43eb-9ea5-3eaab14336ddo%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/b79bb9b5-46b4-43eb-9ea5-3eaab14336ddo%40googlegroups.com?utm_medium=email_source=footer>
> .
>
>
>
> --
> 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/3F4C1D42-FB11-49A2-8A6E-BF990EE847AD%40hxcore.ol
> <https://groups.google.com/d/msgid/django-users/3F4C1D42-FB11-49A2-8A6E-BF990EE847AD%40hxcore.ol?utm_medium=email_source=footer>
> .
>

-- 
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/CAP%3DJD9wV4_Pbd%3DK2EoH6VNbHKr_7ca%2BErCfQcc7xpwWfqmEzTw%40mail.gmail.com.


Re: Django Saving a form with Imagefield on shared host

2020-06-16 Thread MUGOYA DIHFAHSIH
Hey Kelvin thanks for your esteemed reply, i specified the media folder but 
i think there is something to do with apache and mod_wsgi so as to serve 
the static urls and the media files

On Sunday, 14 June 2020 16:46:39 UTC+3, MUGOYA DIHFAHSIH wrote:
>
> I am working on django project and now i have deployed it with Namecheap
> When i submit a form that does not have an ImageField, the form submits 
> successfully on the shared host
> but when i submit a form with one of the fields ImageField, it raises 404 
> error.
> but on the localhost, the forms work perfectly.
> what can i do to submit such forms on a shared host.
> 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/8771a1a3-e709-4d72-b0bc-06be5e42b277o%40googlegroups.com.


Re: get() missing 1 required positional argument: 'id'

2020-06-16 Thread MUGOYA DIHFAHSIH
Hey amit, in your views you are getting id that you didn't pass in the url
in your url.py

 path('home/(?P\d+)/',views.EmployeeCBV.as_view(),name='home'),



On Wednesday, 17 June 2020 07:09:06 UTC+3, amit wrote:
>
> did not work
>
> views.py
>
> class EmployeeCBV(View):
> def get(self,request,id,*args,**kwargs):
>  emp=Employee.objects.get(id=id)
>  json_data=serialize('json',[emp,])
>
>  return HttpResponse(json_data,content_type='application/json')
>
>
> urls.py
>
> from django.contrib import admin
> from django.urls import path
> from testapp import views
>
> urlpatterns = [
> path('admin/', admin.site.urls),
> path('home/',views.EmployeeCBV.as_view(),name='home'),
>
> ]
>
> result:
>
> TypeError
>at /home/
>   
> get() missing 1 required positional argument: 'id'
>
> Request Method: GET 
> Request URL: http://127.0.0.1:8000/home/ 
> Django Version: 3.0.6 
> Exception Type: TypeError 
> Exception Value: 
>
> get() missing 1 required positional argument: 'id'
>
> Exception Location: 
> C:\Users\adyam\AppData\Local\Programs\Python\Python37\lib\site-packages\django\views\generic\base.py
>  
> in dispatch, line 97 
> Python Executable: 
> C:\Users\adyam\AppData\Local\Programs\Python\Python37\python.exe 
> Python Version: 3.7.5 
> Python Path: 
>
> ['C:\\Users\\adyam\\PycharmProjects\\RestApi1\\withoutrestm',
>  'C:\\Users\\adyam\\AppData\\Local\\Programs\\Python\\Python37\\python37.zip',
>  'C:\\Users\\adyam\\AppData\\Local\\Programs\\Python\\Python37\\DLLs',
>  'C:\\Users\\adyam\\AppData\\Local\\Programs\\Python\\Python37\\lib',
>  'C:\\Users\\adyam\\AppData\\Local\\Programs\\Python\\Python37',
>  'C:\\Users\\adyam\\AppData\\Roaming\\Python\\Python37\\site-packages',
>  
> 'C:\\Users\\adyam\\AppData\\Local\\Programs\\Python\\Python37\\lib\\site-packages']
>
> Server time: Wed, 17 Jun 2020 04:05:09 +
>
>

-- 
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/d8140c75-6c31-481c-adfd-7ecbcc6bc44fo%40googlegroups.com.


Django Saving a form with Imagefield on shared host

2020-06-14 Thread MUGOYA DIHFAHSIH
I am working on django project and now i have deployed it with Namecheap
When i submit a form that does not have an ImageField, the form submits 
successfully on the shared host
but when i submit a form with one of the fields ImageField, it raises 404 
error.
but on the localhost, the forms work perfectly.
what can i do to submit such forms on a shared host.
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/b79bb9b5-46b4-43eb-9ea5-3eaab14336ddo%40googlegroups.com.


Thanks

2020-03-14 Thread MUGOYA DIHFAHSIH
Hello Team my Name is Mugoya Dihfahsih form Uganda, am advance in Django
though software development is not so much prioritized here in Uganda.
Thank You for your contributions towards open source threading of python.

-- 
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/CAP%3DJD9wDyYETtdmpDV32myvuTThHo5ShvG3YV%2B_Bp%2Bw9_QveGQ%40mail.gmail.com.