Re: Redesign of agricultural project with python django and next.js technologies.

2024-02-18 Thread Carlos Romero Martin
;> · Implement logic to handle search queries and apply filters to search
>>>> results.
>>>>
>>>> Shopping Cart:
>>>>
>>>> · Create pages and components to manage the shopping cart.
>>>> · Design and develop a shopping cart page that displays all products
>>>> added to the cart.
>>>> · Implement components to increase, decrease, or delete the quantity
>>>> of a product in the cart.
>>>> · Develop logic to update the shopping cart page when changes are made
>>>> to the cart.
>>>>
>>>> Payment System:
>>>>
>>>> · Develop the payment flow and notifications.
>>>> · Design and develop a payment flow to guide users through the
>>>> checkout process.
>>>> · Implement logic to display real-time notifications about payment
>>>> status.
>>>>
>>>> Ratings & Reviews:
>>>>
>>>> · Develop interfaces for rating products and vendors.
>>>> · Design and develop forms for users to submit ratings and reviews.
>>>> · Implement the logic to display ratings and reviews of products and
>>>> vendors on their respective pages.
>>>>
>>>> Messaging:
>>>>
>>>> · Implement notifications for new messages.
>>>> · Design and develop a user interface to display notifications of new
>>>> messages.
>>>> · Implement logic to update notifications in real-time when new
>>>> messages are received.
>>>>
>>>> Notification System:
>>>>
>>>> · Create a section in profiles to view and manage notifications.
>>>> · Design and develop a notifications section in the profile page of
>>>> each user.
>>>> · Implement logic to display notifications in real-time and allow
>>>> users to manage (e.g., mark as read, delete, etc.) their notifications.
>>>>
>>>> Order Management:
>>>>
>>>> · Create pages to manage orders from the seller and consumer side.
>>>> · Design and develop an order management page for sellers, where they
>>>> can view and manage their orders.
>>>> · Implement an order tracking page for consumers, where they can see
>>>> the status of their orders.
>>>>
>>>> --
>>>> 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/6a7570f0-9dda-4b1f-82a3-7f1ce681b535n%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/django-users/6a7570f0-9dda-4b1f-82a3-7f1ce681b535n%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/CAC8VzwUE9p3pQhryduFJcMN5_imBz9%3Dr9d_9%2BMO5zGGie6B_1w%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAC8VzwUE9p3pQhryduFJcMN5_imBz9%3Dr9d_9%2BMO5zGGie6B_1w%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/CABnQiK7L5j1bmmKuredJz46mNZp-bgnWoYs8H-KUGQ6MxQkdvg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CABnQiK7L5j1bmmKuredJz46mNZp-bgnWoYs8H-KUGQ6MxQkdvg%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
*Carlos Romero Martin*
IT Consultant, CRMDevAppIT

+32(0)489 091 244 <+32(0)489+091+244> | carlosromeromartin1...@gmail.com
Create your own email signature
<https://www.wisestamp.com/create-own-signature/?utm_source=promotion_medium=signature_campaign=create_your_own=>
‌

-- 
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/CACc4Y%2BcsyS7cbTP2Yb836JcYcPeU2wmYC%3D0PUUNfWg5tsi6BWA%40mail.gmail.com.


Re: Problem with my website

2023-07-12 Thread Carlos Pimentel_leanTech
If your website appears as a blank white page when you set `DEBUG = False`
in your Django settings, it indicates that an error has occurred, and
Django is not providing detailed error information to the end-user for
security reasons. When `DEBUG` is set to `True`, Django shows detailed
error messages, making it easier to identify and fix issues during
development.

To troubleshoot the problem and determine the cause of the white page, you
can follow these steps:

1. Check the Server Logs: When `DEBUG` is set to `False`, Django logs
errors and exceptions to the server logs instead of displaying them to the
user. Review the server logs to identify any error messages or exceptions
that are being logged. The location of the logs depends on your server
configuration.

2. Custom Error Pages: Django allows you to define custom error pages for
different HTTP error codes. Make sure you have configured the appropriate
error handling and error pages for your production environment. Check if
any custom error pages are causing the white page issue.

3. Static Files: If your website relies on static files (CSS, JavaScript,
images), ensure that they are being served correctly in the production
environment. Check if the static files are properly collected and
accessible.

4. Database Connection: Verify that your Django application can
successfully connect to the database in your production environment. Ensure
that the database credentials and configuration are correct.

5. Third-party Libraries and Dependencies: Check if any third-party
libraries or dependencies used by your Django project are causing conflicts
or errors in the production environment. Make sure you have installed and
configured them correctly.

6. Security Settings: Certain security settings, such as the
`ALLOWED_HOSTS` setting, need to be properly configured for your production
environment. Ensure that `ALLOWED_HOSTS` includes the appropriate domain
names or IP addresses for your website.

7. Email Configuration: If your Django application sends emails,
double-check that the email configuration is properly set up in your
production settings.

By investigating these areas, you should be able to identify the cause of
the white page issue when `DEBUG` is set to `False`. It's important to note
that when running in production, it's generally recommended to keep `DEBUG`
set to `False` for security reasons. Remember to restart your Django server
after making any changes to the settings file.

On Wed, Jul 12, 2023 at 4:47 PM Théodore KOSSI 
wrote:

> Hello everyone,
> I have a problem with my website. When I put DEBUG = False, my website
> appears in white page but when it is in True, my website works normally.
> Please, anyone can help me ??
>
> --
> theodoros17@python-developer
>
> --
> 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/CAKiMjQGQRQ_eanYNBrqAFBU3ayakQUxuQuNmMhn8km%2BCuysfBA%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/CA%2BUhrNDLdcgha1ab76OQg9aSm3H2STda4zGDMkuU642rKDyBjw%40mail.gmail.com.


Re: Freelance Django and Python work

2023-06-30 Thread Carlos Romero Martin
I'm interested

Le jeu. 29 juin 2023 à 23:56, M. Guy Sylvestre 
a écrit :

> Je suis intéressé .
>
>
> Le mar. 13 juin 2023, 11:30, אורי  a écrit :
>
>> Hi,
>>
>> I'm looking for a programmer to hire as a freelancer for Django and
>> Python work.
>>
>> - Experience with Python and Django
>> - Experience with open source
>> - Committed to the Django repository on GitHub - an advantage
>> - Committed to other open-source projects in Python - an advantage
>> - Experience with Stack Overflow -  an advantage
>> - BSc or BA in computers or science (math, physics) -  an advantage
>> - Knowledge of HTML, CSS, and JavaScript - an advantage
>> - Can issue receipts
>>
>> I need about 5 hours per month on average. Some months I might need up to
>> 15 hours per month. Some months I might not need anything. The work is
>> remote. My project is open source. I can give you a free license to
>> PyCharm. My website is at https://en.speedy.net/ and
>> https://github.com/speedy-net/speedy-net
>>
>> To apply please send one email to jobs+jango-freelan...@speedy.net, with
>> your name, your email address, where you live, your experience, how many
>> commits you committed to Django, how many commits you committed to other
>> open source projects, a link to your profile on LinkedIn, a link to your
>> profile on GitHub, a link to your profile on Stack Overflow, your diploma
>> if you have any, how much you charge per hour and in which currency (I
>> prefer USD or Euro), and if you can issue receipts. If you don't have a
>> profile on one of the above websites please mention this too.
>>
>> Thanks,
>> Uri Rodberg, Speedy Net.
>> אורי
>> u...@speedy.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/CABD5YeHjQyFa75Mgq7nzcJ6AoX-WDeu75OOPfa2OngG2VTMaDQ%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/CAEsEyq8uA%2BJEOabMdNV4XA8jsOmgeGo%3DJ4RgRD%3DAf%2B3gNSNyfA%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/CACc4Y%2BdN_Y15Bx-XdCra_u5gJqv3cf%3DRJdnscDucm--_eypdtA%40mail.gmail.com.


Accounts signup does not create user

2023-06-24 Thread Carlos Pimentel_leanTech
Hello fellows,

I have a django app with leaflet map,
That allows users to create accounts through a sign up template and view.

Before installing allauth it worked fine after I installed it, everything
seems to be working but the user is not created and my CustomUsers app in
admin area remains unchanged.

Any tip on how to solve 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/CA%2BUhrNB%3DyPawCs-H7rBee-V%2B1m9Su7-PM7nSDaOu4mQE4TEoFA%40mail.gmail.com.


Re: Slow Performance of Django Web App

2023-06-11 Thread carlos
Hi, your read this docs
https://docs.djangoproject.com/en/4.2/topics/performance/
and this too
https://djangostars.com/blog/django-performance-optimization-tips/

maybe help you
Cheers

On Sun, Jun 11, 2023 at 1:00 PM Kunal Mittal 
wrote:

> I've a django application serving 10k+ users daily, that application has
> everything to be on the top of performance metrics but still some API's
> have high latencies, application serves lots of pages with nice css and
> various images, on most the pages they are being served by s3 while on some
> it's via django static files. We have implemented caching on akamai for
> every static file that application serves, whenever that cache disappears
> latency of each and every API spikes exponentially, at that time even
> loading metrics becomes a pain, server does not pick those requests. Can
> anyone suggest what's going on here.
>
> --
> 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/d32868ba-a2df-41e3-8f41-3ecc3c1b3471n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/d32868ba-a2df-41e3-8f41-3ecc3c1b3471n%40googlegroups.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO0i09GHST4OMo7JeKVZhfZ7VnT%3DDPCsVfPQjDeRDrCAfA%40mail.gmail.com.


Re: how to convert to Django 3 or 4

2023-06-02 Thread carlos
maybe maybe this app hepl you i don't used never but a read this good, but
i don't know is helped you
https://github.com/adamchainz/django-upgrade

On Fri, Jun 2, 2023 at 8:38 PM Mike Dewhirst  wrote:

> On 3/06/2023 7:20 am, john fabiani wrote:
>
> Hi everyone,
>
> I am tasked with updating/upgrading a very old Django web site - I believe
> it is 1.7.  I need convert and need what is required.
> Thanks in advance.
>
>
> I need to convert the following:
>
>
> Because all your urls are regular expressions, you can replace them all
> with re_path. A quick and dirty starter might be to replace the next line
> and see where that gets you ...
>
> from django.conf.urls import patterns, include, url
>
>
> from django.urls import include
> from django.urls import re_path as url
>
> If that gets you a bit further there is a lot more to do. Really the only
> methodical way forward is to upgrade Django a step at a time after studying
> the release notes for the next version.
>
> Finally you should decide whether to get rid of re_path (as url) and
> refactor to use path. Depends on you view of the future.
>
> from django.contrib import admin
> from django.conf import settings
> from django.conf.urls.static import static
>
> urlpatterns = patterns('',
> # Examples:
> url(r'reg4/$', 'register.views.reg4', name='reg4'),
> url(r'reg3/$', 'register.views.reg3', name='reg3'),
> url(r'reg2/$', 'register.views.reg2', name='reg2'),
> #url(r'reg1/$', 'register.views.reg1', name='reg1'),
> url(r'reg1/$', 'register.views.reg1', name='reg1'),
> #url(r'^$', 'register.views.home', name='home'),
> url(r'reg/$', 'register.views.home', name='home'),
> url(r'get_courts/(\d+)$', 'register.views.get_courts',
> name='get_courts'),
> url(r'get_courses/(\d+)$', 'register.views.get_courses',
> name='get_courses'),
> url(r'autoschedule/', 'register.views.autoschedule',
> name='autoschedule'),
> url(r'get_cities/(\d+)$', 'register.views.get_cities',
> name='get_cities'),
> url(r'get_classes/(\d+)$', 'register.views.get_classes',
> name='get_classes'),
> url(r'get_cities2/(\d+)/(\d+)/$', 'register.views.get_cities2',
> name='get_cities2'),
> url(r'get_classes2/(\d+)/(\d+)/$', 'register.views.get_classes2',
> name='get_classes2'),
> url(r'rejected/$', 'register.views.rejected', name='rejected'),
> url(r'finished/$', 'register.views.finished', name='finished'),
>
> ##url(r'^$', 'profiles.views.home', name='home'),
> #url(r'^contact/$', 'register.views.home', name='contact'),
> #url(r'^about/$', 'register.views.about', name='about'),
> #url(r'^profile/$', 'register.views.user_profile', name='profile'),
> #url(r'^checkout/$', 'checkout.views.checkout', name='checkout'),
> # url(r'^blog/', include('blog.urls')),
>
> url(r'^admin/', include(admin.site.urls)),
> ) + static(settings.STATIC_URL, document_root = settings.STATIC_ROOT)
>
> What is required?
>
> --
> 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/8f8a68b4-a3c5-a10d-8246-2ef41635b406%40jfcomputer.com
> <https://groups.google.com/d/msgid/django-users/8f8a68b4-a3c5-a10d-8246-2ef41635b406%40jfcomputer.com?utm_medium=email_source=footer>
> .
>
>
>
> --
> Signed email is an absolute defence against phishing. This email has
> been signed with my private key. If you import my public key you can
> automatically decrypt my signature and be sure it came from me. Your
> email software can handle signing.
>
> --
> 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/9f972f6c-9a19-8da0-c2fb-2a0a56237f24%40dewhirst.com.au
> <https://groups.google.com/d/msgid/django-users/9f972f6c-9a19-8da0-c2fb-2a0a56237f24%40dewhirst.com.au?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO1ZCyEjDyU_9hBfm55Vau89BUBwax4NCJ0bEZ7kX-zVng%40mail.gmail.com.


Re: I need to create account using sso Google in Django rest framework Amy suggestions?

2023-05-04 Thread carlos
Try this tuto
https://episyche.com/blog/how-to-configure-google-sso-in-django-rest-framework-with-react

On Wed, May 3, 2023 at 3:40 PM 'Kasper Laudrup' via Django users <
django-users@googlegroups.com> wrote:

> Maybe this would be a start:
>
>
> https://googlethatforyou.com?q=create%20account%20using%20sso%20Google%20in%20Django%20rest%20framework
>
> --
> 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/e1fb705e-759b-126a-152c-cc5625d31e50%40stacktrace.dk
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO0G3fv1NCNTj7jdGNb2MtfuZD2MW5fqmr6YkuToCaoBPA%40mail.gmail.com.


Re: Accessing my local backend

2023-03-12 Thread Carlos André Dantas de Lima
Have you chose url in settings, allow tô access and you try access with
mobile deixe in other address or port

Em dom, 12 de mar de 2023 14:42, Donald KANTI 
escreveu:

> Hey you should start the Django server on 0.0.0.0 something like this
> python
>
> python manage.py runserver 0.0.0.0:8000
>
> Then make sure the mobile and your server are in the same network
>
> On Sun, Mar 12, 2023, 6:33 PM Rafael J. Soteldo S. <
> rafael.sote...@gmail.com> wrote:
>
>> Hi there:
>>
>> I'm being able to access my local backend built with django/python from
>> Postman and react, but if I try to access it from an application built for
>> mobiles, I get a Network error. I try to access the backend from an android
>> device
>>
>> What should I set in django in order to being able to access my endpoints
>> from a device other than the computer
>>
>> Thanks in advance
>>
>> --
>> 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/769bc9b8-eacf-4e29-ac14-4a199304e4cen%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/CANJ3CtPgPVu4tA5wxkzxT%2BK0h5ob9Ry-4L-8O6_QH4Nhm13dpQ%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/CAA8yBMwJjFK8KF5OdGrr_FpAzo-t76zbZmmAOhLtdSgpw7Wrag%40mail.gmail.com.


Re: sso using django

2023-02-11 Thread carlos
Hello quicky research in google search

https://pypi.org/project/django-sso/
https://github.com/divio/django-simple-sso
https://micropyramid.medium.com/django-single-sign-on-sso-to-multiple-applications-64637da015f4

Cheers

On Tue, Jan 31, 2023 at 11:16 PM venkat Bukka 
wrote:

> Hello all,
> Does anyone know how we can implement django sso for multiple
> django projects please let me know from which libraries we can start with
> and push into production or is it good to use aure ad and okta for that.
>
> 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/1d2d0aae-a9e7-4da0-b4b5-3af333537aefn%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/1d2d0aae-a9e7-4da0-b4b5-3af333537aefn%40googlegroups.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO1nVqJMqmCc9%2BO%2BxXQ_1VWw8sTHUoeR_q%2BrD9W2uzf--w%40mail.gmail.com.


Forbidden (403) - CSRF verification failed. Request aborted.

2022-11-22 Thread Carlos Roberto
Hi everyone!

I use ngrok to make my projects available in django. I'm having trouble 
accessing the admin page. After I enter the username and password I get the 
error 403.

Has anyone had the same problem and could help me?

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/de5c4738-f540-4596-b1bf-0b0b16aabbf2n%40googlegroups.com.


Re: Single Sign On in Django

2022-11-10 Thread carlos
Hi, try use this
https://github.com/divio/django-simple-sso
https://micropyramid.medium.com/django-single-sign-on-sso-to-multiple-applications-64637da015f4

On Thu, Nov 10, 2022 at 8:48 AM venkat Bukka 
wrote:

> Hello all,
>  Could anyone please let me know how we can implement SSO in the
> django...for authenticating multiple apps in a base application.
>
> --
> 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/cc932efa-f41d-458d-901c-844e32bb1b5dn%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/cc932efa-f41d-458d-901c-844e32bb1b5dn%40googlegroups.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO0WS9vA_zJtdFScirSe-q-KSMBM_hDpQvtT7OEn8vix8Q%40mail.gmail.com.


Re: Filter by date range

