Hi,
I need quick help about using the fields in the following model:
class Size(models.Model):
azimuth = models.CharField(max_length=200, blank=True, null=True)
tilt = models.CharField(max_length=200, blank=True, null=True)
boundary_coordinates = models.CharField(max_length=200, blank=Tr
l problem?
>
> 11.1.2018 3.04 "Shazia Nusrat" kirjoitti:
>
>> Hi,
>>
>> I need quick help about using the fields in the following model:
>>
>> class Size(models.Model):
>>azimuth = models.CharField(max_length=200, blank=True, null=True)
>
Hi,
I am trying to create a simple location form from GIS models and following
GeoDjango tutorial and after completing the tutorial I am still confused
about how to go for it.
What I need is that users come in on my page and they select their location
from the map and it should save in the datab
Hi,
Below is the code for Javascript from Django template Google Maps API. I
need to be able to save this in my Django models with JSON response. I am
new user so an example will be really a great help.
Precisely I need to be able to save coordinates like latitude and longitude
and then convert i
tienne
>
> Le 2018-02-12 à 18:04, Shazia Nusrat a écrit :
>
> Hi,
>
> Below is the code for Javascript from Django template Google Maps API. I
> need to be able to save this in my Django models with JSON response. I am
> new user so an example will be really a great help.
>
Hi,
I am trying to work around with PDF's where user uploads PDF in image or
filefield and then way to extract it for Django and finally update DB table
based on it. Following are the models:
class StudentFee(models.Model):
class_name = models.CharField(choices=CLASSES, max_lenght=200)
Hi,
I am using Django-registration for registration process in my django
project. Now I need to add a shop login for resellers. Can some one provide
me the process to add Shop-Dashboard in NLP like in non coding format just
to give me idea how to go for it.
Do I need to build form from my Shop mo
Hi I am having this error while I am trying to delete session and cart by
IDs after order fulfillment.
carts/views.py
class CheckoutFinalView(CartOrderMixin, View):
> def post(self, request, *args, **kwargs):
> order = self.get_order()
> order_id = order.id
> print ord
nt actually return any sort of
> http response.
>
> On Wed, Aug 31, 2016 at 7:27 AM, Shazia Nusrat
> wrote:
>
>> Hi I am having this error while I am trying to delete session and cart by
>> IDs after order fulfillment.
>>
>> carts/views.py
>>
>>
Hi,
Can someone please help me with the question in link.
I've been trying to get it done from hours now please assist to get my
processed orders displayed on dashboard.
Regards,
Shazia
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubs
Hi,
Following is the link and kindly assist as I've been trying to do this for
hours now.
http://stackoverflow.com/questions/39685833/django-filter-with-foreignkey-not-working?noredirect=1#comment66671635_39685833
Regards,
Shazia
--
You received this message because you are subscribed to the G
I am trying to fix issue with Zinnia blog application and its popping up
error related to aggregator and entries. Following is the code if someone
have a suggestion:
def get_authors(context, template='zinnia/tags/authors.html'):
"""
Return the published authors.
"""
entries = Entry
admin',
> 'django.contrib.sites',
> 'django.contrib.sessions',
> 'django.contrib.messages',
> 'django.contrib.staticfiles',
> 'django.contrib.contenttypes',
> 'mptt',
> 'tagging',
> 'zinnia',
Hi,
I am trying to create multiple types of users in my django e-commerce
project by extending built-in Django user model but I am having issue.
Would appreciate if someone can guide me to right direction.
Following is the code in my "accounts" app.
from __future__ import unicode_literals
from dj
erwise you'll have to remove your existing database
> and run migrations from start.
>
> Asad Jibran Ahmed
> http://blog.asadjb.com
>
> On Mon, Oct 24, 2016 at 4:37 AM, Shazia Nusrat
> wrote:
>
>> Hi,
>> I am trying to create multiple types of users in my d
t you're doing with your
> UserDetails models.
>
> Hope that helps.
>
> Asad Jibran Ahmed
> http://blog.asadjb.com
>
> On Mon, Oct 24, 2016 at 7:18 AM, Shazia Nusrat
> wrote:
>
>> I've deleted DB and migrations I had previously.
>> But still can
Hi,
I am using doorsale repo for building ecommerce site due to it's simplicity
but I am stuck at the error while trying to catch cart session ID.
The repo link is:
https://github.com/mysteryjeans/doorsale
Error traceback is below:
Request Method: POST
Request URL: http://localhost:8000/sales
Hi All,
I am having hard time to get multiple roles for users in a project and I am
having errors.
I've added related_name but still getting error. Can please tell me how to
fix this?
***
from django.db import models
from django.contrib.auth.models import Ab
Hi,
I need to select form values horizontally but couldn't get it work.
Following is the code:
class HorizontalRadioRenderer(forms.RadioSelect.renderer):
def render(self):
return mark_safe(u'\n'.join([u'%s\n' % w for w in self]))
class ResponseForm(models.ModelForm):
class Meta:
From 1.11 the widgets changed to a
> template mechanism.
>
> https://docs.djangoproject.com/en/1.11/ref/forms/widgets/#radioselect
>
> Maybe this can help:
> https://stackoverflow.com/questions/44187640/django-1-
> 11-horizontal-choice-field
>
> El dimarts, 25 juliol de 2017
;s the CSS:
>
> https://github.com/django/django/blob/d17eaa868cd6911197dcd8b096c4f0
> 418c47007e/django/contrib/admin/static/admin/css/forms.css#L42-L66
>
> On Tuesday, July 25, 2017 at 8:10:58 AM UTC-4, Shazia Nusrat wrote:
>>
>> I am using Djnago 1.11.1. I've tried te
Hi,
I have a simple model like below:
class Artists(models.Model):
name = models.CharField(max_length=200)
description = models.TextField()
def __unicode__(self):
return self.name
I am trying to call it in my view like below:
def artistdetail(request, id):
' function.
>
>
> M
>
> On Wed, Jul 26, 2017 at 4:50 AM, Shazia Nusrat
> wrote:
>
>> Hi,
>>
>> I have a simple model like below:
>>
>> class Artists(models.Model):
>>name = models.CharField(max_length=200)
>>desc
Hi,
I need to develop a view that can help end-users create forms from the
frontend like SurveyMonkey or Google Survey Forms. Basically I need to get
admin forms at frontend and let the user's create forms on given set of
fields.
Can anyone point me to right direction please?
Thanks.
Shazia
--
I need to create a frontend app where I can use forms to create forms such
as Google Surveys or Survey Monkey kind of application. Can someone point
me to any reusable app or something similar or someone can guide me that
would be a great help.
Regards,
Shazia
--
You received this message becau
Hi,
I am trying to collect some information about implementing Video Chat in a
Django project. Is there some working repo where WebRTC is implemented for
video chat using Django?
Some link or web resource would be a great help.
Regards,
Shazia
--
You received this message because you are subsc
t; else:
>> print('There was an error')
>> for err in education.errors:
>> print(err)
>>
>>
>> On Sunday, February 23, 2020 at 2:01:37 AM UTC-5, Shazia Nusrat wrote:
>>>
>>> Hi,
>>>
>>> C
Can someone help me with subclassing django-views as I couldn't understand
the pattern to work with.
Following is the link to see the code.
https://github.com/AndrewIngram/django-extra-views/issues/187
Regards,
Shazia
--
You received this message because you are subscribed to the Google Groups
Hi Guys,
I have a form created from foreignkey model. I have used "include" with
jinja for displaying my fields. But I don't know how to iterate through and
include tag.
%
Below is the code and I would appreciate if someone can help me to iterate
through following template code.
{% for field in f
Hi,
I am using Django for my web app and DRF to expose my API for mobile
applications. I need users to sign in using social accounts at mobile side
and need to authenticate via Django API.
I've used couple of libraries but couldn't understand the workflow for
1. https://github.com/RealmTeam/d
Ngrok will help you publish your site for development if you need to show
your work remotely. Remember you need to run two terminals on terminal 1
you will run your project as you normally do and on other terminal you need
to run ngrok. It will provide you with couple of URLs one for http and
a
You also need to add your url provided by Ngrok to your Django settings.py
"ALLOWED_HOSTS". Only then it will present your site on that URL.
On Thursday, December 24, 2020 at 4:27:00 AM UTC+5 Shazia Nusrat wrote:
> Ngrok will help you publish your site for development if you
Hi,
I can deploy sites using virtualenv but having trouble with pipenv using
Gunicorn + Nginx. Can someone provide me some guide or reference for
deploying sites in production using Pipenv?
Regards,
Shazia
--
You received this message because you are subscribed to the Google Groups
"Django
Hi,
I am developing a stock management application and I am stuck at simple use
case.
Following is my model for Stock:
class LiquidChemicalML(Stock):
supplier_name = models.ManyToManyField(Supplier)
quantity_values = (
('Ounces', 'Ounces'),
('Millilitters', 'Millilitters'),
('Pounds', 'Pounds')
ay, June 7, 2021 at 5:32:12 PM UTC+5 frds...@gmail.com wrote:
> If you want to have multiple chemicals in a single order then you'll have
> to use ManyToManyField instead of ForeignKey field.
>
> On Mon, Jun 7, 2021 at 5:08 PM Shazia Nusrat wrote:
>
>> Hi,
>> I am
Hi,
I need help to understand implementation of multiple user roles and
permissions on views/templates/objects. If someone can point me to really
nice project at GitHub I will be really thankful. I couldn't find one so
far.
Regards,
Shazia
--
You received this message because you are subscribed
I just needed a working example of added permissions system in a project I
can run.
Django-rules is good and I've tried it in my test-project. I was hoping a
project with bunch of user types and assigned permissions hardcoded.
I know I can do things from default admin dashboard.
Regards,
Shazia
So kind of you George. It worked for me in examples and thanks for adding
Python code example search engine.
You really made my life easier. :-)
Regards,
Shazia
On Thu, Sep 26, 2019 at 4:39 AM George Tantiras wrote:
> Repositories using django-rules:
>
>
> https://github.com/dfunckt/django-rul
Hi I am looking for some help to generate a barcode for my practice project
and I need commercial code128 generation help.
I need to add my customer ID and product ID in the barcode.
Any help would be appreciated.
Regards,
Shazia
--
You received this message because you are subscribed to the G
Hi I have a situation to manage multiple models with FK for a single
CreateView.
Can someone give me a solution for the below.
class Client(models.Model):
name = models.CharField(max_length=100)
email = models.EmailField()
phone = models.CharField(max_length=100)
business = mo
ForeignKey.
On Thu, Oct 10, 2019 at 9:18 AM Mohammad yunus wrote:
> What is mean FK Shaziya
>
> On Thu, 10 Oct 2019, 9:19 pm Shazia Nusrat, wrote:
>
>> Hi I have a situation to manage multiple models with FK for a single
>> CreateView.
>>
>> Can some
Again I need to use multiple models in one CreateView. I couldn't make it
work by just importing and using it.
@Suraj can you share an example.
Regards,
Shazia
On Thu, Oct 10, 2019 at 3:27 PM Suraj Thapa FC
wrote:
> Just import and use it..
>
> On Thu, 10 Oct, 2019, 10:51 PM
cts.create()
> model2.objects.create()
>
> On Fri, 11 Oct, 2019, 4:33 AM Shazia Nusrat, > wrote:
>
>> Again I need to use multiple models in one CreateView. I couldn't make it
>> work by just importing and using it.
>> @Suraj can you share an example.
>&g
Hi,
Can someone help to answer the question in link?
Also I've been trying to get CreateView working with 5 inline formsets but
couldn't make it work.
Will really appreciate your help if someone can help me with working
example.
Question:
https://stackoverflow.com/questions/60354976/django-creat
44 matches
Mail list logo