Thursday, February 28, 2019

Re: How to override the ModelAdmin "change" form ?

You maybe want a model admin view where you can send the user to and collect the data you want to comare and show warnings

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@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/2b4e6166-2f8a-40f0-9f0d-a5c7c8df494e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Re: Looking for Developer, who can develop location based tracking sales force

Lol , those poor sales agents will not rest again ..

You need a mobile app which will be installed on agents smart phones , the app will grunt gps access during installations ..

The app will run a code that will send the location every 10 seconds to the backend api which will save it in database and make it available for viewers in any format .. HTML or JSON ....

On Thu, 28 Feb 2019, 15:39 vaiddyy viswanath, <vaiddyy@gmail.com> wrote:
Hi Guys,

I am vaidy, new to this group and I am techies, who can develop Location based tracking system to track sales force and integrate the data in the HRMS Module.

If any body out there, who can do this, pleas let me know

Thanks in advance.

Regards,

Vaidy.

Note: My apology, if this is not the right platform to discuss this and please do help me through your friends,

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@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/CAFJGz8O7LAZCzFXmEc9SsXaDS%3DmFi0Q4h7VccDodOcPmKCUBkQ%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+unsubscribe@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/CAHV4E-ee9nRrFr5YwphBr5JhZH_kvztw15pgthWHKNH0qSXBgg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Re: 'URLPattern' Object is not a mapping

umm


On Tuesday, February 26, 2019 at 6:06:20 PM UTC+5:45, Tina Upadhyay wrote:
Getting this error and the urls.py of my model is as shown below:


from django.conf.urls import url
from new import views
app_name = 'new'


urlpatterns = [
url(r'^export/csv/$', views.export_users_csv, name='export_users_csv'),
# url(r'^$', views.upload, name='uplink'),
url(r'^download/(.*)', views.download, name="download"),
url(r'^download_attachment/(.*)/(.*)', views.download_as_attachment,
name="download_attachment"),
url(r'^exchange/(.*)', views.exchange, name="exchange"),
url(r'^parse/(.*)', views.parse, name="parse"),
url(r'^import/', views.import_data, name="import"),
url(r'^import_sheet/', views.import_sheet, name="import_sheet"),
url(r'^export/(.*)', views.export_data, name="export"),
url(r'^handson_view/', views.handson_table, name="handson_view"),

# handson table view
url(r'^embedded_handson_view/',
views.embed_handson_table, name="embed_handson_view"),
url(r'^embedded_handson_view_single/',
views.embed_handson_table_from_a_single_table,
name="embed_handson_view"),
# survey_result
# url('^survey_result/',
# views.survey_result, name='survey_result'),

# testing purpose
url(r'^import_using_isave/',
views.import_data_using_isave_book_as),
url(r'^import_sheet_using_isave/',
views.import_sheet_using_isave_to_database),
url(r'^import_without_bulk_save/',
views.import_without_bulk_save, name="import_no_bulk_save")
]

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@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/8a4bb715-ba69-43b8-abe7-78daee9a0dd2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Looking for Developer, who can develop location based tracking sales force

Hi Guys,

I am vaidy, new to this group and I am techies, who can develop Location based tracking system to track sales force and integrate the data in the HRMS Module.

If any body out there, who can do this, pleas let me know

Thanks in advance.

Regards,

Vaidy.

Note: My apology, if this is not the right platform to discuss this and please do help me through your friends,

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@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/CAFJGz8O7LAZCzFXmEc9SsXaDS%3DmFi0Q4h7VccDodOcPmKCUBkQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Re: What's the difference between using mariadb as database and using mysql?

Perhaps the biggest difference is ownership. Mysql is owned by Oracle and, though free, is not considered open source. It was acquired by Oracle in 2010.  Its creators felt there was a conflict of interest so they left to start MariaDB.

MariaDB is owned by the MariaDB Foundation and is considered completely open source.  It was built by the same people who built Mysql as a drop-in replacement for Mysql.  

You should have no problems migrating your code from Mysql to MariaDB.  I run on several different servers at least one of which runs Mysql (while the others have already migrated to MariaDB) using the same code with NO changes. 

There's a lot more to it than what I've mentioned here.  But I hope I have, at least, helped answer your question.

I Personally, I prefer MariaDB.


On Thu, Feb 28, 2019 at 2:34 PM x w <wangxiong17419@gmail.com> wrote:
I'm using a Linux distribution called manjaro and mysql has been replaced with mariabd in the official repository. When I use maridb as database, what is the difference with mysql? Is there something special that I should pay attention to?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@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/a34d4544-66c0-485d-bd8a-356d5ee42451%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+unsubscribe@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/CANcdg%3DsPQE5Lbt7C7xPVLMXuwjNTAL%3DN%3DTZMv7bv8BQ_zXVBOA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

How to override the ModelAdmin "change" form ?

Hi,

I'm currently struggling with a custom ModelAdmin.

Considering the following model:


# Bloc fonctionnel
class Assembly(Item):

    product = models.ForeignKey(to='ProductFamily', on_delete=models.CASCADE, null=True, verbose_name=_('Famille Produit'))
    functions
= models.ManyToManyField(Function, verbose_name=_('Fonctions'))
   
performances = models.ManyToManyField(Performance, verbose_name=_('Performances'), related_name='performances')

   
def _get_type(self):
       
return ItemType.ASSEMBLY

   
class Meta:
        verbose_name
= _('Bloc Fonctionnel')
        verbose_name_plural
= _('Blocs Fonctionnels')



I have a custom AssemblyAdmin related to it and also a custom AssemblyForm for customizing some fieds.

The performances m2m field is critical.  
The performances are captured in the form with a dynamic_raw_id field, which works fine.

But when this field is modified, some updates/deletions might be applied in other tables of the database.
For this purpose, I need to collect the "performance" pk captured in the html form and compare them with those currently in the database.

Basically, when the user clicks on the regular "Save" or "Save and continue" button, I would need to display an alert form (like when you click on the delete button) to explain what would happen.

I struggled with some ajax routines but it does not work as expected. 

I don't know if it's really doable and how to achieve it.

Any suggestion is welcome.

Cheers.

Z.







--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@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/88135218-a965-46c8-a454-c0376a5682f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Why is redis multi-node not compatible with channels' websocket module?

When I start multiple redis nodes, django channels will report an error, indicating that no extra slots are allocated.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@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/50cdcd16-9af0-4bdc-9cb4-d3a3fa5b0e76%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.