2022-09-10 Thread carlos
hello try debug
query_results = Prescription.objects.filter(date__range=["2022-07-01","
2022-07-30"])
len(query_results)
if come with records so, fromdate and todate is the problem!

On Sat, Sep 10, 2022 at 12:12 PM tech george  wrote:

> Hello Muhammad,
>
> I'm choosing dates between 2022-07-01 and 2022-07-30 which have records in
> the db.
>
> I hope i have answered you right.
>
>
> On Sat, Sep 10, 2022 at 8:41 AM Muhammad Juwaini Abdul Rahman <
> juwa...@gmail.com> wrote:
>
>> What's your value of 'fromdate' and 'todate'?
>>
>> On Sat, 10 Sept 2022 at 13:27, tech george  wrote:
>>
>>> Hello Carlos,
>>>
>>> I have used the code below as you advised by when I filter the table
>>> comes blank:
>>>
>>> query_results = Prescription.objects.filter(date__rang
>>> e=[fromdate,todate])
>>>
>>> Regards,
>>>
>>>
>>> On Fri, Sep 9, 2022 at 6:11 PM carlos  wrote:
>>>
>>>> Hello why use raw?
>>>> query_results = Prescription.objects.filter(date__rang
>>>> e=[fromdate,todate])
>>>> if you have any problem with performance hit database use
>>>> select_related or used m2m field use prefect_related
>>>> https://docs.djangoproject.com/en/4.1/ref/models/querysets/
>>>>
>>>> best!
>>>>
>>>> On Fri, Sep 9, 2022 at 7:48 AM tech george 
>>>> wrote:
>>>>
>>>>> Hello friends!
>>>>>
>>>>> I am trying to give users an easier way to filter data by date range.
>>>>>
>>>>> My views.py code is as below, but unfortunately, it is hiding data
>>>>> without applying the filter whenever I try to use if, else statements.
>>>>>
>>>>> Please advise what I might be doing wrong.
>>>>>
>>>>> views.py
>>>>>
>>>>> ef referralsReports(request):
>>>>> if request.method=="POST":
>>>>> fromdate = request.POST.get('fromdate')
>>>>> todate = request.POST.get('todate')
>>>>> searchresults = Prescription.objects.raw('select 
>>>>> id,description,prescribe,ailment,ailment_2,ailment_3,'
>>>>>  
>>>>> 'sickOff,referral,date_precribed,nurse_id,patient_id_id,'
>>>>>  
>>>>> 'non_work_related_sickOff from pharmacy_prescription where date_precribed 
>>>>> '
>>>>>  'between 
>>>>> "'+str(fromdate)+'" and "'+str(todate)+'"')
>>>>> return render(request, 
>>>>> 'pharmacist_templates/reports/referrals_report.html', {"data": 
>>>>> searchresults})
>>>>>
>>>>> else:
>>>>> displaydata = 
>>>>> Prescription.objects.filter(nurse=request.user.pharmacist).order_by('-id')
>>>>> return render(request, 
>>>>> 'pharmacist_templates/reports/referrals_report.html', 
>>>>> {"data":displaydata})
>>>>>
>>>>>
>>>>> template
>>>>>
>>>>> [image: image.png]
>>>>>
>>>>>
>>>>> --
>>>>> 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/CADYG20Go5PXJRP-MGJ07M36ftSaQ6WJVjYg_p4UYB9UUWge-LA%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/django-users/CADYG20Go5PXJRP-MGJ07M36ftSaQ6WJVjYg_p4UYB9UUWge-LA%40mail.gmail.com?utm_medium=email_source=footer>
>>>>> .
>>>>>
>>>>
>>>>
>>>> --
>>>> att.
>>>> Carlos Rocha
>>>>
>>>> --
>>>> 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

Re: Filter by date range

2022-09-09 Thread carlos
Hello why use raw?
query_results = Prescription.objects.filter(date__range=[fromdate,todate])
if you have any problem with performance hit database use select_related or
used m2m field use prefect_related
https://docs.djangoproject.com/en/4.1/ref/models/querysets/

best!

On Fri, Sep 9, 2022 at 7:48 AM tech george  wrote:

> Hello friends!
>
> I am trying to give users an easier way to filter data by date range.
>
> My views.py code is as below, but unfortunately, it is hiding data without
> applying the filter whenever I try to use if, else statements.
>
> Please advise what I might be doing wrong.
>
> views.py
>
> ef referralsReports(request):
> if request.method=="POST":
> fromdate = request.POST.get('fromdate')
> todate = request.POST.get('todate')
> searchresults = Prescription.objects.raw('select 
> id,description,prescribe,ailment,ailment_2,ailment_3,'
>  
> 'sickOff,referral,date_precribed,nurse_id,patient_id_id,'
>  'non_work_related_sickOff 
> from pharmacy_prescription where date_precribed '
>  'between "'+str(fromdate)+'" 
> and "'+str(todate)+'"')
> return render(request, 
> 'pharmacist_templates/reports/referrals_report.html', {"data": searchresults})
>
> else:
> displaydata = 
> Prescription.objects.filter(nurse=request.user.pharmacist).order_by('-id')
> return render(request, 
> 'pharmacist_templates/reports/referrals_report.html', {"data":displaydata})
>
>
> template
>
> [image: image.png]
>
>
> --
> 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/CADYG20Go5PXJRP-MGJ07M36ftSaQ6WJVjYg_p4UYB9UUWge-LA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CADYG20Go5PXJRP-MGJ07M36ftSaQ6WJVjYg_p4UYB9UUWge-LA%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO3UTB%2Bm7gYzfQ_RB%2BDnDWetnO3E18knFuLPJAU%2BBQrbLw%40mail.gmail.com.


Re: Mobile App

2022-09-04 Thread carlos
maybe convert your site in pwa with this third party app:
https://github.com/silviolleite/django-pwa
if you really use ios or android o hybrid app like flutter your need use
django rest framework create API to connect with your backend in django

Cheers

On Sun, Sep 4, 2022 at 3:34 PM Peter Kirieny  wrote:

> Hello team Django, I have a fully functioning website
> how can I easily turn it into a mob
> app 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/CAL8t8eqZap1_4kPKuMWovWWtPUVHZN7TFnLqgX7K3Om4cg8Npg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAL8t8eqZap1_4kPKuMWovWWtPUVHZN7TFnLqgX7K3Om4cg8Npg%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO1sGRjzyTykBt_4rW%2BynkPsNid7CmQjjAL%2BBDEObFW%2BgQ%40mail.gmail.com.


Re: Chat app using django

2022-07-20 Thread carlos
Hello, this tutorial is very simple and explain complete chat example with
django channels

https://testdriven.io/blog/django-channels/

Cheers

On Wed, Jul 20, 2022 at 5:59 AM Lakshyaraj Dash <
dashlakshyaraj2...@gmail.com> wrote:

> Great thanks Abdul. I can now easily build a chat app for my forum app.
>
> On Wed, Jul 20, 2022, 17:12 Abdul Qoyyuum 
> wrote:
>
>> Please have a look at how Django channels implements the chat app.
>> https://github.com/narrowfail/django-channels-chat
>>
>> On Wed, Jul 20, 2022 at 7:23 PM Lakshyaraj Dash <
>> dashlakshyaraj2...@gmail.com> wrote:
>>
>>> Ok I understand but currently I'm using postgresql in my app. So I need
>>> it for that. Please help me to inject the websockets in django as I'm very
>>> much new to it *not websockets* but to *integration of websockets in
>>> django*.
>>>
>>> On Wed, Jul 20, 2022, 08:28 Abdul Qoyyuum 
>>> wrote:
>>>
>>>> Hi Lakshyaraj,
>>>>
>>>> Chat app relies on quickly sending data between parties. You will need
>>>> to build it with websockets and a redis database to publish and subscribe
>>>> new event messages. However, this is basically reinventing the wheel versus
>>>> using one that already exists (i.e. Django Channels). But all the best to
>>>> you.
>>>>
>>>> On Wed, Jul 20, 2022 at 8:41 AM Lakshyaraj Dash <
>>>> dashlakshyaraj2...@gmail.com> wrote:
>>>>
>>>>> Hello guys!
>>>>> I'm having a discussion website in django with some sort of user
>>>>> authentication and I want to inject chat app with rooms made by the users
>>>>> themselves. I don't want any js framework in the frontend. Just tell me 
>>>>> how
>>>>> to make this type of chat app using django (not Django channels).
>>>>>
>>>>> Thanks and regards
>>>>> Lakshyaraj Dash
>>>>>
>>>>> --
>>>>> 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/CAF7qQgD7Ryvnp%2BPp74cs6aogFz32TQiKsH71X3WGcnrPG2FDdQ%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/django-users/CAF7qQgD7Ryvnp%2BPp74cs6aogFz32TQiKsH71X3WGcnrPG2FDdQ%40mail.gmail.com?utm_medium=email_source=footer>
>>>>> .
>>>>>
>>>>
>>>>
>>>> --
>>>> Abdul Qoyyuum Bin Haji Abdul Kadir
>>>> HP No: +673 720 8043
>>>>
>>>> --
>>>> 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/CAA3DN%3DUDSUnjOQTL%2BmPZn15oVnTPyUpNuG4DyukypVa9z%3DySOA%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAA3DN%3DUDSUnjOQTL%2BmPZn15oVnTPyUpNuG4DyukypVa9z%3DySOA%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/CAF7qQgA%2BoqEqisB6djbdQ7NmTMJxczr36h6FdyF_PT0xX1G%3D8w%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAF7qQgA%2BoqEqisB6djbdQ7NmTMJxczr36h6FdyF_PT0xX1G%3D8w%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>>
>>
>> --
>> Abdul Qoyyuum Bin Haji Abdul Kadir
>> HP No: +673 720 8043
>>
>> --
>> 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/dja

Re: Sockets

2022-07-20 Thread carlos
Hello, tow info

https://dev.to/buurak/django-rest-framework-websocket-3pb6

https://github.com/NilCoalescing/djangochannelsrestframework

cheeers



On Wed, Jul 20, 2022 at 7:49 AM Vkash Poudel 
wrote:

> Please provide me also a suitable tutorials implementing sockets in Django
> Rest framework.
>
> On Wed, 20 Jul 2022, 15:01 Prashanth Patelc, 
> wrote:
>
>> Hi users,
>> without serializers , can I use sockets?
>>
>> How to use sockets in django rest api( notification purpose),  front-end
>> is Vue js.
>> any tutorials or any blogs sample codes please share with me.
>>
>> 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/CAMCU6Cr-JBC6E_zFuTvGnR2Xj97T09aHz4GJ9oOiean9i3qoxw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAMCU6Cr-JBC6E_zFuTvGnR2Xj97T09aHz4GJ9oOiean9i3qoxw%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/CAE0sOGw%2BQR9NUHv26GCD95hS%2Btpn678cYUASGnaiz3rKkoJRUg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAE0sOGw%2BQR9NUHv26GCD95hS%2Btpn678cYUASGnaiz3rKkoJRUg%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO0Wxnz1E_hXDM3%3DCeq8J5BnnF%3DcWAHq8nfh%3D-7Ziphccw%40mail.gmail.com.


Re: INSTALACION PYTHON / DJANGO EN DEBIAN

2022-07-11 Thread carlos
hola, prueba con este tuto
https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-debian-9

On Sun, Jul 10, 2022 at 12:46 PM Miguel Ángel Cumpa Ascuña <
miguel.cumpa.asc...@gmail.com> wrote:

> Hi
> sudo apt install python3-pip
> sudo pip3 install --upgrade pip
> sudo pip install django
>
> El sáb, 9 jul 2022 a las 12:44, GLIBERT CERTAD ()
> escribió:
>
>> Estimados, buenas tardes. Hasta ahora he trabajado con Python y Django en
>> Sistema Operativo de Windows. Pero por razones labrales, he iniciado un
>> proyecto y el servidor disponible posee Debian 9. Cuales son los comandos y
>> los pasos para instalar tanto Python como Django en dicho servidor.
>>
>> Sin más y agradeciendo de antemano;
>>
>> Glibert Certad
>>
>> --
>> 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/c7b05a27-1068-4197-9fc9-768060cee02cn%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/c7b05a27-1068-4197-9fc9-768060cee02cn%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/CAOZHYKNbaWqdxXT%2B7atp6nESd7k%3DDQaugRDUtbtHPD-N%2BqKgFA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAOZHYKNbaWqdxXT%2B7atp6nESd7k%3DDQaugRDUtbtHPD-N%2BqKgFA%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO2atwztt%3DxJVyhS4t1QcsVOSgwoe4uoisPGYvhp86aUzA%40mail.gmail.com.


- CRUD To Learning

2022-05-03 Thread Carlos Alberto Gonçalves Pereira
Hello
  Do you have a step by step to learning to programming with Django?

Carlos

-- 
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/0fb18e73-4dea-4e10-94a0-2c1002e0befdn%40googlegroups.com.


Re: Slow page load performance with a large number of formsets (over 25)

2022-02-26 Thread Carlos R. Pacheco F.
The solution is to use select2  with
ajax

El vie, 25 feb 2022 a la(s) 19:58, Jacob Greene (jacobgreene1...@gmail.com)
escribió:

> If you're using model choice fields, it's very likely you are making an
> SQL query for each form set. It should be pretty obvious in the log with
> debug turned on.
>
> On Fri, Feb 25, 2022, 4:31 PM Ryan Nowakowski  wrote:
>
>> Steven, are you using ModelFormSet?  If so, Is it the initial query
>> that's slow?  The form rendering?  Or is it the POST back to the server
>> that's slow?  You can use django-debug-toolbar[1] to profile your page
>> and get these metrics.
>>
>> Once you figure out what part is slowest, then you can optimize.
>>
>> Hope this helps!
>>
>> Ryan N
>>
>> [1] https://django-debug-toolbar.readthedocs.io/en/latest/
>>
>> On Mon, Feb 07, 2022 at 09:12:48AM -0800, Steven Smith wrote:
>> > Did this issue ever get resolved?  I'm experiencing the same thing.
>> Once
>> > it hits 100 forms or so it gets pretty slow.
>> >
>> > On Monday, September 22, 2014 at 10:48:52 AM UTC-5 Collin Anderson
>> wrote:
>> >
>> > > Yes, if you want speed, using javascript and ajax is probably your
>> best
>> > > bet. It will probably also reduce merge-conflicts.
>> > >
>>
>> --
>> 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/20220225222926.GH11627%40fattuba.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/CAF-Y%3De5Fp7kDtLq47Z3Y4GEjXMne2PcTLYxOJ8St5gkKCkpUpw%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/CAGAbt9M3N%2BU8eewvChkZk9s1r75DQ7t_qnO%2Bm5VMV8Y0VSh6zQ%40mail.gmail.com.


Re: Developing django apps in jupyter

2021-11-29 Thread carlos
the quick answer NO, no use jupyter for developing django, better search a
IDE like Visual Code, or sublime text text editor

 https://code.visualstudio.com/  #free
https://www.sublimetext.com/  # free

https://www.jetbrains.com/es-es/pycharm/

On Mon, Nov 29, 2021 at 7:40 AM kayhan  wrote:

> Hi, I am using the free version of Paycharm.
> VS code is also good and is smaller than Paycharm.
>
> On Mon, Nov 29, 2021 at 4:53 PM 'MH' via Django users <
> django-users@googlegroups.com> wrote:
>
>> Hi everyone
>>
>> I have built a few django apps, but on a very basic level and only for my
>> own usage. Little helpers for self management. So far I just used vi(m).
>>
>> Now I tried out jupyter for the first time. Looks great and thanks to a
>> few links from Google I could also load the django kernel in jupyter. Still
>> I am not sure how to use juypter in order to develop django apps. Is this
>> making sense to you? I either have one of those
>> demonstration-/documentation-oriented notebooks *or* I have a plain py
>> file as usual in django apps.
>>
>> My two questions are:
>> 1. Do you use juypter for django development?
>> 2. If not, which editor or free IDE do you use?
>>
>> Best regards
>> M
>>
>> --
>> 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/32085ce1-4bdc-4dfe-a031-9e4d6b15c9abn%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/32085ce1-4bdc-4dfe-a031-9e4d6b15c9abn%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/CAO-vjEQ1Z-NPsTT_nQkyrX272qOi81q%3Dkq3DmcO1GVTMhiUb4w%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAO-vjEQ1Z-NPsTT_nQkyrX272qOi81q%3Dkq3DmcO1GVTMhiUb4w%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO1ODyzxV3ZZvFOPSFy-EG9GiJwLk5bpt-bDBk4tRCDjkA%40mail.gmail.com.


Re: Django Chat Application

2021-11-29 Thread carlos
Channels ?
https://channels.readthedocs.io/en/stable/

On Mon, Nov 29, 2021 at 7:35 AM GCiTek Dev  wrote:

> Can i get best package or refrences for chatboat & chatbox
>
> --
> 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/fe61e07a-732d-46f4-ac59-ab3c6fae19f5n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/fe61e07a-732d-46f4-ac59-ab3c6fae19f5n%40googlegroups.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO22WCZ%2BiV55yEdCLjjiqqSvR0evqynDfwf6SV%2Bepn8b3w%40mail.gmail.com.


Re: SQL query to django

2021-10-09 Thread carlos
ok, try this but is only idea (i don't is working)

from django.db.models import Count

result = (YY.objects
.values('time_frame','status')
.annotate(timecount=Count('time_frame'))
.order_by('status')
)

read this for understand
https://docs.djangoproject.com/en/3.2/topics/db/aggregation/

if this no help you maybe this way

results = YY.objects.raw('SELECT status FROM YY GROUP BY time_frame')

and read this too for understand
https://docs.djangoproject.com/en/3.2/topics/db/sql/#topics-db-sql

Cheers

On Sat, Oct 9, 2021 at 2:52 AM Eugene TUYIZERE 
wrote:

> Dear all,
>
> I have a table let call it *YY*. Some fields in this table are status,
> time_frame, etc.
> time frame is in terms of years and status are Not started, In progress
> and Completed. I want to display all services Not started, in progress and
> completed in each year.
> And at the end to display this on bar chart. but What I most want is the
> query.
>
> I want to transform this SQL query in Django:
>
> SELECT status from YY group by time_frame;
>
> please assist
>
> --
> *TUYIZERE Eugene*
>
>
> --
> 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/CABxpZHsysRxgE9bn9c9naLY%2BtWmKRfwpr%2BUsMYiAV_ZcPC_3Hw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CABxpZHsysRxgE9bn9c9naLY%2BtWmKRfwpr%2BUsMYiAV_ZcPC_3Hw%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO1KKmhjhCbFfO756tqwgOaKsAN-qiL-MhH%3D8KiGfbd9XQ%40mail.gmail.com.


Re: How to use inspectdb to generate a model for a table owned by a specific schema.

2021-09-09 Thread carlos
Hi, read this maybe help you!

https://stackoverflow.com/questions/21986917/running-inspectdb-on-a-specific-schema

On Thu, Sep 9, 2021 at 8:09 AM Nemani Srinivas Murthy 
wrote:

> Hi, I'm looking for a solution for generating the model.py file for a
> table which is owned by a specific schema ., I tried the
> below option but no luck.
>
> *python manage.py inspectdb --database=  *
>
>
> --
> 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/bc685fe7-93c8-4e35-b0d5-33bfe549169an%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/bc685fe7-93c8-4e35-b0d5-33bfe549169an%40googlegroups.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO28qnfMXE%3DfwBcVgq61G7mWMt_gH_zbHXGmSDuKA75PBg%40mail.gmail.com.


Re: Django and Progressive web application

2021-08-27 Thread carlos
maybe try this apps https://github.com/silviolleite/django-pwa
and this tutorial
https://www.geeksforgeeks.org/make-pwa-of-a-django-project/

Cheers

On Thu, Aug 26, 2021 at 12:41 PM Gerardo Palazuelos Guerrero <
gerardo.palazue...@gmail.com> wrote:

> Hello Duncan,
> First thing first: I'm not affiliated in any way to the following resource.
>
> The other day I found pythonyoga.com. And I saw they have a course on
> using Django while creating a PWA.
> Not sure how that can be helpful to you.
>
> Regards,
>
> --
> Gerardo Palazuelos Guerrero
>
>
>
> On Thu, Aug 26, 2021 at 11:33 AM Duncan Santiago <
> duncansantiag...@gmail.com> wrote:
>
>> I have been trying to bring in the concept of progressive web application
>> to my django websites. I have had issue with with the service worker, the
>> major problem is the scope attribute. When  I leave the scope unconfigured
>> it defualts to the static folder, which means I cannot cache an html file
>> since normally I would store html files in a separate folder from the
>> static files. I want my cached files to include html file as well
>>
>> --
>> 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/c406d87a-8a19-40ee-b8b9-6e813268ea28n%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/c406d87a-8a19-40ee-b8b9-6e813268ea28n%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/CAJ8iCyOWamojcV%2BgPwFDaRbcu7-v4VCEtJmW%3DCf%2BCgh_Vw1XZg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAJ8iCyOWamojcV%2BgPwFDaRbcu7-v4VCEtJmW%3DCf%2BCgh_Vw1XZg%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO0ydOnoNi1qf8-VsxsiDUKmwxqOWG8CQiGeCAMoB-9O-w%40mail.gmail.com.


Re: Best way to optimize API requests calls from over 10,000 users simultaneously

2021-06-21 Thread carlos
maybe try used cache when call many users
https://www.django-rest-framework.org/api-guide/caching/

Cheers

On Mon, Jun 21, 2021 at 8:18 AM Kasper Laudrup 
wrote:

> On 21/06/2021 15.55, Sunday Iyanu Ajayi wrote:
> > I want to be able to manage API calls from over 1 users without
> > getting network timeout errors
>
> Are you having issues doing so now?
>
> What have you done to try and profile your code for bottlenecks?
>
> What kind of help are you looking? Paid consultancy?
>
> Etc.
>
> You cannot really expect anyone to be able to help you if you don't take
> some time trying to formulate a real question.
>
> Kind regards,
>
> Kasper Laudrup
>
> --
> 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/7a436427-1069-d173-3e32-0339be9328dc%40stacktrace.dk
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO33XnZDcXrjQJS%2Bbawy7%3D_HTAMfxfa2MT8ruyDXkE8h%2Bw%40mail.gmail.com.


Re: optimisation django

2021-02-10 Thread carlos
Hi, read about this topics
https://docs.djangoproject.com/en/3.1/ref/models/querysets/#select-related
#for FK relations

https://docs.djangoproject.com/en/3.1/ref/models/querysets/#prefetch-related-objects
# for M2M relations

and read about pagination
https://docs.djangoproject.com/en/3.1/topics/pagination/

maybe this 3 topics help you about optimization your applications

Cheers

On Wed, Feb 10, 2021 at 8:02 AM Mottaz Hegaze  wrote:

> Use pagination and select_related , prefetch_related.
>
> Also consider using caching
>
>  Default django pagination will load all rows then paginate them , which
> will consume time and hits on database.
>
> Search for a custom pagination solution that loads 10 rows by 10 rows as
> an example
>
> On Wed, 10 Feb 2021, 3:55 pm kévin endelin, 
> wrote:
>
>>
>> I am developing a django application, most of the views are tables, I am
>> facing a problem the loading time of my page is extremely long. how can
>> I do to optimize this, my data set represents more than 100,000 rows. thank
>> you for your help ^^
>>
>> --
>> 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/9a30277b-78d4-49c7-ac0a-399717ed7fe3n%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/9a30277b-78d4-49c7-ac0a-399717ed7fe3n%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/CAHV4E-fByf5F%2B-x_TN%2B0Uo_u5VwqZ2__ff-DP24jS9kNJJ07Kw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAHV4E-fByf5F%2B-x_TN%2B0Uo_u5VwqZ2__ff-DP24jS9kNJJ07Kw%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO1A5hKPePy3zN2pPS9pfxLvQO-HK1XZW%2BZ1tVexo63TBA%40mail.gmail.com.


Re: Django and Ajax

2021-01-17 Thread carlos
this is a example Django and Ajax maybe help you
https://simpleisbetterthancomplex.com/tutorial/2016/08/29/how-to-work-with-ajax-request-with-django.html

On Sun, Jan 17, 2021 at 5:18 PM www.forum-gh.com 
wrote:

> Hello,
>  Please I need your help on this, I am an absolute beginner, how
> can I create a filter using ajax for example when the user selects Ghana
> from a dropdown then data related to this country will show without
> refreshing the page.
> 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/CALYpPT9Mea5rhpnXUcykTztawkMY4uX%2BUcCth_hwG%3D2_QiqCsQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CALYpPT9Mea5rhpnXUcykTztawkMY4uX%2BUcCth_hwG%3D2_QiqCsQ%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO0bje%3DXwtrngrtRdyRuzDwtccU9%2BWinQOkCRor7e3ighQ%40mail.gmail.com.


Re: How to generate points kilometers from a road

2021-01-05 Thread Juan Carlos F.

Exactly, what I need is to calculate the point on the road from the 
kilometer point PK 50 + 350 meters on the road, but not in a straight line 
but following the road  

El martes, 5 de enero de 2021 a las 14:12:56 UTC, Juan Carlos F. escribió:

> Hi everybody
>
> I am new and I need to know if the library or how I could generate the 
> kilometer points starting from a polyline. 
>
> Thanks for the info  
>

-- 
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/7716ea17-be8b-40e6-bb6f-9e49a5b4a21en%40googlegroups.com.


Re: How to generate points kilometers from a road

2021-01-05 Thread Juan Carlos F.

Exactly, what I need is to calculate the point on the road from the 
kilometer point PK 50 + 350 meters on the road, but not in a straight line 
but following the road  

El martes, 5 de enero de 2021 a las 14:12:56 UTC, Juan Carlos F. escribió:

> Hi everybody
>
> I am new and I need to know if the library or how I could generate the 
> kilometer points starting from a polyline. 
>
> Thanks for the info  
>

-- 
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/4098522f-cc63-4f4d-9cd1-613c4166eaedn%40googlegroups.com.


How can I segment a roads?

2021-01-05 Thread Juan Carlos F.
Hi everyone, 

I'm a new in django and python and i have a problem .I would like to know 
how I can segment a road by kilometer points . 

Any help is welcome. 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/3e6aa653-58d4-4cbd-853b-7ef5e1227221n%40googlegroups.com.


How to generate points kilometers from a road

2021-01-05 Thread Juan Carlos F.
Hi everybody

I am new and I need to know if the library or how I could generate the 
kilometer points starting from a polyline. 

Thanks for the info  

-- 
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/e8a7444f-5136-4977-986e-e0114fcaab32n%40googlegroups.com.


Re: Configuration Django with uwsgi + NGINX

2020-12-29 Thread carlos
https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-uwsgi-and-nginx-on-ubuntu-16-04

On Tue, Dec 29, 2020 at 4:57 AM Django-Learner_27 
wrote:

>
> Hi, I want to know about configuration steps for connecting Django with
> uwgsi + NGINX. I tried through some web links but I am getting errors.
> Thanks in advance.
>
> --
> 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/d46ce54c-15a2-42a4-8cb8-33a532ceb592n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/d46ce54c-15a2-42a4-8cb8-33a532ceb592n%40googlegroups.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO12PqttzPrPuOZ_dZ6M7NBWyzLPb3oDgq5A5kTM_op55Q%40mail.gmail.com.


Re: Ongoing project

2020-12-19 Thread Carlos Romero Martin
Hello Peter, 
I’m interested to join team. 
Carlos Romero Martin

Le vendredi 18 décembre 2020, 17 h 49 min 30 s CET Sujayeendra G a écrit :
> Hello Peter,
> I’m interested to join team.

-- 







-- 
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/10946928.OTuG6Y1yve%40laptopcrm.


Re: Looking to join a team in a Django Project to gain Experience

2020-11-30 Thread Carlos Romero Martin
I'm interested

Regards

Carlos Romero Martin



Le lundi 30 novembre 2020, 5 h 16 min 24 s CET Nagaraju Singothu a écrit :
> I'm interested
> 
> On Mon 30 Nov, 2020, 8:56 AM ,  wrote:
> > Hi Cesar,
> > 
> > 
> > 
> > If you can send me you email to contact you as I am interested
> > 
> > 
> > 
> > Ahmed Khairy
> > 
> > ahmed.heshamel...@gmail.com
> > 
> > 
> > 
> > *From:* django-users@googlegroups.com  *On
> > Behalf Of *Cesar Alvarez
> > *Sent:* Monday, September 21, 2020 9:25 PM
> > *To:* django-users@googlegroups.com
> > *Subject:* Re: Looking to join a team in a Django Project to gain
> > Experience
> > 
> > 
> > 
> > Hi there,
> > 
> > At the moment I am working in a web application which I am going to offer
> > to a company who I know need it, this web application will be used to
> > improve internal auditors jobs from that company!
> > 
> > It would be a pleasure to involve you in this project and becoming us
> > partners went the client buys the web app...
> > 
> > 
> > 
> > Thank you and regards
> > 
> > César Álvarez Moná
> > 
> > From Colombia
> > 
> > 
> > 
> > El lun., 21 sep. 2020, 7:39 p.m., ahmed.he...@gmail.com <
> > ahmed.heshamel...@gmail.com> escribió:
> > 
> > Hi all,
> > 
> > 
> > 
> > I am looking for a team of developers to join them in a project to enhance
> > my skills and add to my portfolio.  I am available part time.
> > 
> > 
> > 
> > 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/6e15411d-b25d-40c8-a987-e65
> > da9b3c297n%40googlegroups.com
> > <https://groups.google.com/d/msgid/django-users/6e15411d-b25d-40c8-a987-e
> > 65da9b3c297n%40googlegroups.com?utm_medium=email_source=footer> .
> > 
> > --
> > You received this message because you are subscribed to a topic in the
> > Google Groups "Django users" group.
> > To unsubscribe from this topic, visit
> > https://groups.google.com/d/topic/django-users/K6Q9JLiQIfk/unsubscribe.
> > To unsubscribe from this group and all its topics, 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/CABTGc-oxkVweLCY5V5fE198yBK
> > Rj77U1ROKmJRJQF0t00qeHzw%40mail.gmail.com
> > <https://groups.google.com/d/msgid/django-users/CABTGc-oxkVweLCY5V5fE198y
> > BKRj77U1ROKmJRJQF0t00qeHzw%40mail.gmail.com?utm_medium=email_source=fo
> > oter> .
> > 
> > --
> > 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/004a01d6c6c8%2463af73d0%242
> > b0e5b70%24%40gmail.com
> > <https://groups.google.com/d/msgid/django-users/004a01d6c6c8%2463af73d0%2
> > 42b0e5b70%24%40gmail.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/5504404.8cx8xeCeO2%40laptopcrm.


Was I supposed to be able to create a question on the website using 'runserver'?

2020-11-11 Thread Carlos Henrique
I'm following this 
 
Django tutorial. So far I haven't had an issue so far, but now I'm not 
really sure if I understood it correctly. We created a shortcut function to 
create questions, but I thought that it was meant to be user-side and when 
I use 'runserver', on the website there's no such option, only the 
previously created question. This is the code for the function:
def create_question(question_text, days): """ Create a question with the 
given `question_text` and published the given number of `days` offset to 
now (negative for questions published in the past, positive for questions 
that have yet to be published). """ time = timezone.now() + 
datetime.timedelta(days=days) return 
Question.objects.create(question_text=question_text, pub_date=time) 

Did I get it wrong? This function is only admin-sided? It's on 
'polls/test.py' and it's outside every class.

-- 
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/f4dfe964-3417-4605-af26-d99a0d8fa4b5n%40googlegroups.com.


Re: Django and Vuejs

2020-10-02 Thread carlos
https://github.com/vchaptsev/cookiecutter-django-vue

https://github.com/gtalarico/django-vue-template

On Fri, Oct 2, 2020 at 7:29 AM Agnese Camellini 
wrote:

> I've found a lot on the web, even including VueJs in the page with a CDN
> call in the head and then modifying the delimiters to divide the behaviour
> ov Vue from the one of the templates, but then i discussed with the front
> end part of my open source project and we decided to make everything with
> django rest framework and a different domain to serve the front end, auth
> is made with cookies and without backend session, but you can make it with
> JWT authentication.
> I don't remember the url where i took the infos, but it's better to divide
> front end from back end.
> My 2 cents
> Agnese
>
> On Fri, 2 Oct 2020 at 15:08, lada...@gmail.com 
> wrote:
>
>> what is the best way of joining django and vue. Articles, books will help
>> 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/7d40ed9e-3b59-4e4e-895c-09d15603c286n%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/7d40ed9e-3b59-4e4e-895c-09d15603c286n%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/CACXuh-RaMs3cj%3D5bwEQnVDCv_okY_i9YyoKCQmSho%3DBPR-QPFg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CACXuh-RaMs3cj%3D5bwEQnVDCv_okY_i9YyoKCQmSho%3DBPR-QPFg%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO3fv2BF_PD055TJgAqMhNH14EuEc2dawo833ZBn0J%3DtDA%40mail.gmail.com.


Re: Regarding OTP based login- Django

2020-09-29 Thread carlos
Gabriel
one-time password

On Tue, Sep 29, 2020 at 12:34 PM Gabriel Araya Garcia <
gabrielaraya2...@gmail.com> wrote:

> Que es eso de OTP?,...que significan esas siglas ?
>
> Gabriel Araya Garcia
> GMI - Desarrollo de Sistemas Informáticos
>
>
>
>
> El vie., 25 sept. 2020 a las 10:55, Rahul Gour ()
> escribió:
>
>> Hello,
>>
>> TIA.
>>
>> I am new in django, can anyone help me for OTP based login in my app.
>>
>> I am working on a ecommerce app and want to login otp based login and
>> dont know or getting much on google that how to integrate phone number with
>> django user model or want to use custom user model.
>>
>>
>> Regards,
>> Rahul Gour
>>
>> --
>> 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/CAFi6BNX1qfhDF1zqY7xt4aD%2B7F7mgNXmApxZ%2BquigQYxSgsinw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAFi6BNX1qfhDF1zqY7xt4aD%2B7F7mgNXmApxZ%2BquigQYxSgsinw%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/CAKVvSDCPEc%2BWqDD4Yk2o9_o9_F9uFT_8TpmheiVMJ_3O%3DTNuPw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAKVvSDCPEc%2BWqDD4Yk2o9_o9_F9uFT_8TpmheiVMJ_3O%3DTNuPw%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO3eAK1gOAm5KFOxG9F%3DXxgBt9kmW5zd0DVTNzxXV4PjSg%40mail.gmail.com.


django widget radio button error save is not touch

2020-09-06 Thread carlos
Hi, i have a problem when save a field in radio button
in my models have this
CHOICES_OPTIONS = (
 (1, 'Yes'),
(2, 'No'),
)

class MyModels(...):
   myfield = models.IntegerField(choices=CHOICES_OPTIONS, null=True,
blank=True)
   

class MyModelsForm()
   myfield = forms.ChoiceField(widget=forms.RadioSelect,
choices=CHOICES_OPTIONS,
   required=False)

but when save the forms in my views this sends this error:

Field 'myfield' expected a number but got ''.

sometimes the user does not select anything neither yes nor no, the radio
button they won't touch it

How can I make that null field be saved without any value and it does not
throw me that error

-- 
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/CAM-7rO3gTb%2BdU8dZG-WErBhWmZvArTiAKM_21mxqw5__7Nmavw%40mail.gmail.com.


Re: chatbot application

2020-08-14 Thread carlos
https://channels.readthedocs.io/en/latest/tutorial/index.html#tutorial

On Fri, Aug 14, 2020 at 2:40 PM Karan Sahu 
wrote:

> Hi Md,
> Karan here , i have experience to work on the chat app (Chatbot).
>
> Kindly let  me know when you are available so we can discuss further.
>
> Best,
> Karan
>
> On Sat, Aug 15, 2020 at 12:19 AM Md Moradul Siddique <
> moradul.just.cs...@gmail.com> wrote:
>
>> Hello everyone, I want to developing a django project like chat app . Any
>> one working on chatapp so help me to build that app or give me the
>> repository.
>>
>> --
>> 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/0b7d3b92-fbf5-49a3-b9e4-275d5295e1f0o%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/0b7d3b92-fbf5-49a3-b9e4-275d5295e1f0o%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/CAOWRdhBxm5VZ9H53vXJthENgQWFiLoaGC_Tp8gw7PZiNxSmjQA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAOWRdhBxm5VZ9H53vXJthENgQWFiLoaGC_Tp8gw7PZiNxSmjQA%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO1t%3DWFgUGvDnxQ%3DAF6R87VzZtTYL2RDdeapKhheiNThBA%40mail.gmail.com.


Django access the Default database (prod/dev) when testing and Fatal Error

2020-08-13 Thread Carlos Leite
Hello everyone, 

I run into a odd situation while trying to run some tests in an old project 
(dj 1.8)
Then I tried the same on a django 3.1 and the problem is still there. 

# models.py  #
class Disco(models.Model):
nome = models.CharField('disco', max_length=50)

class Musica(models.Model):
disco = models.ForeignKey(Disco, on_delete=models.CASCADE)
nome = models.CharField('nome do disco', max_length=50)

# forms.py  #
class MusicForm(forms.Form):
 ''' ... like a search form, I need option from database '''
 disco = forms.ChoiceField(choices=Disco.objects.all())

# tests.py  #
# in the tests.py I just need to import the form to have the odd bahaviour

from django.test import TestCase
from .forms import MusicForm

... I just need to import the `MusicForm` to have the erros 
# the error #
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
   django.db.utils.OperationalError: FATAL:  database "disccollection" does 
not exist

I was trying to run tests, so the database to hit should be  `test_
disccollection`
but not `disccollection` (in my settings.py). 
That may happends because django test framework only changes the 
settings.database.default alias after my form was initialized.

Is it a known bug or a bug at all ? 

I dont kknow not even search for this on django bugs . 

Have anybody seem there before ?

PS: I put a sample code on 
https://github.com/cadu-leite/django18py2testdb/tree/dj33py3test



-- 
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/91dcb131-749c-4065-bd37-e94d62249398n%40googlegroups.com.


Re: Campo auto incremento

2020-07-22 Thread carlos
https://docs.djangoproject.com/en/3.0/topics/db/models/#automatic-primary-key-fields

On Wed, Jul 22, 2020 at 6:52 PM Velho Oeste Truck 
wrote:

> Pessoal, estou com uma duvida, se alguém puder me ajudar.
>
> criei inicialmente um model sem ID, o Django então gerou a padrao...só
> que estou trabalhando com Oracle 11, o Django gera esse campo como auto
> incremento e o Oracle na versao 11 nao comporta...
>
> Alterei minha model então, gerando minha pk, exclui o arquivo initial.py
> executando novamente o makemigrate..detalhe, o django continua gerando o
> campo auto increment da maneira dele...
>
> esse é o campo na minha model
>
> id = models.IntegerField(primary_key=True),
>
>
>
> esse é o gerado no arquivo initial
>
> ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, 
> verbose_name='ID')),
>
>
> como fazer o Django  criar exatamente da maneira que estou passando na
> model..
>
>
> --
> 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/d020d60b-4dde-4e09-861a-cac5c777fe33o%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/d020d60b-4dde-4e09-861a-cac5c777fe33o%40googlegroups.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO3hYZKH-2DVD9X8xOc9k85HeSE90A_RHPN157CDornA9w%40mail.gmail.com.


Re: Two factor authentication using OTP

2020-07-16 Thread carlos
https://github.com/django-otp/django-otp-yubikey

On Thu, Jul 16, 2020 at 7:50 AM Kasper Laudrup 
wrote:

> Hi o1bigtenor,
>
> On 16/07/2020 15.18, o1bigtenor wrote:
> >
> > As a person who has very very very terrible wireless phone reception
> > where I live I would hope that there is some other method that can be
> > used to help with two factor authentication without using the bloody
> > useless cell phone.
> > It seems that the programming community thinks that everyone has
> > absolutely wonderful reception so that the use of a SMS text is a
> > wonderful idea.
> > There must be a better option that doesn't need to use of a cell phone.
> > (I hope and if not one should be found!)
> >
> > Please rethink your proposed plan sir!
> >
>
> In addition to that, it might be worth considering that accessing the
> web site from the same phone as the one receiving the one-time password
> defeats the whole purpose of two factor authentication if an attacker
> has control over the phone.
>
> Key cards with pregenerated one time codes or something like YubiKey:
>
> https://en.wikipedia.org/wiki/YubiKey
>
> seems like a much better option.
>
> Kind regards,
>
> Kasper Laudrup
>
> --
> 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/9357377a-13c6-c4bc-7328-70179ce99d15%40stacktrace.dk
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO0WWhR41rdY9mKuLtErKP-uWgvfR%2BE21WWr7-%2BWQ5iFDg%40mail.gmail.com.


Re: Performance queries helps

2020-07-15 Thread carlos
Budi Hermansyah  no, but I think i can improve the queries but I don't know
how: /
the debug toolbar show many many queries to the database * (44 queries
including 34 duplicates ) i don't know duplicates*

On Sat, Jul 11, 2020 at 10:58 AM damanjeet kaur 
wrote:

> {% for news7 in newscat7 %}
> {{news7.name <http://news.name/>}}
> {{news7.date|date:'Y-m-d'}}
> {{news7.body|safe|truncatewords:20}}
> {{news7.category.all.0}}
>Read More
> {% endfor %}
>
>
>
> On Sat, Jul 11, 2020 at 10:46 AM carlos  wrote:
>
>> Hi, i need any advice for performance queries
>> i have a model name Post
>> post have m2m categories and fk author
>>
>> the index page show 7 categories in separated row
>> i try performance
>> this example
>> queryset_global =
>> Post.objects.filter(status__contains='publish').prefetch_related('category').select_related('author')
>> then i make 7 queries for 7 categories show in index page.
>>
>> newscat1
>> = 
>> queryset_global.filter(category__slug__contains="cat1_name").order_by('-date')[:5]
>> newscat2
>> = 
>> queryset_global.filter(category__slug__contains="cat2_name").order_by('-date')[:5]
>> newscat3
>> = 
>> queryset_global.filter(category__slug__contains="cat3_name").order_by('-date')[:5]
>> newscat4
>> = 
>> queryset_global.filter(category__slug__contains="cat4_name").order_by('-date')[:5]
>> newscat5
>> = 
>> queryset_global.filter(category__slug__contains="cat5_name").order_by('-date')[:5]
>> newscat6
>> = 
>> queryset_global.filter(category__slug__contains="cat6_name").order_by('-date')[:5]
>> newscat7
>> = 
>> queryset_global.filter(category__slug__contains="cat7_name").order_by('-date')[:5]
>>
>> i retrieve 35 post for show in index page
>>
>> *according debug toolbar this produce SQL*
>> *2599.59 ms (44 queries including 34 duplicates )*
>>
>> Why?
>>
>> but when i loop in template index.html
>> {% for news1 in newscat1 %}
>> {{news.name}}
>> {{newa.date|date:'Y-m-d'}}
>> {{news.body|safe|truncatewords:20}}
>> {{news.category.all.0}}
>>Read More
>> {% endfor %}
>>  ...
>> this repeat in the template 7 time
>> ...
>> {% for news7 in newscat7 %}
>> {{news.name}}
>> {{newa.date|date:'Y-m-d'}}
>> {{news.body|safe|truncatewords:20}}
>> {{news.category.all.0}}
>>Read More
>> {% endfor %}
>>
>>
>> *according debug toolbar this produce SQL*
>> *3463.65 ms (86 queries including 77 duplicates )*
>>
>> this is incredible it doubles the amount of queries to the db that may be
>> happening?
>>
>> i need some ideas or tips
>>
>> Cheers
>>
>> --
>> 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/CAM-7rO1nzzqWf_cpQOrjYwQmxkd77H0AJ8W03FS%3D%2BoA3gEE4zg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAM-7rO1nzzqWf_cpQOrjYwQmxkd77H0AJ8W03FS%3D%2BoA3gEE4zg%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/CAJTCr6E2Vk_VMuRMBpUftmGLnyCbWUq1Dkq6ZN2ttn0xmody3Q%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAJTCr6E2Vk_VMuRMBpUftmGLnyCbWUq1Dkq6ZN2ttn0xmody3Q%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO1Jc_Dv4vOq4B_HJXHPioorn_cX_cmcJJCe1ouTC56rzw%40mail.gmail.com.


Re: How to Cache a function in Django?

2020-07-14 Thread carlos
Thank!

On Mon, Jul 13, 2020 at 10:24 AM Kasper Laudrup 
wrote:

> Hi Carlos,
>
> On 13/07/2020 17.58, carlos wrote:
> > Hi, i need cache a function in Django
> > example
> >
> > def function1(request):
> >  some code ...
> >  return dict
> >
> > i know cache_page(50 * 10) but this functions in not a page is only a
> > function
> > return a dictionary.
> >
>
> What you most likely mean, is that you're looking for how to cache a
> function in Python. Have a look at the cached_property or lru_cache
> decorators.
>
> https://docs.python.org/3/library/functools.html
>
> Just remember caching can be tricky.
>
> Kind regards,
>
> Kasper Laudrup
>
> --
> 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/f21fe357-a409-81d1-ef08-f587a9e17c1f%40stacktrace.dk
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO2icSDDgAnF4R7SV1iM_DvAwtLYJBw94Hize-G1Ni5kxA%40mail.gmail.com.


How to Cache a function in Django?

2020-07-13 Thread carlos
Hi, i need cache a function in Django
example

def function1(request):
some code ...
return dict

i know cache_page(50 * 10) but this functions in not a page is only a
function
return a dictionary.

Cheers

-- 
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/CAM-7rO0Crb44eKZ0hWEntCeN6xaZCXmEN1p3iwT1jMskQDH4uA%40mail.gmail.com.


Performance queries helps

2020-07-10 Thread carlos
Hi, i need any advice for performance queries
i have a model name Post
post have m2m categories and fk author

the index page show 7 categories in separated row
i try performance
this example
queryset_global =
Post.objects.filter(status__contains='publish').prefetch_related('category').select_related('author')
then i make 7 queries for 7 categories show in index page.

newscat1
= 
queryset_global.filter(category__slug__contains="cat1_name").order_by('-date')[:5]
newscat2
= 
queryset_global.filter(category__slug__contains="cat2_name").order_by('-date')[:5]
newscat3
= 
queryset_global.filter(category__slug__contains="cat3_name").order_by('-date')[:5]
newscat4
= 
queryset_global.filter(category__slug__contains="cat4_name").order_by('-date')[:5]
newscat5
= 
queryset_global.filter(category__slug__contains="cat5_name").order_by('-date')[:5]
newscat6
= 
queryset_global.filter(category__slug__contains="cat6_name").order_by('-date')[:5]
newscat7
= 
queryset_global.filter(category__slug__contains="cat7_name").order_by('-date')[:5]

i retrieve 35 post for show in index page

*according debug toolbar this produce SQL*
*2599.59 ms (44 queries including 34 duplicates )*

Why?

but when i loop in template index.html
{% for news1 in newscat1 %}
{{news.name}}
{{newa.date|date:'Y-m-d'}}
{{news.body|safe|truncatewords:20}}
{{news.category.all.0}}
   Read More
{% endfor %}
 ...
this repeat in the template 7 time
...
{% for news7 in newscat7 %}
{{news.name}}
{{newa.date|date:'Y-m-d'}}
{{news.body|safe|truncatewords:20}}
{{news.category.all.0}}
   Read More
{% endfor %}


*according debug toolbar this produce SQL*
*3463.65 ms (86 queries including 77 duplicates )*

this is incredible it doubles the amount of queries to the db that may be
happening?

i need some ideas or tips

Cheers

-- 
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/CAM-7rO1nzzqWf_cpQOrjYwQmxkd77H0AJ8W03FS%3D%2BoA3gEE4zg%40mail.gmail.com.


Re: Need Covid 19 Database for Experiments

2020-07-02 Thread carlos
https://www.kaggle.com/allen-institute-for-ai/CORD-19-research-challenge

On Thu, Jul 2, 2020 at 11:43 AM mohamed khaled <
mohamed.khaled33...@gmail.com> wrote:

> go to Kaggle website you will see or IEEE
>
> On Thu, 2 Jul 2020 at 19:38, Balaji Shetty  wrote:
>
>> Hi
>>
>> Can anyone provide me Covid 19 Database.
>> I need Covid 19 Database for Experiments
>>
>> Thank you
>>
>>
>> --
>> Mr Shetty Balaji
>> Asst. Prof.
>> IT Department
>> SGGS I
>> Nanded. My. India
>>
>> --
>> 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/CAECSbOuuNCY58sB1g2f_ftHtpAs3FamSq%2BBJJZ%2BA5mv_3%3Dw3NQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAECSbOuuNCY58sB1g2f_ftHtpAs3FamSq%2BBJJZ%2BA5mv_3%3Dw3NQ%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/CALvPq4LpBxANvRc_JSnEFXdyi7yiNeqrUYFtkW9bofMVTufHVg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CALvPq4LpBxANvRc_JSnEFXdyi7yiNeqrUYFtkW9bofMVTufHVg%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO0_h1o1NJZzBDiLSjnP9z%3DU7VM3joEjpZ%3DVh%3Dmz7Lg8Mw%40mail.gmail.com.


Re: Work in django!!

2020-06-16 Thread carlos
geodjango!

On Tue, Jun 16, 2020 at 10:35 PM RANGA BHARATH JINKA <
bharathjink...@gmail.com> wrote:

> Hi, You can use the folium package.
>
> On Wed, Jun 17, 2020 at 9:28 AM meera gangani 
> wrote:
>
>> Hello ,
>>
>>I want to work with maps in django, which libraries i installed!
>>
>> Thank to you in advance
>> -Meera
>>
>>
>> --
>> 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/CANaPPPKCrrTbdUNC-JDujx7wn05kp%3Dd5xXbu-qKYsGH%2BGO00YQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CANaPPPKCrrTbdUNC-JDujx7wn05kp%3Dd5xXbu-qKYsGH%2BGO00YQ%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>
>
> --
> Thanks and Regards
>
> J. Ranga Bharath
> cell: 9110334114
>
> --
> 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/CAK5m3158B8nSkjKRrY1KGZ7p3G2MY%2Be-Pkv9kqYDXBbZ3BV-8A%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAK5m3158B8nSkjKRrY1KGZ7p3G2MY%2Be-Pkv9kqYDXBbZ3BV-8A%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO3fxcZND0GozLpR%2BO-4d_YQXDN6kRQ4v%3DfzcmVVDEbwtQ%40mail.gmail.com.


Re: Django 1.11 security backports

2020-06-09 Thread carlos
i think no!

On Tue, Jun 9, 2020 at 10:21 AM Nikolas J. Nyby 
wrote:

> Is anyone maintaining an unofficial Django 1.11 security backports branch?
>
> I'm migrating to Django 2.2 as soon as possible, but I was just curious if
> anyone has a branch with the recent security fixes ported in to Django 1.11.
>
> --
> 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/04422a43-c652-496a-b932-7f08f49f2915o%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/04422a43-c652-496a-b932-7f08f49f2915o%40googlegroups.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO3RO7NLXo4mon8xXbdWwPvSrgd0bB4EGP0neKDdh1iqcw%40mail.gmail.com.


Re: Python 3.8 Installed, yet Django 1.11 is Automatically Being Installed on Mac

2020-06-08 Thread carlos
Hi, the best think your work in mac with python is pyenv and
pyenv-virtualenv
and install all with brew. and you never have a problem really
https://github.com/pyenv/pyenv
https://github.com/pyenv/pyenv-virtualenv
other tutorial
https://medium.com/@viviennediegoencarnacion/managing-python-virtual-environments-on-mac-using-pyenv-5fdd34951fcd
https://alysivji.github.io/setting-up-pyenv-virtualenvwrapper.html

On Mon, Jun 8, 2020 at 9:13 PM JEGATHEESWARAN SUNDARAVADIVEL <
jagatheesjo...@gmail.com> wrote:

> Hi
> You can give a try like this,
> python3 -m virtualenv environmentname
>
> They , pip3 install django
>
> Thanks and regards,
> Jegatheeswaran
>
> On Tue, 9 Jun 2020 at 08:35, arhoon io 
> wrote:
>
>> Hello,
>>
>> I have installed and successfully confirmed that Python 3.8 works on my
>> Mac.  However, when I pip installed the latest version of Django, it
>> automatically installed Django 1.11 even though I have Python 3.8.
>>
>> When typing in "python" into terminal, it runs Python 2.7 - so that is my
>> guess.
>>
>> If that is true, how do I get the actual latest version of Django (3.0)?
>>
>> 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/d02c23bd-0c04-47c1-8602-63c74e35e144o%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/d02c23bd-0c04-47c1-8602-63c74e35e144o%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
> --
> JAGATHEESWARAN
>
> --
> 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/CAHM%2BSVrKWB%2Bsw0NwWOW9oqHf%2B3K%3DFNhvzA-0-izPtrkmsc3iMA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAHM%2BSVrKWB%2Bsw0NwWOW9oqHf%2B3K%3DFNhvzA-0-izPtrkmsc3iMA%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO1OHpbtMX6OKXn8s2Th%3DhRoGYqeW4g9r%3DXp77pvj3%3D50Q%40mail.gmail.com.


Re: problem with feed

2020-04-24 Thread carlos
Is a VPS Digital Ocean

On Fri, Apr 24, 2020 at 1:28 AM John McClain  wrote:

> often you have to manage configurations on the host as well. What configs
> have you set in the host account
>
> On Fri, 24 Apr 2020 at 06:09, carlos  wrote:
>
>> Hi, i have a website with SSL certificate
>> but when create feed syndication the link protocol always is http why?
>>
>> how to change to https? in site_id a put only www.mydomain.com in
>> syndication say
>>
>> http://www.mydomain.com/news/
>>
>> any idea o link to find the problem in my setting put this
>>
>> SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
>> SECURE_SSL_REDIRECT = True
>> SESSION_COOKIE_SECURE = True
>> CSRF_COOKIE_SECURE = True
>>
>> but nothing not change the protocol in feed :/
>>
>> any help is welcome
>>
>> Cheers
>> --
>>
>> --
>> 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/CAM-7rO0tkdkGF%3DnkdK2DK86MWL9WXMhEDvz%3DDA9%2BNKhg-0bw3g%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAM-7rO0tkdkGF%3DnkdK2DK86MWL9WXMhEDvz%3DDA9%2BNKhg-0bw3g%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>
>
> --
> 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_rQcOMPUUkb0sqXkVt%3DoBaGNcYjD7BSERLMKYRzSAwFuA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAN-hv_rQcOMPUUkb0sqXkVt%3DoBaGNcYjD7BSERLMKYRzSAwFuA%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO0d8z8xu5aR5tWfvc34hfntFn39Zpdq3iiD%2BuzE4y%3D6uA%40mail.gmail.com.


problem with feed

2020-04-23 Thread carlos
Hi, i have a website with SSL certificate
but when create feed syndication the link protocol always is http why?

how to change to https? in site_id a put only www.mydomain.com in
syndication say

http://www.mydomain.com/news/

any idea o link to find the problem in my setting put this

SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
SECURE_SSL_REDIRECT = True
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True

but nothing not change the protocol in feed :/

any help is welcome

Cheers
--

-- 
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/CAM-7rO0tkdkGF%3DnkdK2DK86MWL9WXMhEDvz%3DDA9%2BNKhg-0bw3g%40mail.gmail.com.


Re: Django Video Conferencing-Reg

2020-04-06 Thread carlos
https://djangopackages.org/

On Mon, Apr 6, 2020 at 9:28 PM Sai Pavan Kumar  wrote:

> Hi All,
>Can any one suggest me for django based video conferencing package.
>
> --
> *Regards,*
>
> *SaiPavan Thirupathi*
>
> --
> 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/CAFJPbobo8ynEQ%2BiLj%3DVW_XStcvWECe0r4O6yo0faVb%3DTUATnDQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAFJPbobo8ynEQ%2BiLj%3DVW_XStcvWECe0r4O6yo0faVb%3DTUATnDQ%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO00zNcd4Jw9qj%2BKr%2BrovYGKZ8%3DGr4ad1xRttkzQcoW99g%40mail.gmail.com.


Re: How to get Latitude and Longitude of a user

2019-12-27 Thread carlos
https://github.com/makinacorpus/django-leaflet

On Fri, Dec 27, 2019 at 1:02 PM Yash Garg  wrote:

> I want to get Latitude and Longitude of a user to store in my data model
> fields-
> latitude= models.FloatField(default=0.0)
> longitude   = models.FloatField(default=0.0)
>
> How can i do this without using Google API.
>
> --
> 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/26e603af-05a5-47f4-82d7-35f8bd1f3f6c%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/26e603af-05a5-47f4-82d7-35f8bd1f3f6c%40googlegroups.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO1cozbfdcxfiEV_G7%2Bu2z5teRRKundrk8HQxb0ao14--Q%40mail.gmail.com.


Re: [Urgent for my intership] How to send matplotlib generated figures to django web app?

2019-12-14 Thread carlos
my try used this app
https://github.com/scidam/django_matplotlib
or try this similar method for generated graph
https://www.hektorprofe.net/tutorial/graficos-matplotlib-django

On Sat, Dec 14, 2019 at 11:20 AM Guy NANA  wrote:

> I've seen that post but it doesn't response to my problem. It use pylab
> instead of pyplot and I want to pass the generated image to the template
> via the render method to display it in a specific part of my html page.
>
> Le samedi 14 décembre 2019 01:03:59 UTC+1, sacrac a écrit :
>>
>>
>> https://django.cowhite.com/blog/creating-charts-and-output-them-as-images-to-the-browser-in-django-using-python-matplotlib-library/
>>
>> On Fri, Dec 13, 2019 at 4:50 PM Guy NANA  wrote:
>>
>>> Hello,
>>> I want to show in my web app figures generated with matplotlib.pyplot
>>> but I don't find how to do it.
>>> Someone can explain me how it works?
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/bf515cc4-4ce2-4169-859c-962b0901586f%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/bf515cc4-4ce2-4169-859c-962b0901586f%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>>
>>
>> --
>> att.
>> Carlos Rocha
>>
> --
> 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/5ca808e2-77ba-4ee7-9e28-7b6ba6910e6a%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/5ca808e2-77ba-4ee7-9e28-7b6ba6910e6a%40googlegroups.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO1YX-T2nc%3DmQRWN7UUK-TkAjGE%2B32ErMX%3D76_DpcpSMQw%40mail.gmail.com.


Re: [Urgent for my intership] How to send matplotlib generated figures to django web app?

2019-12-13 Thread carlos
https://django.cowhite.com/blog/creating-charts-and-output-them-as-images-to-the-browser-in-django-using-python-matplotlib-library/

On Fri, Dec 13, 2019 at 4:50 PM Guy NANA  wrote:

> Hello,
> I want to show in my web app figures generated with matplotlib.pyplot but
> I don't find how to do it.
> Someone can explain me how it works?
> 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/bf515cc4-4ce2-4169-859c-962b0901586f%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/bf515cc4-4ce2-4169-859c-962b0901586f%40googlegroups.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO1%2BTy4Jt%2BCfi%2B%3DorNWjdB884ps7xd6RZh2suw8YUqQ47w%40mail.gmail.com.


Re: graphql-python/graphene-django

2019-12-03 Thread carlos
graphene-django is not compatible yet Django 3 :p

On Tue, Dec 3, 2019 at 2:26 PM BfutureP  wrote:

> After upgrading to Django 3.0 graphene as well as graphene-django is
> giving error.
>
> --
> 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/09770154-6727-412b-9a00-7a6025c096ac%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/09770154-6727-412b-9a00-7a6025c096ac%40googlegroups.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO37%3D2eR6SsvMPTMoY6GJuu06fF0%2ByynGdBVq5wZiCzMrA%40mail.gmail.com.


Re: Django on an existing PostgreSQL Database?

2019-11-25 Thread carlos
https://docs.djangoproject.com/en/2.2/howto/legacy-databases/

On Mon, Nov 25, 2019 at 3:03 PM Ulrich Goebel  wrote:

> Hi,
>
> I have an existing PostgreSQL Database with about 20 tables, using
> collating sequences, foreign keys, triggers, and even additional indexes.
> For that database I want to write a WEB-frontend to insert, update and
> delete data in the database. I don't want to define the data model in
> python or django, but want to make django/python work on the existing
> database.
>
> Is that possible? Where to find som helpful hints how to do that?
>
> Best regards
> Ulrich
>
> --
> 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/a923c993-d03e-42cd-904f-3eabe811429b%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/a923c993-d03e-42cd-904f-3eabe811429b%40googlegroups.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO1MLMEgkuU8GsY3wz3ZsO5WzpwOdp-XHGqp6Zu8maaf8Q%40mail.gmail.com.


Re: How to migrate Django site from MySQL database to Postgres?

2019-11-25 Thread carlos
1. Install your application on the server first, if you have media files,
then copy them from your localhost to the server
2. Do the dumpdata from your local in .json, then copy that json to your
server
3. Once on the server just load that json with the loaddata command.

On Mon, Nov 25, 2019 at 2:58 PM Ram  wrote:

> Hi Carlos,
>
> I see there is a typo in my previous steps which could have mislead you.
> Basically old and new sites are different databases. Old site is running
> remotely in local host on our Developer's machine with MySQL dB. Now I've
> setup new hosting server with Postgres database (empty site so far) in a
> Digital Ocean's droplet ( Ubuntu 18.04 OS).  So what I'm planning now is I
> will not run these commands in new server's virtual environment
>
> 4.1.(virtual env) ~/myprojectdir/manage.py makemigrations
> 4.2. (virtual env) ~/myprojectdir/manage.py migrate
> 4.3. (virtual env) ~/myprojectdir/manage.py collectstatic
>
> Before running the above, I will run all 'Migrating a Django app from
> MySQL to PostgreSQL' steps documented in your blog first and then proceed
> with the above commands in my server virtual environment.
>
> I believe I've to run your steps in virtual environment only right?
>
> Thanks,
> ~Ram
>
>
> On Mon, Nov 25, 2019 at 12:53 PM carlos  wrote:
>
>> i thing is good your plan copy your files local to server
>> then dumpdata in local database and copy to server and last you loaddata
>> in your server
>>
>> cheers
>>
>> On Sat, Nov 23, 2019 at 10:13 PM Mohammad yunus 
>> wrote:
>>
>>> Is this "migration" command will work for all type of databases or just
>>> only for sqllite3?
>>>
>>> On Sun, 24 Nov 2019, 9:12 am Ram,  wrote:
>>>
>>>> Hi Carlos,
>>>>
>>>> If you get to see my email, could you review my plan and let me know
>>>> whether my plan works for migration.
>>>>
>>>> 1. I have setup new Ubuntu 18.04 server in Digital Ocean droplet
>>>> 2. Installed Postgress, Django with default settings and empty site,
>>>> which means I did not bring/copy over the my Django project files yet
>>>> 3. My next step is to copy over all the Django project files which are
>>>> located in my developer's localhost
>>>> 4. Once the files are copied to project folder in this new server I
>>>> will have to run following commands, but I will not run these because old
>>>> and new sites have same database software.
>>>> 4.1.(virtual env) ~/myprojectdir/manage.py makemigrations
>>>> 4.2. (virtual env) ~/myprojectdir/manage.py migrate
>>>> 4.3. (virtual env) ~/myprojectdir/manage.py collectstatic
>>>>
>>>> 5. So I want to start with your steps pointed in your blog
>>>> <https://www.calazan.com/migrating-django-app-from-mysql-to-postgresql/>
>>>> since I have to start with an empty Postgres database. I'm not sure whether
>>>> this will work or not.
>>>> 6. Hopefully if all the commands are successful, I will run the above
>>>> commands.
>>>>
>>>> Please let me know if my plan generally would work? I know you don't
>>>> have complete picture, but I'm wondering if you have any thoughts about my
>>>> use case?
>>>>
>>>> Thanks,
>>>> ~Ram
>>>>
>>>>
>>>>
>>>>
>>>> On Sat, Nov 23, 2019 at 4:32 PM Ram  wrote:
>>>>
>>>>> Hello Carlos,
>>>>>
>>>>> The steps looks promising. We will try it and let you know.
>>>>>
>>>>> Our dB is originally from MySQL configured for PHP based website and
>>>>> later on we moved to Django project development. Now we planned to migrate
>>>>> the site to Postgres database running on Ubuntu for Django project.
>>>>>
>>>>> Thank you very much.,
>>>>> ~Ram
>>>>>
>>>>> On Sat, Nov 23, 2019 at 4:01 PM carlos  wrote:
>>>>>
>>>>>> maybe this link help you!
>>>>>> https://www.calazan.com/migrating-django-app-from-mysql-to-postgresql/
>>>>>>
>>>>>> On Sat, Nov 23, 2019 at 12:23 PM Ram  wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> We have our Django based website running in our local windows box
>>>>>>> with MySQL database. We plan to deploy our site on Ubuntu, Postgress,
>>>>>

Re: How to migrate Django site from MySQL database to Postgres?

2019-11-25 Thread carlos
i thing is good your plan copy your files local to server
then dumpdata in local database and copy to server and last you loaddata in
your server

cheers

On Sat, Nov 23, 2019 at 10:13 PM Mohammad yunus  wrote:

> Is this "migration" command will work for all type of databases or just
> only for sqllite3?
>
> On Sun, 24 Nov 2019, 9:12 am Ram,  wrote:
>
>> Hi Carlos,
>>
>> If you get to see my email, could you review my plan and let me know
>> whether my plan works for migration.
>>
>> 1. I have setup new Ubuntu 18.04 server in Digital Ocean droplet
>> 2. Installed Postgress, Django with default settings and empty site,
>> which means I did not bring/copy over the my Django project files yet
>> 3. My next step is to copy over all the Django project files which are
>> located in my developer's localhost
>> 4. Once the files are copied to project folder in this new server I will
>> have to run following commands, but I will not run these because old and
>> new sites have same database software.
>> 4.1.(virtual env) ~/myprojectdir/manage.py makemigrations
>> 4.2. (virtual env) ~/myprojectdir/manage.py migrate
>> 4.3. (virtual env) ~/myprojectdir/manage.py collectstatic
>>
>> 5. So I want to start with your steps pointed in your blog
>> <https://www.calazan.com/migrating-django-app-from-mysql-to-postgresql/>
>> since I have to start with an empty Postgres database. I'm not sure whether
>> this will work or not.
>> 6. Hopefully if all the commands are successful, I will run the above
>> commands.
>>
>> Please let me know if my plan generally would work? I know you don't have
>> complete picture, but I'm wondering if you have any thoughts about my use
>> case?
>>
>> Thanks,
>> ~Ram
>>
>>
>>
>>
>> On Sat, Nov 23, 2019 at 4:32 PM Ram  wrote:
>>
>>> Hello Carlos,
>>>
>>> The steps looks promising. We will try it and let you know.
>>>
>>> Our dB is originally from MySQL configured for PHP based website and
>>> later on we moved to Django project development. Now we planned to migrate
>>> the site to Postgres database running on Ubuntu for Django project.
>>>
>>> Thank you very much.,
>>> ~Ram
>>>
>>> On Sat, Nov 23, 2019 at 4:01 PM carlos  wrote:
>>>
>>>> maybe this link help you!
>>>> https://www.calazan.com/migrating-django-app-from-mysql-to-postgresql/
>>>>
>>>> On Sat, Nov 23, 2019 at 12:23 PM Ram  wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> We have our Django based website running in our local windows box with
>>>>> MySQL database. We plan to deploy our site on Ubuntu, Postgress, Gunicorn
>>>>> and Nginx stack server. I'm looking for a way to achieve this even with 
>>>>> the
>>>>> manual intervention? I appreciate if someone can point me the right
>>>>> direction with appropriate documentation.
>>>>>
>>>>> Thank,
>>>>> ~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/CA%2BOi5F1mHwkiidgcUgFJDR0e9MGbJj%2BJTZWfKgVjXkS-uN9kEw%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/django-users/CA%2BOi5F1mHwkiidgcUgFJDR0e9MGbJj%2BJTZWfKgVjXkS-uN9kEw%40mail.gmail.com?utm_medium=email_source=footer>
>>>>> .
>>>>>
>>>>
>>>>
>>>> --
>>>> att.
>>>> Carlos Rocha
>>>>
>>>> --
>>>> 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/CAM-7rO2Dm031aVT21qWyh_1nHSGUpzj3vYxZsXaN_Y1nTGppOw%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAM-7rO2Dm031aVT21qWyh_1nHSGUpzj3vYxZsXaN_Y1nTGppOw%40mail.gmail.com?utm_medium=email_source=footer>
>>>> .
>>>>
&g

Re: How to migrate Django site from MySQL database to Postgres?

2019-11-23 Thread carlos
maybe this link help you!
https://www.calazan.com/migrating-django-app-from-mysql-to-postgresql/

On Sat, Nov 23, 2019 at 12:23 PM Ram  wrote:

> Hi,
>
> We have our Django based website running in our local windows box with
> MySQL database. We plan to deploy our site on Ubuntu, Postgress, Gunicorn
> and Nginx stack server. I'm looking for a way to achieve this even with the
> manual intervention? I appreciate if someone can point me the right
> direction with appropriate documentation.
>
> Thank,
> ~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/CA%2BOi5F1mHwkiidgcUgFJDR0e9MGbJj%2BJTZWfKgVjXkS-uN9kEw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CA%2BOi5F1mHwkiidgcUgFJDR0e9MGbJj%2BJTZWfKgVjXkS-uN9kEw%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO2Dm031aVT21qWyh_1nHSGUpzj3vYxZsXaN_Y1nTGppOw%40mail.gmail.com.


Re: DJANGO, MySQL, NGINX stack for a production hosting server in Digital Ocean droplet

2019-11-04 Thread carlos
this tuto is the same only replace postgresql to mysql
https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-16-04

in the doc django read
https://docs.djangoproject.com/en/2.2/ref/databases/#mysql-notes


On Mon, Nov 4, 2019 at 4:27 PM Ram  wrote:

> Hi,
> Please let me know if anyone has setup this stack in your hosting server
> with Digital Ocean? I appreciate if you can share the appropriate working
> steps.
> thanks,
> ~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/CA%2BOi5F1ehRtgLYSE3N9oeup0z6TavPo%3DPn2nvpV80hT7erfjjQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CA%2BOi5F1ehRtgLYSE3N9oeup0z6TavPo%3DPn2nvpV80hT7erfjjQ%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO22QwmFiGuyTxa7NLSS4v%2BEvp8B0iN4yqk86XFdqA-K1A%40mail.gmail.com.


Re: Alternatives to django ajax select

2019-10-30 Thread carlos
https://github.com/yourlabs/django-autocomplete-light

On Wed, Oct 30, 2019 at 3:35 PM Luis Zárate  wrote:

> Hi Guys,
>
> Do you know any alternative to django-ajax-selects, I am using it in a
> project in django 2.2 but docs says that support <=2.1 and also has some
> problems with the version on jquery used, so I am looking something that
> help to remplace this lib.
>
> https://github.com/crucialfelix/django-ajax-selects
>
> Thanks
> --
> "La utopía sirve para caminar" Fernando Birri
>
>
> --
> 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/CAG%2B5VyPzuPpPpm1QByKGjChPtN1-AnPcYkrNFfOR%2B203Hw43-Q%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAG%2B5VyPzuPpPpm1QByKGjChPtN1-AnPcYkrNFfOR%2B203Hw43-Q%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO1U4oEVLknkZGfgNdMGQipHmDVPWvp9QDrHZ%2BjUZiKrEw%40mail.gmail.com.


Re: Fedora 30 server (Configuring Postgresql with Django)

2019-10-30 Thread carlos
man you just have the user variable in the configuration of the bd
misspelled, change USERS for USER

On Wed, Oct 30, 2019 at 11:16 AM hari49pf  wrote:

> yes harish.b is OS user, db user is harishb.
> DB: ourscomputerlearning
>
>
> On Wednesday, October 30, 2019 at 10:10:42 AM UTC+5:30, Kevin Jay wrote:
>>
>> I meant to type ‘harish.b’
>>
>> On Tue, Oct 29, 2019 at 11:37 PM Kevin Jay  wrote:
>>
>>> Does the user ‘garish.b’ have a system password?
>>>
>>> On Tue, Oct 29, 2019 at 10:38 PM hari49pf  wrote:
>>>
>>>> Hi sir,
>>>> I didn't understood, can u elaborate, I am new to django, Plz, help me
>>>> out.
>>>>
>>>> regards.
>>>> Harish.Bheemanpaly
>>>>
>>>> On Wednesday, October 30, 2019 at 1:21:50 AM UTC+5:30, sacrac wrote:
>>>>>
>>>>> Hi i see one error
>>>>> USERS is incorrect
>>>>> see the doc
>>>>> https://docs.djangoproject.com/en/2.2/ref/databases/#id12
>>>>>
>>>>> On Mon, Oct 28, 2019 at 11:15 PM Harish Bheemanpally <
>>>>> hari...@gmail.com> wrote:
>>>>>
>>>>
>>>>>> Hi,
>>>>>>
>>>>>> Please find the attachment, below are the screen shots of the setting
>>>>>> & DB permissions please help me
>>>>>>
>>>>>>
>>>>>> [image: Screenshot from 2019-10-29 10-40-47.png]
>>>>>>
>>>>>>
>>>>>> [image: Screenshot from 2019-10-29 10-40-40.png]
>>>>>>
>>>>>>
>>>>>> On Monday, October 28, 2019 at 7:57:47 PM UTC+5:30, sacrac wrote:
>>>>>>>
>>>>>>> You can show the settings and permissions of the DB, because the
>>>>>>> user harish.b and harishb are different!
>>>>>>>
>>>>>>> On Mon, Oct 28, 2019 at 5:00 AM Motaz Hejaze 
>>>>>>> wrote:
>>>>>>>
>>>>>>>> did you install all required packages for postgresql ?
>>>>>>>>
>>>>>>>>
>>>>>>>> On Mon, Oct 28, 2019 at 12:55 PM Harish Bheemanpally <
>>>>>>>> hari...@gmail.com> wrote:
>>>>>>>>
>>>>>>>>> Yes it was running perfectly in sqllie & Mysql. But in postgresql
>>>>>>>>> i am unable to configure Djanog
>>>>>>>>> the postger server screen shot
>>>>>>>>>
>>>>>>>>> please let me know for any information requried
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Postgresql image with djanog
>>>>>>>>>
>>>>>>>>> [image: Screenshot from 2019-10-28 10-28-38.png]
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Monday, October 28, 2019 at 2:12:08 PM UTC+5:30, Motaz Hejaze
>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>> Does it run on sqlite ??
>>>>>>>>>> You need to show the code
>>>>>>>>>>
>>>>>>>>>> On Mon, 28 Oct 2019, 8:10 am Harish Bheemanpally, <
>>>>>>>>>> hari...@gmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> There is not user with harish in *DB*(postgresql)
>>>>>>>>>>>
>>>>>>>>>>> [image: Screenshot from 2019-10-28 16-20-04.png]
>>>>>>>>>>> the harish is the user of *OS*.
>>>>>>>>>>>
>>>>>>>>>>> As suggested by sacrac:
>>>>>>>>>>>
>>>>>>>>>>> I have created a new user in DB with the name harishb who is the
>>>>>>>>>>> owner of the DB and changed the setting.py still raising same error
>>>>>>>>>>> when i am trying to run migrate or run the django
>>>>>>>>>>>
>>>>>>>>>>> PLZ Help me.
>>>>>>>>>>>
>>>>>>>>>>> On Monday, October 28, 2019 at 9:04:03 AM UTC+5:30, sacrac wrote:
>>>>>>>>>>>>
>>>

Re: Fedora 30 server (Configuring Postgresql with Django)

2019-10-28 Thread carlos
You can show the settings and permissions of the DB, because the user
harish.b and harishb are different!

On Mon, Oct 28, 2019 at 5:00 AM Motaz Hejaze  wrote:

> did you install all required packages for postgresql ?
>
>
> On Mon, Oct 28, 2019 at 12:55 PM Harish Bheemanpally 
> wrote:
>
>> Yes it was running perfectly in sqllie & Mysql. But in postgresql i am
>> unable to configure Djanog
>> the postger server screen shot
>>
>> please let me know for any information requried
>>
>>
>> Postgresql image with djanog
>>
>> [image: Screenshot from 2019-10-28 10-28-38.png]
>>
>>
>> On Monday, October 28, 2019 at 2:12:08 PM UTC+5:30, Motaz Hejaze wrote:
>>>
>>> Does it run on sqlite ??
>>> You need to show the code
>>>
>>> On Mon, 28 Oct 2019, 8:10 am Harish Bheemanpally, 
>>> wrote:
>>>
>>>> There is not user with harish in *DB*(postgresql)
>>>>
>>>> [image: Screenshot from 2019-10-28 16-20-04.png]
>>>> the harish is the user of *OS*.
>>>>
>>>> As suggested by sacrac:
>>>>
>>>> I have created a new user in DB with the name harishb who is the owner
>>>> of the DB and changed the setting.py still raising same error
>>>> when i am trying to run migrate or run the django
>>>>
>>>> PLZ Help me.
>>>>
>>>> On Monday, October 28, 2019 at 9:04:03 AM UTC+5:30, sacrac wrote:
>>>>>
>>>>> Hi, Maybe you need change permission role user harish
>>>>> #ALTER ROLE harish CREATEROLE CREATEDB; or SUPERUSER;
>>>>>
>>>>> On Sun, Oct 27, 2019 at 11:58 AM Harish Bheemanpally <
>>>>> hari...@gmail.com> wrote:
>>>>>
>>>>>> OS: Fedora30 server X64
>>>>>> DB: Postgesql-12
>>>>>> Django version:2.2.5
>>>>>> connector: psycopg2.binary
>>>>>>
>>>>>> [image: Screenshot from 2019-10-27 13-20-35.png]
>>>>>>
>>>>>> i have configured the settings file in django folder, but unable to
>>>>>> resolve the issue,
>>>>>> need help.
>>>>>>
>>>>>> --
>>>>>> 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...@googlegroups.com.
>>>>>> To view this discussion on the web visit
>>>>>> https://groups.google.com/d/msgid/django-users/d1eebb46-834f-4ee6-be50-7882ca72cbfd%40googlegroups.com
>>>>>> <https://groups.google.com/d/msgid/django-users/d1eebb46-834f-4ee6-be50-7882ca72cbfd%40googlegroups.com?utm_medium=email_source=footer>
>>>>>> .
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> att.
>>>>> Carlos Rocha
>>>>>
>>>> --
>>>> 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...@googlegroups.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/3217ae2e-d0c7-4b6f-a06d-b1504ba29aa2%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/django-users/3217ae2e-d0c7-4b6f-a06d-b1504ba29aa2%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/129de4f3-1957-4a5f-9a25-e65d29dbfdfa%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/129de4f3-1957-4a5f-9a25-e65d29dbfdfa%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/CAHV4E-cVZktYH7cT5wH0FNA6bBEXFgDhdmU73fcKGb%3DGDFhKEA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAHV4E-cVZktYH7cT5wH0FNA6bBEXFgDhdmU73fcKGb%3DGDFhKEA%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO2p3OKJdvZYV3ATdAra8tQZFgf%3DS6Ysw_bRg0%2Bu74nGzw%40mail.gmail.com.


Re: Chat

2019-09-06 Thread carlos
Hola, te recomiendo que uses channels y su tutorial para hacer un chat,
recuerda que channels esta soportado por la comunidad
de Django, es como el oficial para esto del real time
https://channels.readthedocs.io/en/latest/tutorial/index.html

saludos

On Fri, Sep 6, 2019 at 9:23 AM Ahmed Ishtiaque 
wrote:

> This may help.
>
> https://github.com/dibs-devs/chatter
>
> Best,
> Ahmed
>
> On Fri, Sep 6, 2019 at 7:44 AM samuel lopez  wrote:
>
>> Saludos, alguien me puede dar una breve explicación o si hay un paquete o
>> algo para poder agregarle una aplicación de chat a mi proyecto en Django?
>>
>> --
>> 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/CAOt0vAy4VTpdBxdKnHOurV4aC6Dskib8xYi%3DMEs0d4OEmyN-Cw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAOt0vAy4VTpdBxdKnHOurV4aC6Dskib8xYi%3DMEs0d4OEmyN-Cw%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/CAKizqR7bKH%3Da4cduAwoRog8xffo3CKoS8SVuRE6pvZ%3D%3D3YuukA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAKizqR7bKH%3Da4cduAwoRog8xffo3CKoS8SVuRE6pvZ%3D%3D3YuukA%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO2uCTVve9L1kJwOio-XsAU3X53S3c%2B5EP%2BZQRqofjS3RQ%40mail.gmail.com.


Re: Postgres along with Mongodb

2019-08-12 Thread carlos
http://www.aptuz.com/blog/is-postgres-nosql-database-better-than-mongodb/

https://www.enterprisedb.com/es/nosql-overview

On Mon, Aug 12, 2019 at 10:45 PM Suraj Thapa FC 
wrote:

> Sir, how can I implement it..?
>
> On Mon, 12 Aug, 2019, 8:10 PM Jani Tiainen,  wrote:
>
>> Hi.
>>
>> Yes you can. Of course since mongodb isn't relational database you get
>> best experience by using native python api to mongodb and Django orm for
>> postgres.
>>
>>
>> ma 12. elok. 2019 klo 15.57 Suraj Thapa FC 
>> kirjoitti:
>>
>>> How can I use postgres along with Mongodb
>>> Different table different db
>>>
>>> --
>>> 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/CAPjsHcFTL%2BQXENUo5MuffZo%2BsQ-TRvJ_ksqLG9_BTktGrLToLA%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAPjsHcFTL%2BQXENUo5MuffZo%2BsQ-TRvJ_ksqLG9_BTktGrLToLA%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/CAHn91oetCWG2A%3DbQMCCXV-BStvfA_G%2B9uTGZTFM2c%3DravOJrsw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAHn91oetCWG2A%3DbQMCCXV-BStvfA_G%2B9uTGZTFM2c%3DravOJrsw%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/CAPjsHcEAX6xiBqpqDGoZDDW%2BQwda4kkM80i6wOSJZi0EzP7-%3DA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAPjsHcEAX6xiBqpqDGoZDDW%2BQwda4kkM80i6wOSJZi0EzP7-%3DA%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO0yKR%2Bc8QWhZo9up1mywRAuVB9c1TO14XEwQtGWt-JSeA%40mail.gmail.com.


Re: Usar confirmacion de correo para crear un nuevo usuario ?? ayuda!!! soy nuevo en este framework

2019-07-21 Thread carlos
Hola, este es el grupo de usuario de django en ingles, existe un grupo para
español django...@googlegroups.com.
y para responderte a tu pregunta puedes usar una app de terceros llamada
django-allauth
https://django-allauth.readthedocs.io/en/latest/
ahi en la documentación sale toda la información que necesitas saber para
usarla.

saludos

On Sat, Jul 20, 2019 at 6:03 AM DANIEL URBANO DE LA RUA <
dannybombas...@gmail.com> wrote:

> hay muchos ejemplos en google pero si quieres te paso uno
>
>
> El sáb., 20 jul. 2019 a las 13:31, Alvaro Puerto (<
> alvaroevenor.puertotel...@gmail.com>) escribió:
>
>> Lo que quiero es un ejemplo de como crear un registro con una
>> confirmacion de correo uso django 2.2.2
>> pero no se como empezar?
>>
>> --
>> 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/26c0a4ae-4bc8-4b7a-ae3a-d2b431e7dece%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/26c0a4ae-4bc8-4b7a-ae3a-d2b431e7dece%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/CAO_yRT3HGdbG0Xjrg4rY32dK3Gxp%3DrZhemTYjBv2L8ZEoWZihg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAO_yRT3HGdbG0Xjrg4rY32dK3Gxp%3DrZhemTYjBv2L8ZEoWZihg%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO23mO1evATuive%2B9e5Q0kikPsPdeuwQZ3ZmNACq1%2BrhTQ%40mail.gmail.com.


Re: Social media management

2019-06-25 Thread carlos
try used this
https://github.com/pennersr/django-allauth

Cheers

On Tue, Jun 25, 2019 at 5:35 PM Yoo  wrote:

> Management platform? How so? Are you talking about authenticating users
> with OAuth? Like "sign up with Google" or "Sign up with Facebook"
>
> If so, you can check out:
> https://github.com/RealmTeam/django-rest-framework-social-oauth2
>
> Otherwise, if you're talking about building an API like a Twitter bot,
> then I'm not aware of any "packages" that'll help you. I feel like that's
> more on the social media platform's own end's documentation and a little
> bit of Django views.
> On Tuesday, June 25, 2019 at 11:05:24 AM UTC-4, Django Dojo wrote:
>>
>> Are there any packages that will allow me to build a social media
>> management platform?
>
> --
> 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/44131d6f-3280-4260-840f-cbc41451e852%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/44131d6f-3280-4260-840f-cbc41451e852%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO3ZqZkEksPeZB%3DPyjgNVFeEo_hdGNsWCVY0gbDUM9mNpQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


annotate sum many record

2019-06-03 Thread carlos
Hi, i used django 1.11 and try used annotate

i have model with 3 decimal fields i would like sum 2 and multiply for
other field but with aritmetic calculation
i have used this query

(1) total = Model.objects.annotate(all=Sum(F('fieldA') + F('fieldB') *
F('fieldC')))
but this return queryset with all calculation i have 3 record in db
print total
and return this

, , ]>

then I do a forloop with for to do the sum
for x in total:
variable += x.all

it is possible to return the sum of the 3 registers with the annotate in a
single line,
as (1)total queryset

How could I do that?

thank for yours helps


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO1LGRSMoBMC435nf93P-__oo%3DhYz_hwBiW6WxVeip8uvw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: No puedo generar qr en django

2019-05-20 Thread carlos
este grupo es para gente de habla ingles, busca el grupo de habla español,
pero bueno ya probastes esta app
https://github.com/dprog-philippe-docourt/django-qr-code

On Mon, May 20, 2019 at 4:21 PM osman alexander samayoa ramirez <
oasamayo...@gmail.com> wrote:

> muy buenas quisiera que alquien me pudiera ayudar para poder generar qr a
> mis empleado y que sea unico para cada uno
>
> --
> 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/1a432774-6b38-409a-bab2-2981ae5bf356%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/1a432774-6b38-409a-bab2-2981ae5bf356%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO3JnR%3D2rZgBRt7gHywZRcd0iHvCdKUCaz9F7EfV%3DhSZZQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to Implement Cascading Dependent Drop Down List using Foreign Key Relationship in Django Admin GUI

2019-05-16 Thread carlos
try this app
https://django-autocomplete-light.readthedocs.io/en/master/

On Thu, May 16, 2019 at 5:59 AM Balaji Shetty 
wrote:

>
> Hi
>
> Can anyone please provide me the resource for implementation of Cascading
> Dependent Drop Down List in Django Admin GUI.
>
> I do now want to write any code and use existing Admin GUI only. I tried
> many select2 but could not get any success.
>
> Here is my sample code
>
> *I followed the instructions and I successfully installed
> django-admin-select2.*
> *URL:  https://github.com/mgd020/django-admin-select2
> <https://github.com/mgd020/django-admin-select2>*
>
>
> *But i do not get Cascading Drop down updates for country and city.I get
> all city under all countries.*
>
> *Here is my Code*
>
> * I have also attached Project Zip File.*
> *Project are working and we can add Country,City and Map Model data.*
>
>
> models.py
>
>
>
> *from django.db import models*
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *class Country(models.Model):name =
> models.CharField(max_length=255)def __str__(self):return
> self.name <http://self.name>class City(models.Model):name =
> models.CharField(max_length=255)country = models.ForeignKey('Country',
> related_name="cities",on_delete=models.CASCADE)def
> __str__(self):return self.name <http://self.name>class
> map1(models.Model): name = models.CharField(max_length=255)
> continent = models.ForeignKey(Country,on_delete=models.CASCADE) country
> = models.ForeignKey(City,on_delete=models.CASCADE) def
> __str__(self):return self.name <http://self.name>*
> *--*
>
> admin.py
>
>
>
>
>
>
>
>
> *from django.contrib import adminfrom .models import
> Country,City,map1admin.site.register(Country)admin.site.register(City)admin.site.register(map1)*
> ---
>
> setting.py
>
>
> *INSTALLED_APPS = [*
>
>
>
>
>
>
>
>
>
>
> *'django_admin_select2', # Necessary Package
> 'django.contrib.admin','django.contrib.auth',
> 'django.contrib.contenttypes','django.contrib.sessions',
> 'django.contrib.messages','django.contrib.staticfiles','newapp', #
> App Name]*
>
> *I downloaded PAckage *
> * git clone https://github.com/applegrew/django-select2.git
> <https://github.com/applegrew/django-select2.git>*
>
> *from https://github.com/applegrew/django-select2
> <https://github.com/applegrew/django-select2>*
>
>
> --
>
>
> *Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
> *SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
> *Official: bsshe...@sggs.ac.in  *
> *  Mobile: +91-9270696267*
>
> --
> 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/CAECSbOsa9iinyDmfiLe4aHb9KCUJFSp6zWtBxCTFPu59_MDvVA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAECSbOsa9iinyDmfiLe4aHb9KCUJFSp6zWtBxCTFPu59_MDvVA%40mail.gmail.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO3_w8sTXxjAz0C0CoTvd%3Dnhqa%3Dbz8Q1ofQtFJrBF2Trbg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Email Django app.

2019-05-10 Thread carlos
maybe you try functionality used

EMAIL_BACKEND = (

"django.core.mail.backends.console.EmailBackend"
)


On Fri, May 10, 2019 at 9:53 PM salimon jamiu olashile <
tunedae1shi...@gmail.com> wrote:

> The functionality should work on localhost.
>
> On Fri, 10 May 2019 at 11:17 PM, Marvelous Ikechi 
> wrote:
>
>> Hello guys,
>>
>> I'm creating an third party app that can send and read users emails using
>> Django. How possible would it be to connect to the internet from my local
>> host, to send and receive these emails. Or do I need to host the site first
>> before these functionalities can come alive?
>>
>> --
>> 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/CAG%3D1guxen0%2BR%2BmCxz7JuFZR3Hef5-AkpCzP8yb-j2jaLfKVSxQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAG%3D1guxen0%2BR%2BmCxz7JuFZR3Hef5-AkpCzP8yb-j2jaLfKVSxQ%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>> 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/CAFhdOCMwSX9eQ50OWr96cppMMZgu6%2Bt_aWwuH1wQ_8H9PfQoGg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAFhdOCMwSX9eQ50OWr96cppMMZgu6%2Bt_aWwuH1wQ_8H9PfQoGg%40mail.gmail.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO2N1jFS4TifXojdYU%3DCLNe4q1fmsfFvN%2BC0dtK%2B%3D0DEWg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django Builtin Admin

2019-04-07 Thread carlos
Hi, i thing this app help you
https://github.com/oscarmlage/django-cruds-adminlte



On Sun, Apr 7, 2019 at 6:37 AM  wrote:

> Hello Django Users,
> I know django builtin admin is not possible to customize same to as the
> attached picture. But Client like a nice and attractive dashboard. Is there
> any one who can show me the right way?
> Still now I have done like this such as created two different apps like
> one is for public view and another is for creating dashboard using view,
> model forms and auth. Is it a right way?
> and what does do the professional developer to develop same kind of
> dashboard in django. please explain me.
>
> --
> 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/d8b9ad14-d402-4e27-8270-1a19e153b417%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/d8b9ad14-d402-4e27-8270-1a19e153b417%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO2T-ampP%2BK5r3Bh3meugYXaCfHb54LDtNFheAo3w3mb0w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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

2019-04-05 Thread carlos
https://github.com/citusdata/django-multitenant

the documentation clearly explains the differences of each method its
advantages and disadvantages

On Thu, Apr 4, 2019 at 7:17 PM Sithembewena L. Dube 
wrote:

> 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
> <https://tryshift.com/?utm_source=SentWithShift_campaign=Sent%20with%20Shift%20Signature_medium=Email%20Signature_content=General%20Email%20Group>*
>
> On Fri, Apr 5, 2019 at 3:13 AM Fellipe Henrique 
> wrote:
>
>> Hello,
>>
>> I need to separate my django website, for different costumers...
>>
>> Which is the best option:
>>
>> 1) One database and separate each costumer as a django user
>> 2) different database, one for each costumer?
>>
>> There's no need the costumer has "users"...
>>
>>
>> Any tips or ideas?
>>
>> Regards,
>> T.·.F.·.A.·. S+F
>> *Fellipe Henrique P. Soares*
>>
>> e-mail: > echo "lkrrovknFmsgor4ius" | perl -pe \
>> 's/(.)/chr(ord($1)-2*3)/ge'
>> *Fedora Ambassador: https://fedoraproject.org/wiki/User:Fellipeh
>> <https://fedoraproject.org/wiki/User:Fellipeh>*
>> *Blog: *http:www.fellipeh.eti.br
>> *GitHub: https://github.com/fellipeh <https://github.com/fellipeh>*
>> *Twitter: @fh_bash*
>>
>> --
>> 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/CAF1jwZGRNzWNRFEsi4tjgOU1aft%2BpK16FB8_%2Bra2U1TpRrQHqQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAF1jwZGRNzWNRFEsi4tjgOU1aft%2BpK16FB8_%2Bra2U1TpRrQHqQ%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>> 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/CAH-SnCCe%2BfZ5YKXm4hMSjcrS8ojBUKbu6eovRHpiBpHhByQ7Tw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAH-SnCCe%2BfZ5YKXm4hMSjcrS8ojBUKbu6eovRHpiBpHhByQ7Tw%40mail.gmail.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO1ocuP2_huvUe%3D1Bm9CYO9UDx_w4AT0komxdkeW7uOevQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: There's any django app for calendar?

2019-03-28 Thread carlos
https://github.com/llazzaro/django-scheduler

On Thu, Mar 28, 2019 at 9:21 AM Suresh Kannan  wrote:

> Hi,
>
> Explore the link https://djangopackages.org/grids/g/calendar/
>
> On Thu, 28 Mar 2019 at 09:45, Fellipe Henrique  wrote:
>
>> Hello guys,  tried to search on google, but no lucky..
>>
>> Anyone knows any django app for calendar, to set appointments,
>> hour/day... with frontend?
>>
>> Thanks!
>>
>> T.·.F.·.A.·. S+F
>> *Fellipe Henrique P. Soares*
>>
>> e-mail: > echo "lkrrovknFmsgor4ius" | perl -pe \
>> 's/(.)/chr(ord($1)-2*3)/ge'
>> *Fedora Ambassador: https://fedoraproject.org/wiki/User:Fellipeh
>> <https://fedoraproject.org/wiki/User:Fellipeh>*
>> *Blog: *http:www.fellipeh.eti.br
>> *GitHub: https://github.com/fellipeh <https://github.com/fellipeh>*
>> *Twitter: @fh_bash*
>>
>> --
>> 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/CAF1jwZF9cRAYbjPr04MyC%3DAWx_xhAdZd%2B%3Dem_WiOSkSpJgA9jQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAF1jwZF9cRAYbjPr04MyC%3DAWx_xhAdZd%2B%3Dem_WiOSkSpJgA9jQ%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>> 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/CANfVfcCgKnG7Tu2H53yS8vhH0b0ns7vKM4x5epG1CKz-%3DJr5WQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CANfVfcCgKnG7Tu2H53yS8vhH0b0ns7vKM4x5epG1CKz-%3DJr5WQ%40mail.gmail.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO35jL8mvtc2oLCUo1w9sT3BpF-s%3D2N%2BvvZ22jPRrU8QrA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


initial data inlineAdmin

2019-03-21 Thread carlos
Hi, what is the best way fill all extra data inline, my code is

model.py
ModelA(models.Model):
   name = charfield(...)

CHOICE_OPTION = ((1,'One'),(2,'Two'),(3, 'Three')

ModelB(models.Model):
fk(ModelA)
option = integerfield(choice=CHOICE_OPTION)
field1 = boolfield()
field2 = boolfield()
field3 = boolfield()


forms.py
class ModelBInlineAdminForm(forms.ModelForm):
class Meta:
model = ModelB
fields = '__all__'

def __init__(self, *args, **kwargs):
super(ModelBInlineAdminForm, self).__init__(*args, **kwargs)
self.initial = {
'option': 1,
'option': 2,
'option': 3,
}

admin.py
class InlineModelB(admin.TabularInline):
form = ModelBInlineAdminForm
model = ModelB
extra = 3
max_num = 3

class ModelAAdmin(admin.ModelAdmin):
inlines = [InlineModelB]

but the result is not as expected, I repeat only the last option,
i need One, Two, Three

my inline look like this

option | field1 | field2 | field3
Three |   []  |  []   |  []
Three |   []  |  []   |  []
Three |   []  |  []   |  []

i use django 1.11.18, python3.6
What is the best way to do this, some link to read to guide me in the right
way

Cheers
-- 
att.
Carlos Rocha

-- 
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/CAM-7rO3kybHJ1OQrnHYbhSGNmuBHV%2BZBpkh1%3DhZEnGNSX8s9Gw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: how to create a Django project without using an IDE, but using the django-admin startproject command

2019-03-11 Thread Carlos Eduardo
Another tip is using templates to create your project. I'm developing one 
but the first version is already published. I added the template on GitHub 
with a good how-to.

https://github.com/tresloukadu/Django-Bootstrap-Project

Em sábado, 9 de março de 2019 15:15:01 UTC-3, Ando Rakotomanana escreveu:
>
> Hello, I'm still starting with django. And I have a problem with the 
> creation of the project, I write: "django-admin startproject DjangoTest" in 
> the cmd of my windows and it tells me that django-admin is not an internal 
> command. While I typed the same code this morning in the cmd and it worked. 
> And I do not understand why?
> I have python 2.7.0 and 3.7.2 and django 1.6.2 installed on my windows 8.1
>

-- 
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/547baceb-dd22-49a0-a667-18bce52b4dfd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: urls con clases

2019-02-19 Thread carlos
Django LTS
url(r'^$', IndexView.as_view(), name='index'),
IndexView es tu clase que esta en views.py
Django 2.x
path('', IndexView.as_view(), name='index'),



On Tue, Feb 19, 2019 at 11:21 AM Abel Sena  wrote:

> no puedo configuralo
>
> --
> 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/d42a1294-cf06-471f-bc13-ee492482a361%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/d42a1294-cf06-471f-bc13-ee492482a361%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO1y-7nnXaQvxZJAv3mHjoFiJFwJ1yfBL6BFa-x%3D2r1VOA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Any advice on linguistic project?

2019-01-30 Thread Carlos Eduardo
You can do all that stuff with Python and use Django as an UI. 

I'm doing something similar. I'm from computational linguistics area as 
well.

My first advice for you is to study a special book related to python and 
linguistics. The book is not 100% but the read it is worthwhile.
Here is the link:

https://faculty.sbs.arizona.edu/hammond/ling508-f17/pyling.pdf

This text will open your mind. 

As soon as you get pro I suggest you to to start using the NLTK tools for 
python:

https://www.nltk.org/

These materials will give you a solid basis and most of your needs will be 
fully covered. 
However if you need something more specific you can convert any algorithm 
to Python and create your own modules. 

In case you can share them on github for others members of the community 
use it as well would be a plus.

thanks!! 

Em quarta-feira, 30 de janeiro de 2019 10:24:33 UTC-2, monkb...@gmail.com 
escreveu:
>
> I'm a student of linguistics and just started to learn python and django a 
> few months ago. Planning to apply some utilities of linguistic with some 
> advanced function into a showcase on the website, but still not sure how to 
> achieve it through django.
>
> Can anyone recommend some similar projects(package) for me to learn from?  
> (basic function like corpora analyse, comparison, some words statistics, 
> simple graphic illustration, and any guru technique is welcomed too !) 
>
> Really appreciate your advice, 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/52b1b21f-de76-47e2-b0b8-cfafe8519d6f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: how can I reference a field from one model to another model

2019-01-25 Thread carlos
Thank Mike Dewhirst is working well

Cheers

On Fri, Jan 25, 2019 at 6:49 AM 'Amitesh Sahay' via Django users <
django-users@googlegroups.com> wrote:

> hi,
>
> All the above should work. If you are working on django REST, then you can
> use ModelSerializer helper function. This will automatically sync with the
> table fields, and if there are any foreign key and primary key. They would
> be mapped automatically.
>
> Regards,
> Amitesh Sahay
> *91-750 797 8619*
>
>
> On Friday, 25 January, 2019, 5:44:04 PM IST, Anirudh Jain <
> anirudhajain@gmail.com> wrote:
>
>
> You can do this easily by creating creating an object of that model from
> which you want to get the value or input a value by using
> 'get_object_or_404' or 'get_list_or_404' by importing from
> django.shortucts. Reas about these two functions and difference between
> them in documentation.
>
> Use them, for eg :-
>  derive = get_object_or_404(ModelChild1, ModelDad=request.user) #object
> created of model ModelChild1
>
> access = derive.number #will give the value of number that has been input
> by user
>
> On Fri, 25 Jan 2019, 17:29 NAveeN Kumar Reddy <
> knaveenkumarredd...@gmail.com wrote:
>
> You can use this where you want you to link tables with foreign key
>
> models.ForeignKey(Model_Name,on_delete=models.CASCADE)
>
> That's it  both tables will be in relation after migration of models into
> database
>
>
>
> On Fri, Jan 25, 2019 at 12:20 PM Mike Dewhirst 
> wrote:
>
> On 24/01/2019 5:28 pm, carlos wrote:
> > Hello,
> > I do not know if I'm asking the question correctly, but I need to call
> > a field of one model in another model
> > example:
> > class ModelDad(models.Model):
> > name = blablabla
> >
> > class ModelChild1():
> >fk(ModelDad)
> >number = models.IntegerField()
> >
> > class ModelChild2():
> >   fk(ModelDad)
> >   another_number = models.IntegerField()
> >
> >def make_proces(self):
> >   return self.another_number * ModelChild1.number #this is my
> question
> >
> > how can I send a call number within the function (make_proces ) of
> > ModelChild2
>
> You need a mechanism to find ModelChild1 and the Django ORM provides
> Queries for exactly that.
>
> There is a default model manager called 'objects' which you can use to
> find instances of models. By that I mean you can pinpoint a row in the
> database table which that model represents. For example ... (but to make
> it clearer I'll adjust your models above slightly)
>
> class ModelDad(models.Model):
>  name = blablabla
>
> class ModelChild1(models.Model):
> dad = models.ForeignKey(ModelDad)
> number = models.IntegerField()
>
> class ModelChild2(models.Model):
> dad = models.ForeignKey(ModelDad)
> another_number = models.IntegerField()
>
> def make_proces(self):
>  child1 = ModelChild1.objects.get(dad=self.dad)
>  return self.another_number *child1.number
>
> Visit Django documentation https://docs.djangoproject.com and scroll
> down past "First steps" to  "The model layer" and click on a link in the
> "Quersets" line. The answers will be in there.
>
> >
> > is posible
> >
> >
> >
> > --
> > att.
> > Carlos Rocha
> > --
> > 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
> > <mailto:django-users+unsubscr...@googlegroups.com>.
> > To post to this group, send email to django-users@googlegroups.com
> > <mailto: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/CAM-7rO125r3pox%3D137GOfmjnmFaf3cekaNj-j%2B9A0Cwc%3DEM0Fg%40mail.gmail.com
> > <
> https://groups.google.com/d/msgid/django-users/CAM-7rO125r3pox%3D137GOfmjnmFaf3cekaNj-j%2B9A0Cwc%3DEM0Fg%40mail.gmail.com?utm_medium=email_source=footer
> >.
> > 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://group

how can I reference a field from one model to another model

2019-01-23 Thread carlos
Hello,
I do not know if I'm asking the question correctly, but I need to call a
field of one model in another model
example:
class ModelDad(models.Model):
name = blablabla

class ModelChild1():
   fk(ModelDad)
   number = models.IntegerField()

class ModelChild2():
  fk(ModelDad)
  another_number = models.IntegerField()

   def make_proces(self):
  return self.another_number * ModelChild1.number #this is my question

how can I send a call number within the function (make_proces ) of
ModelChild2

is posible



-- 
att.
Carlos Rocha

-- 
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/CAM-7rO125r3pox%3D137GOfmjnmFaf3cekaNj-j%2B9A0Cwc%3DEM0Fg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: DJANGO FOR FINANCE !

2018-12-13 Thread carlos
yes, is posible in Django make forms for input user and output make grahp
and table

Cheers

On Thu, Dec 13, 2018 at 9:35 AM Mamoudou Diallo 
wrote:

> Hey EVERYONE !
>
> I am working on a project where I am would like to use django to build a
> site that computes certain financial formulas based on user inputs or even
> better (based on Time series data set) and spits out the results in a form
> of a graph or predisgned table. I have the formulas written out in python
> already, but I am new to django, but I have watched a few tutorial videos
> and how powerful it is. Most of the tutorials and content that I have come
> accross with is primarily not related to finance but mouch more towads
> building blog posts etc
>
>
> Please checkout the attachement for a picture view of what I want to do.
>
> --
> 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/bddac915-325e-4a1c-af18-4c4b8ef39993%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/bddac915-325e-4a1c-af18-4c4b8ef39993%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO2Csx2bMZBO%3DfHzSxdEwbxfkdmZFsfh4mmOnQFu1JzWGw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: django assignment

2018-10-27 Thread carlos
use https://github.com/yourlabs/django-autocomplete-light in your django
project

Cheers

On Sat, Oct 27, 2018 at 11:38 PM RONAK JAIN  wrote:

> Why are you thinking this is cheating I have done there more think I need
> idea for do better.
> so , I was asking if you are thinking like that please don't give me
> answer.
>
>
> Thank you
> Ronak Jain
>
> On Sun, Oct 28, 2018 at 10:59 AM Joel Mathew  wrote:
>
>> Isn't this cheating? Why dont you complete your own assignment?
>>
>> Joel G Mathew
>>
>>
>> On Sun, 28 Oct 2018 at 10:40, RONAK JAIN  wrote:
>> >
>> > Hi
>> >
>> >
>> > Please help me out  this assignment urgent. How can I solve ?
>> >
>> >
>> >
>> >
>> > Thanks
>> > RJ
>> >
>> >
>> > --
>> > 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%2BAqMUfHh77Op6OVRnwFLnpuOdLueXyzT9M4Sqbi8wu7g9Q9dA%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/CAA%3Diw_9pXPvEM%3DKYZmsoDp4vtRv8rNbHUijydKS1SfBv9Dw%3DFQ%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/CA%2BAqMUfytrWWc6zsOckb-uaj9HrZW858RV9J%3DiBZ6mDoi%2BWawA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CA%2BAqMUfytrWWc6zsOckb-uaj9HrZW858RV9J%3DiBZ6mDoi%2BWawA%40mail.gmail.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO3AzocJXXOpH_CTjeZF5ER_6Ba_odJkCREm1%2BAHYyBAwA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Displaying items differently on one template based on age

2018-10-19 Thread carlos
yes Joel is right you hit 3 time de DB is not good for optimization create
a variable and save the one query
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
POSTS = Post.objects.all().order_by('-date_posted')
context['latest'] = POSTS[0]
context['first_column'] = POSTS[1:6]
context['second_column'] = POSTS[6:10]
return context

or in your templete use the templatetags slice

https://docs.djangoproject.com/es/2.1/ref/templates/builtins/#slice

only 1 query
context['latest'] = Post.objects.all().order_by('-date_posted')
in the template
{% for post in latest|slice:"0" %}
{% for post in latest|slice:"1:6" %}
{% for post in latest|slice:"6:10" %}

cheers



On Fri, Oct 19, 2018 at 10:13 PM Joel  wrote:

> You're using three different database queries. You could just fetch the
> most recent 11 objects,  into a variable, use [0] for the most recent one.
> And then display the next 10 and break them into columns with css wrap.
>
>
> On Sat, 20 Oct, 2018, 9:20 AM Daniel Veazey, 
> wrote:
>
>> I'm using 2.1. I have a list of blog posts, and I want to display them
>> differently based on their age. The most recent post will be displayed
>> prominently, and the 10 most recent posts after that will be displayed in
>> two columns below it. The way I'm passing the view to the template is:
>>
>> class PostListView(ListView):
>> model = Post
>> template_name = 'mainapp/home.html'
>>
>>
>> def get_context_data(self, **kwargs):
>> context = super().get_context_data(**kwargs)
>> context['latest'] = Post.objects.all().order_by('-date_posted')[0
>> ]
>> context['first_column'] = Post.objects.all().order_by(
>> '-date_posted')[1:6]
>> context['second_column'] = Post.objects.all().order_by(
>> '-date_posted')[6:10]
>> return context
>>
>> Then I use 'latest', 'first_column' and 'second_column' in the template
>> to display those things in their separate divs.
>>
>> Doing it this way works, but I am very new and I think I might have
>> bodged it when there's a better way to do it. Any suggestions?
>>
>> --
>> 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/83be2580-6e11-4b99-b854-04aa47486480%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/83be2580-6e11-4b99-b854-04aa47486480%40googlegroups.com?utm_medium=email_source=footer>
>> .
>> 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/CAA%3Diw_-Cu%2B-NtdGZeY9fC2VJ%2B13h4YWUyMY181Vez9E5E8C0Vw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAA%3Diw_-Cu%2B-NtdGZeY9fC2VJ%2B13h4YWUyMY181Vez9E5E8C0Vw%40mail.gmail.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO3t2POcaCmi-2K25bC33_v%3DLwPcVv0m27DyZbJMV0%3D92Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to migrate old database into new database using python script

2018-10-11 Thread carlos
Maybe you use dumpdata in json and then modify the table name, in editor
code, then loaddata in new db
https://docs.djangoproject.com/en/2.1/ref/django-admin/#dumpdata

Cheers

On Thu, Oct 11, 2018 at 10:41 AM Mohammad Aqib 
wrote:

> I know CLI commands to backup db and restore into another but in this case
> CLI would not work because previous db tables is different from new db
> tables.
>
> So, I have backup.sql file and need to read this file and dump the values
> into new db
>
> Or another option I know, is to connect server db and execute queries one
> by one. Which is very lengthy and horrible process.
>
> Is any other way to do this?
>
> On Thu, 11 Oct 2018, 10:03 pm Ryan Gedwill,  wrote:
>
>> Depending on the SQL distribution you're using, there should be a couple
>> tools to do this without python using a CLI command or a basic SQL script.
>>
>> If you need to do it in python, use a basic python library (again,
>> depends on your sql distribution) to connect to your database and execute
>> the SQL command to execute the file.
>>
>> I only remember how to do this in postgres specifically, but you happen
>> to be using postgres as well, I can help further.
>>
>> On Thu, Oct 11, 2018 at 5:03 AM Mohammad Shareef M 
>> wrote:
>>
>>> Create new database and Restore the backup file
>>>
>>> Thanks & Regards,
>>> Mahammad Shareef M
>>>  +919741482617
>>>  +971501340618
>>>  +971581756035
>>>
>>>
>>> On Thu, Oct 11, 2018 at 4:01 PM Mohammad Aqib 
>>> wrote:
>>>
>>>> Hi All,
>>>> I have a task to migrate all data into a new database using
>>>> "backup.sql" file.
>>>> How to write a Python script to do this task.
>>>>
>>>> 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 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/CAOh93ncV9awh9Y6GCC72FCY4XUO2eOSBWpB-TKH_RRmOk_4vZA%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAOh93ncV9awh9Y6GCC72FCY4XUO2eOSBWpB-TKH_RRmOk_4vZA%40mail.gmail.com?utm_medium=email_source=footer>
>>>> .
>>>> 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/CAPUAdBH1-wZeR3J%2BKFpFxnwQYWu3CsZxacoiPOOsv7VzqY3%2Brg%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAPUAdBH1-wZeR3J%2BKFpFxnwQYWu3CsZxacoiPOOsv7VzqY3%2Brg%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>> 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/CALG8KeAXP%3DF4fzbV1PVMr0CyELHYr2pASRqZerDEt1%3DVbkX%2BSQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CALG8KeAXP%3DF4fzbV1PVMr0CyELHYr2pASRqZerDEt1%3DVbkX%2BSQ%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>> 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

Re: Django 2.1.2 update, admin interface broken: render() got an unexpected keyword argument 'renderer'

2018-10-09 Thread carlos
quot; 
>> in render
>>   209. nodelist.append(node.render_annotated(context))
>>
>> File "/usr/local/lib/python3.6/site-packages/django/template/base.py" in 
>> render_annotated
>>   904. return self.render(context)
>>
>> File "/usr/local/lib/python3.6/site-packages/django/template/defaulttags.py" 
>> in render
>>   209. nodelist.append(node.render_annotated(context))
>>
>> File "/usr/local/lib/python3.6/site-packages/django/template/base.py" in 
>> render_annotated
>>   904. return self.render(context)
>>
>> File "/usr/local/lib/python3.6/site-packages/django/template/defaulttags.py" 
>> in render
>>   309. return nodelist.render(context)
>>
>> File "/usr/local/lib/python3.6/site-packages/django/template/base.py" in 
>> render
>>   937. bit = node.render_annotated(context)
>>
>> File "/usr/local/lib/python3.6/site-packages/django/template/base.py" in 
>> render_annotated
>>   904. return self.render(context)
>>
>> File "/usr/local/lib/python3.6/site-packages/django/template/defaulttags.py" 
>> in render
>>   309. return nodelist.render(context)
>>
>> File "/usr/local/lib/python3.6/site-packages/django/template/base.py" in 
>> render
>>   937. bit = node.render_annotated(context)
>>
>> File "/usr/local/lib/python3.6/site-packages/django/template/base.py" in 
>> render_annotated
>>   904. return self.render(context)
>>
>> File "/usr/local/lib/python3.6/site-packages/django/template/base.py" in 
>> render
>>   993. return render_value_in_context(output, context)
>>
>> File "/usr/local/lib/python3.6/site-packages/django/template/base.py" in 
>> render_value_in_context
>>   972. value = str(value)
>>
>> File "/usr/local/lib/python3.6/site-packages/django/utils/html.py" in 
>> 
>>   397. klass.__str__ = lambda self: mark_safe(klass_str(self))
>>
>> File "/usr/local/lib/python3.6/site-packages/django/forms/boundfield.py" in 
>> __str__
>>   33. return self.as_widget()
>>
>> File "/usr/local/lib/python3.6/site-packages/django/forms/boundfield.py" in 
>> as_widget
>>   93. renderer=self.form.renderer,
>>
>> Exception Type: TypeError at /admin/website/person/2/change/
>> Exception Value: render() got an unexpected keyword argument 'renderer'
>>
>>
>> It seems like downgrading to 2.0.8 temporarily fixes our problem, but I
>> was wondering if there is a better fix that allows us to have 2.1.2 + a
>> working admin interface?
>>
>> 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 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/4ae5be1b-3438-482d-a501-4258bc94e80c%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/4ae5be1b-3438-482d-a501-4258bc94e80c%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO1XJdky3hBvL6y57AGxTvdqAF9wky7XJ%3DJq5vk4n-KmrQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django 2.1.2 update, admin interface broken: render() got an unexpected keyword argument 'renderer'

2018-10-08 Thread carlos
r/local/lib/python3.6/site-packages/django/template/base.py" in 
> render
>   937. bit = node.render_annotated(context)
>
> File "/usr/local/lib/python3.6/site-packages/django/template/base.py" in 
> render_annotated
>   904. return self.render(context)
>
> File "/usr/local/lib/python3.6/site-packages/django/template/base.py" in 
> render
>   993. return render_value_in_context(output, context)
>
> File "/usr/local/lib/python3.6/site-packages/django/template/base.py" in 
> render_value_in_context
>   972. value = str(value)
>
> File "/usr/local/lib/python3.6/site-packages/django/utils/html.py" in 
>   397. klass.__str__ = lambda self: mark_safe(klass_str(self))
>
> File "/usr/local/lib/python3.6/site-packages/django/forms/boundfield.py" in 
> __str__
>   33. return self.as_widget()
>
> File "/usr/local/lib/python3.6/site-packages/django/forms/boundfield.py" in 
> as_widget
>   93. renderer=self.form.renderer,
>
> Exception Type: TypeError at /admin/website/person/2/change/
> Exception Value: render() got an unexpected keyword argument 'renderer'
>
>
> It seems like downgrading to 2.0.8 temporarily fixes our problem, but I
> was wondering if there is a better fix that allows us to have 2.1.2 + a
> working admin interface?
>
> 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 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/ca75637c-1987-4909-8fb2-faad148e3280%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/ca75637c-1987-4909-8fb2-faad148e3280%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO3kzfNUj_Oa-mr0rQV6YdZXFvSfqbd95ZeDWR78ufTW9A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Update django 1.8 project to 2.0 lts

2018-09-23 Thread carlos
Django 2.0 Not LTS warning!! the next LTS Django version is 2.2

Cheers

On Sun, Sep 23, 2018 at 6:08 PM Mike Dewhirst  wrote:

> On 23/09/2018 11:15 PM, 'David Brown' via Django users wrote:
> > I have a large django project built in 1.8 with about 14 apps and a
> large amount of dependencies.
> >
> > I already have a good idea about how I'm going to update the 2.7 code to
> 3.6 or possibly just make it compatible with both, however, I'm not sure
> what is the best practice and most efficient way to refactor/upgrade the
> django framework to 2.0 from 1.8.
> >
> > Bare in mind this thousands of lines of code so efficiency in terms of
> work is crucial.
>
> I suggest bringing the Django code only as far as 1.11 in Python 2.7.
> Django 1.11 is a LTS version.
>
> Then I would advance the same code to Python 3.x and get that working as
> a separate ring-fenced project. You can do that away from production or
> using six and other dual-Python tricks you can also deploy 3.x code to
> production. I have been writing in 3.x and deploying in 2.7 for quite
> some time. One of these days I'll switch the production server to
> Python3 and drop 2.7.
>
> Only with Django 1.11 and Python 3.x working properly in production will
> I advance to the next Django 2.x LTS version
>
> Oh, and heaps of tests :)
>
> hth
>
> Mike
>
> >
> > Thanks in advance for all suggestions!
> >
>
> --
> 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/c04babcd-b1cf-4b0b-fdb6-854e9671c543%40dewhirst.com.au
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO3rtp7LvwBwFpr29-i5ZuDBZ%2BH2V1u-74ZQn4XBy0fhfg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Signals and Profile Update

2018-09-17 Thread carlos
hello
the only thing you can do is compare dates of storage of the information
and then check if the current date is greater than the saved date is an
update

On Mon, Sep 17, 2018 at 10:08 AM 'dtdave' via Django users <
django-users@googlegroups.com> wrote:

> I have a Custom User Model and a separate Profile Model with django
> all-auth.
>
> The following signal creates the profile for the user and then informs the
> admin that a new user has registered.
>
> @receiver(post_save, sender=User)
> def create_user_profile(sender, **kwargs):
> '''Create a profile for a new user'''
> if kwargs['created']:
> Profile.objects.create(user=kwargs['instance'])
>
>
> @receiver(post_save, sender=User)
> def notify_admin(sender, instance, created, **kwargs):
> '''Notify the administrator that a new user has been added.'''
> if created:
> subject = 'New Registration created'
> message = 'A new candidate  %s has registered with the site' %
> instance.email
> from_addr = 'no-re...@example.com'
> recipient_list = ('ad...@example.com',)
> send_mail(subject, message, from_addr, recipient_list)
>
> This works fine and using Mailhog I get the email informing me of the new
> user.
>
> Where I am stuck, is that I also want to inform the admin when a profile
> is updated. However, for the life of me I cannot fathom out how to do this!
>
> Any help would be appreciated.
>
> --
> 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/fd387ab3-5993-4c54-b60b-7b16cf122c52%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/fd387ab3-5993-4c54-b60b-7b16cf122c52%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO29aQYomhgf6e7AM9sSBVvteUqgnj6uEC%2BHGwuVcQWn-Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Channels 2 on AWS Elastic Beanstalk

2018-09-04 Thread Carlos Zillner


It works on my localhost. But when I deploy on AWS ElasticBeanstalk, I get 
this error:


Traceback (most recent call last):
File 
"/opt/python/run/venv/local/lib/python3.6/site-packages/django/core/handlers/exception.py",
 line 35, in inner
response = get_response(request)
File 
"/opt/python/run/venv/local/lib/python3.6/site-packages/django/core/handlers/base.py",
 line 113, in _get_response
resolver_match = resolver.resolve(request.path_info)
File 
"/opt/python/run/venv/local/lib/python3.6/site-packages/django/urls/resolvers.py",
 line 523, in resolveraise Resolver404({'tried': tried, 'path': new_path})

django.urls.exceptions.Resolver404: {'tried': [[], []], 'path': 'socket/comunidade/'}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File 
"/opt/python/run/venv/local/lib/python3.6/site-packages/django/core/handlers/exception.py",
 line 99, in get_exception_response
response = callback(request, **dict(param_dict, exception=exception))
TypeError: handler404() got an unexpected keyword argument 'exception'


My routing.py:


application = ProtocolTypeRouter({

"websocket": OriginValidator(
AuthMiddlewareStack(
URLRouter([
# URLRouter just takes standard Django path() or url() entries.
path("socket/", MyConsumer),
url("socket/(?P[\w-]+)", MyConsumer),
]),
),
[".mydomain.com.br", "localhost"]
),})


My JS connection:


var ws_scheme = window.location.protocol == "https:" ? "wss" : "ws";var 
connection = new WebSocket( ws_scheme + "://" + window.location.host + 
"/socket" + window.location.pathname );


In AWS config, WSGIPath is pointing to wsgi.py. It seems to be routing 
channels 2 to urls.py

-- 
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/82b5bb8e-7722-42ee-9a32-0553ab6d6f87%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: MODO DEBUG = TRUE (problema a salir del modo de debu)

2018-08-21 Thread carlos
Hola Dario tenemos un grupo en español django...@googlegroups.com donde
podes hacer las preguntas en español
pero para contestarte pues bien por seguridad cuando vayas a poner en
produccion tu sitio desactiva el debug con falso y en el
alloed_host debes colocar o la ip de tu servidor o mejor el tu dominio ya
sea con www y sin www, si estas en modo desarrollador
nada de eso actives ya que estas en tu pc y con debug en verdadero para ver
depurar los errores

saludos

On Tue, Aug 21, 2018 at 10:26 AM Dario Coronel 
wrote:

> Hola soy principiante en django y python y yo de Paraguay un país del que
> solo hablamos español y me disculpo por mi ortografía, entonces mi pregunta
> es sobre el MODO DEBUG = VERDADERO porque leí la documentación y entiendo
> que cuando el modo de depuración es cierto es muy importante desactivarlo
> debido a problemas de seguridad, pero cuando llegué a mi settings.py y
> apagué mi modo de depuración y luego voy a la consola y configuro los
> comandos "python manage.py runserver"
> él solo mostró un error cuando dijo "Tu más estableces la configuración
> ALLOWED_HOSTS si DEBUG es False" por qué no ejecuto mi servidor cuando
> apago mi modo de depuración
>
> --
> 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/8e7f2ee5-7129-4ab4-8385-e1a6ea82c0a0%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/8e7f2ee5-7129-4ab4-8385-e1a6ea82c0a0%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO3sSj5VPQgaLKBuatkW1zdpmxZrE%2B6LLHJ_79qRSwkLYA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Help with DetailView

2018-08-15 Thread Carlos Wilfrido Montecinos
Hello all! I'm new in Django and have some problems understanding how I 
made this DetaiView work. 

I started changing my FBV to GCBV. This one, that the only thing it does is 
group articles by a tag:

def tag(request, tag_name):
> tag = get_object_or_404(Tag, tag_name=tag_name)
> articles = tag.article_set.all().order_by('-created_at')
> context = {
> 'tag': tag,
> 'articles': articles,
> }
> return render(request, 'default/index.html', context)
>

 I somehow made it work like this:

class TagDetailView(DetailView):
> model = Tag
> template_name = 'default/index.html'
> slug_field = 'tag_name' # get the tag name for the url
>
> def get_context_data(self, **kwargs):
> tag_ = self.kwargs.get('slug') # get the tag_name (slug)
> context = super().get_context_data(**kwargs)
> context['tag'] = get_object_or_404(Tag, tag_name=tag_)
> context['articles'] = context['tag'] \
> .article_set.all().order_by('-created_at')
> return context
>

This made sense to me, but I continued playing with it and still worked 
after I removed tag_ and context['tag']

class TagDetailView(DetailView):
> model = Tag
> template_name = 'default/index.html'
> slug_field = 'tag_name' # get the tag name for the url
>
> def get_context_data(self, **kwargs):
> context = super().get_context_data(**kwargs)
> context['articles'] = context['tag'] \
> .article_set.all().order_by('-created_at')
> return context
>

How can both, {{ tag }} and {{ articles }} be rendering in the template? I 
really want to understand that before I continue. I have read the 
documentation, some articles and don get it. 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/56c418c1-bd80-4bd7-b20c-9de257a9f1c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django dynamic Database

2018-08-03 Thread carlos
What ? Need more information when you say dynamic database

El vie., 3 de ago. de 2018 5:36 a. m., Cheran Rj 
escribió:

> Hi! how to create dynamic database for each user or organisation
>
> --
> 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/3188932a-9f8d-4716-9496-6a11bc87d6cd%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/CAM-7rO3ZHc-stDBQJii939U%2BaxEQSg539x6o4eqNU_mCDcTY_w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: django.contrib.admin

2018-06-29 Thread carlos
you read de doc
https://docs.djangoproject.com/en/2.0/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_display


On Fri, Jun 29, 2018 at 4:43 PM Jim Lamb  wrote:

> How can I override the list_display to add fields in my admin console for
> users?
>
> --
> 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/e7613363-d11a-43cb-9849-7af5ef864f04%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/e7613363-d11a-43cb-9849-7af5ef864f04%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO1uMikc86%3DRq17QPCtvROyofe8dOfD5NCPH4H%2BfYDSOiQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Interfaz administrativa, login con SSH

2018-06-10 Thread carlos
Hola, tambien te recomiendo que leas esto
Hi, i also recommend you read this

https://hackernoon.com/5-ways-to-make-django-admin-safer-eb7753698ac8


On Sun, Jun 10, 2018 at 8:02 PM Frank Mascarell <
frank_mascar...@gandiweb.com> wrote:

> Vijay, thanks for the help, but the authentication of two factors seems
> quite uncomfortable, considering that an administrator can enter every day,
> several times a day, having to depend on a mobile device for each login.
>
> I have to rethink the problem, perhaps by directly accessing postgres,
> through
> SSH with a GUI for the client-user that includes a CRUD interface,
> although I do not have
> knowledge of the software available for this. I have to investigate what
> other ways I can
> identify myself to a postgress database with SSH.
>
> Greetings.
>
> --
> 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/05cc0a47-79e8-4088-b54f-15d9d098c514%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/05cc0a47-79e8-4088-b54f-15d9d098c514%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
att.
Carlos Rocha

-- 
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/CAM-7rO0B1Qk%3DO6o8kwFv1UdxGFMxYg-eKbOb5VAwkj6XHfWvGQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: A calendar booking app

2018-06-05 Thread carlos
Hi, maybe try use

https://github.com/llazzaro/django-scheduler

https://github.com/bitlabstudio/django-booking

or find here
https://djangopackages.org/

On Tue, Jun 5, 2018 at 9:34 AM, Dan Tagg  wrote:

> I'm looking for the same thing Kasper -- Django based not PHP.
>
> Dan
>
> On 5 June 2018 at 13:32, Kasper Laudrup  wrote:
>
>> Hi fellow Django users,
>>
>> I'm planning to start up a homepage for my familys summer house.
>>
>> There are a few ideas of what should be there, user management, possibly
>> "blog like" entries, a photo gallery etc. I think I've found some pretty
>> good existing Django apps for that, so that shouldn't be a problem to
>> integrate them together somehow.
>>
>> A really cool feature though, would be to have some kind of
>> reservation/booking system where any (authenticated) user can see when the
>> house has been reserved and when it's available.
>>
>> Ideally, a non-admin user can request a range of dates, and an admin can
>> then accept or decline that request. Naturally, there can only be one
>> reservation on a range of dates.
>>
>> I have found a few calendar/booking like applications, but I'm not sure
>> if any of them really fits my purpose.
>>
>> I could write all the code myself, but it would be a lot easier for me if
>> an existing project already supports something similar that I could
>> integrate.
>>
>> Anyone who has any experience with doing something that or could
>> recommend where I should look?
>>
>> Thanks a lot!
>>
>> Kind regards,
>>
>> Kasper Laudrup
>>
>> --
>> 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/ms
>> gid/django-users/7c77a814-7416-91ce-25db-1b3f0f22bd03%40stacktrace.dk.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Wildman and Herring Limited, Registered Office: 28 Brock Street, Bath,
> United Kingdom, BA1 2LN
> <https://maps.google.com/?q=28+Brock+Street,+Bath,+United+Kingdom,+BA1+2LN=gmail=g>
> , Company no: 05766374
>
> --
> 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/CAPZHCY6bO9hKhQNzHuDz_-L6JiWFfCCk6hJr9uxbMhy9%
> 2BWvZnA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAPZHCY6bO9hKhQNzHuDz_-L6JiWFfCCk6hJr9uxbMhy9%2BWvZnA%40mail.gmail.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
att.
Carlos Rocha

-- 
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/CAM-7rO1QU390%3DPQSG7ByT-S1PdVnW_7Fpiwy%3DyMU7Yznz%2Bwpbw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


I canot upload files how can i fix it

2018-05-12 Thread carlos . davalos17
 views 

def ArticuloFormA(request,Materiaid): 
Articulos = Articulo.objects.filter(Materia_id= Materiaid) 
Articulos = Articulos.order_by('-Fecha_Publicacion')[:5] 
Pregunta_Form = ArticuloForm() 
args = {'Pregunta_Form': Pregunta_Form} 
if request.method == 'POST': 
form = ArticuloForm(request.POST or None, request.FILES or None)  
if form.is_valid(): 
Materias = Materia.objects.get(id = Materiaid) 
Preguntad = form.save(commit=False) 
Preguntad.user = request.user 
Preguntad.Texto_Pregunta = request.POST['Titulo'] 
Preguntad.Materia = Materias 
Preguntad.Pdf_articulo = request.FILES['Pdf_articulo'] 
Preguntad.save() 
return render(request,'articulos/detail.html',{'Preguntas': 
Articulos,'Materias': Materias}) 
else: 
Pregunta_Form = ArticuloForm() 
args = {'Pregunta_Form': Pregunta_Form} 
return render(request,'foro/FormPregunta.html',args) 


html

{% extends 'cuentas/base.html' %}

{% block body %}

CrearPregunta

{% csrf_token %}
{{ Pregunta_Form.docfile }}
Submit


{% 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 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/353c96a5-5946-4530-beb4-71ad83c0366b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Do you know good guides to use ajax in django

2018-04-26 Thread CARLOS EDUARDO DAVALOS CORNEJO
thanks for you answer y wiil read the documentation


2018-04-26 4:42 GMT-07:00 Avraham Serour :

> I suggest taking a look at http://intercoolerjs.org
>
>
> On Thu, Apr 26, 2018 at 7:36 AM, 
> wrote:
>
>> Im starting a social network for my school and i need to show the coments
>> of my post without recharging the whole and for other things in my proyect
>>
>> --
>> 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/ms
>> gid/django-users/de939dae-605d-4cf1-9a7a-e5ee48f249ed%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/CAFWa6tJL4DykA-54hXLEuzi9q1Fz_
> XHzbX7b9BbrtfYRS9dUcQ%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/CABDbarq1sfYO-qr8k%2BL1uqo%3Dx1nGLqhpV%3Di1hrDhC%3DTXaH4uwQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Do you know good guides to use ajax in django

2018-04-26 Thread carlos . davalos17
Im starting a social network for my school and i need to show the coments 
of my post without recharging the whole and for other things in my proyect

-- 
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/de939dae-605d-4cf1-9a7a-e5ee48f249ed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


  1   2   3   4   5   6   >