On 1/08/2019 1:35 am, Kean wrote:
> Hi .
>
> Please can anyone refer me to a good source to learn how to write a
> programme which supports document creation, flow,
> conversion, management and tracking between parties?
https://djangopackages.org/grids/g/document-management/
These are all django packages and therefore should be readable and
deliver some understanding. If one of them suits you it would be best to
adopt that and adapt if necessary.
I dabbled in this sort of thing some years ago and the concepts were
easy enough to understand then but things are different now so I can't help.
I reckon you need to swap barcodes out and blockchain in.
Good luck.
Mike
>
> Best,
>
> K
> --
> You received this message because you are subscribed 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
> <mailto:django-users+unsubscribe@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/92ed4806-d7f3-4cce-b626-bc5da8768e2b%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/92ed4806-d7f3-4cce-b626-bc5da8768e2b%40googlegroups.com?utm_medium=email&utm_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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/04146eb3-2af4-0e2f-ac1e-bf13cca0da00%40dewhirst.com.au.
Wednesday, July 31, 2019
Re: Writing your first Django app, part 1 - Can't Follow it
Hi,
I also having the same problem. And the actual reason was (poll instead of polls). Please check once in your view or url file. I am sure you also having the same issue.
Sender notified by Mailtrack 08/01/19, 10:43:28 AM |
On Thu, Aug 1, 2019 at 6:08 AM Anike Sadia <anikesadia01@gmail.com> wrote:
Hi I am new here--On Thu, 1 Aug 2019 at 01:33, Lim Kai Wey <limkaiwey@gmail.com> wrote:Sammy, would you mind attaching the whole project folder? ThanksRegards,Kai Wey--
You received this message because you are subscribed 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPcVkjjfaAg1WWDcDmKu4%3DWpys0tUkqGdOJnu-qTL2UcNi1dhw%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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CADi3Mtu27MK793j3hNdLMWXCg_RuTLb%3D1ptXazBAeZk-QCxNDg%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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2B1wcGhiY7aBO%3D3dCab_p7tax%3DhYbjkot2mCm5GappW6CShVNQ%40mail.gmail.com.
Re: Writing your first Django app, part 1 - Can't Follow it
Hi I am new here
On Thu, 1 Aug 2019 at 01:33, Lim Kai Wey <limkaiwey@gmail.com> wrote:
Sammy, would you mind attaching the whole project folder? ThanksRegards,Kai Wey--
You received this message because you are subscribed 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPcVkjjfaAg1WWDcDmKu4%3DWpys0tUkqGdOJnu-qTL2UcNi1dhw%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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CADi3Mtu27MK793j3hNdLMWXCg_RuTLb%3D1ptXazBAeZk-QCxNDg%40mail.gmail.com.
Re: Writing your first Django app, part 1 - Can't Follow it
Sammy, would you mind attaching the whole project folder? Thanks
Regards,
Kai Wey
-- You received this message because you are subscribed 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPcVkjjfaAg1WWDcDmKu4%3DWpys0tUkqGdOJnu-qTL2UcNi1dhw%40mail.gmail.com.
CREATE Model
Hi.. I was given this description on which i have to design model
- You have to design a user model in Django. You need to consider following use cases
Organization has multiple user type
- Organization's own employees
- Brands which do marketing on organization
- Developers
- End user.
- Now each of above users is firstly a organization's user. There are hierarchy in the brand (Every level has a different permission level)
- Owner
- Manager
- Associate
- There are hierarchy in Organization itself organisation (Every level has a different permission level)
- CEO
- VP
- Director
- Moderator
- Consider these cases you have to design database schema so that
- Any user can be an owner of n number of brand
- One brand can have n number of owner.
- There could be n number VP in organization.
So i build this model structure..
from django.conf import settings
from django.db import models
from django.contrib.auth.models import AbstractUser
from django.db.models.signals import post_save
from brands.models import Brand
class UserType(models.Model):
EMPLOYEE = 1
BRAND = 2
DEVELOPER = 3
USER_TYPE = (
(EMPLOYEE, "Employee"),
(BRAND, "Brand"),
(DEVELOPER, "Developer"),
)
id = models.PositiveSmallIntegerField(primary_key=True, choices=USER_TYPE)
def __str__(self):
return self.get_id_display()
class CustomUser(AbstractUser):
user_type = models.ManyToManyField(UserType)
verified = models.BooleanField(default=False)
class BrandUser(models.Model):
user = models.OneToOneField(settings.AUTH_USER_MODEL,
on_delete=models.CASCADE)
brands = models.ManyToManyField(Brand, through="BrandPosition")
def __str__(self):
return self.user.username
class BrandPosition(models.Model):
OWNER = 1
MANAGER = 2
ASSOCIATE = 3
ROLE = (
(OWNER, "Owner"),
(MANAGER, "Manager"),
(ASSOCIATE, "Associate")
)
user = models.ForeignKey(BrandUser,
on_delete=models.CASCADE)
brand = models.ForeignKey(Brand, on_delete=models.CASCADE)
position = models.PositiveSmallIntegerField(choices=ROLE)
class Meta:
unique_together = "user", "brand", "position",
def __str__(self):
return "{} as {} in {}".format(self.user.user.username,
self.get_position_display(),
self.brand.name)
class EmployeePosition(models.Model):
CEO = 1
VP = 2
DIRECTOR = 3
MODERATOR = 4
POSITIONS = (
(CEO, "CEO"),
(VP, "VP"),
(DIRECTOR, "Director"),
(MODERATOR, "Moderator"),
)
id = models.PositiveSmallIntegerField(primary_key=True, choices=POSITIONS)
def __str__(self):
return self.get_id_display()
class EmployeeUser(models.Model):
user = models.OneToOneField(settings.AUTH_USER_MODEL,
on_delete=models.CASCADE)
position = models.ManyToManyField(EmployeePosition)
class DeveloperUser(models.Model):
pass
Does it match the description or there's something missing??
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/035ed240-6f3d-4d41-a10c-26ab91115cc5%40googlegroups.com.
Re: Writing your first Django app, part 1 - Can't Follow it
On Wednesday, July 31, 2019 at 10:42:00 AM UTC-4, Lim Kai Wey wrote:
To Sammy,Are you sure your urls.py is in the correct file directory? As in it should be in mysite/mysite/urls.py instead of mysite/urls.pyRegards,Kai Wey
You received this message because you are subscribed 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4b09c9d0-690c-492d-8571-146dbc88732b%40googlegroups.com.
Re: Writing your first Django app, part 1 - Can't Follow it
On Wednesday, July 31, 2019 at 10:42:00 AM UTC-4, Lim Kai Wey wrote:
To Sammy,Are you sure your urls.py is in the correct file directory? As in it should be in mysite/mysite/urls.py instead of mysite/urls.pyRegards,Kai Wey
You received this message because you are subscribed 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ad0aa80a-b61f-4b32-9952-cc22ef3a4f81%40googlegroups.com.
Re: Writing your first Django app, part 1 - Can't Follow it
To Lim Kai Wey,
-- I am fairly certain that the directory is not the problem. However, since this is my first Django project, I am pretty certain I've missed something. I attached some pictures to better illustrate what I've done.
On Wednesday, July 31, 2019 at 10:42:00 AM UTC-4, Lim Kai Wey wrote:
On Wednesday, July 31, 2019 at 10:42:00 AM UTC-4, Lim Kai Wey wrote:
To Sammy,Are you sure your urls.py is in the correct file directory? As in it should be in mysite/mysite/urls.py instead of mysite/urls.pyRegards,Kai Wey
You received this message because you are subscribed 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e032f18d-8565-4cb3-95ad-3f5545788675%40googlegroups.com.
Re: Writing your first Django app, part 1 - Can't Follow it
I'm on Mac, and am still having this problem.
On Wed, Jul 31, 2019 at 10:46 AM Charlotte Wood <charlotte.wood@epiccharterschools.org> wrote:
Windows?On Wed, Jul 31, 2019, 6:20 AM Sammy Agrawal <asammy211@gmail.com> wrote:Still having this problem- no solution found
On Tuesday, February 9, 2016 at 7:22:58 PM UTC-5, michaela...@gmail.com wrote:Hi,
I am running into the same problem as this:
http://stackoverflow.com/questions/30493018/404-error-in-writing-your-first-django-app-tutorial
Now I can just follow the Alasdair's recommendation and delete the polls/url.py file, but the tutorial is very clear about having two separate urls.py.
Is this a mistake in the tutorial?
I even copied and pasted the tutorials code and tried to run it and it still gave the same error:
ImportError: No module named 'polls.urls'
Very confusing for a first step tutorial, maybe this could be corrected if it is an issue?
Kind 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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/abb48a60-7ff7-445a-8468-616fc6f30ea2%40googlegroups.com.
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/dV46T9ZqPhA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPZR0N5XnyD%2BeG8ND-Uq%3DnkNEAM4hcjHsX%2BmxO2YLD-b0RCZxQ%40mail.gmail.com.
- Sammy
-- You received this message because you are subscribed 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHUCoei16dXLtznLf-WakojNuK8wSdfNZ%3DhBn%3DvFXEJ1OHX4sw%40mail.gmail.com.
Document flow between parties
Hi .
Please can anyone refer me to a good source to learn how to write a programme which supports document creation, flow,
Best,
-- Please can anyone refer me to a good source to learn how to write a programme which supports document creation, flow,
conversion, management and tracking between parties?
Best,
K
You received this message because you are subscribed 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/92ed4806-d7f3-4cce-b626-bc5da8768e2b%40googlegroups.com.
Re:
I'm not sure this could help your situation but it did solve mine for Photo Uploading, since uploading images and files are similar. Hope it helps!
Regards,
Kai Wey
-- You received this message because you are subscribed 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPcVkjic_JyxnARyEt%3D74jYOkpDugYKyojp-rjuCaAtv1fvtuA%40mail.gmail.com.
Re: Writing your first Django app, part 1 - Can't Follow it
Windows?
On Wed, Jul 31, 2019, 6:20 AM Sammy Agrawal <asammy211@gmail.com> wrote:
Still having this problem- no solution found--
On Tuesday, February 9, 2016 at 7:22:58 PM UTC-5, michaela...@gmail.com wrote:Hi,
I am running into the same problem as this:
http://stackoverflow.com/questions/30493018/404-error-in-writing-your-first-django-app-tutorial
Now I can just follow the Alasdair's recommendation and delete the polls/url.py file, but the tutorial is very clear about having two separate urls.py.
Is this a mistake in the tutorial?
I even copied and pasted the tutorials code and tried to run it and it still gave the same error:
ImportError: No module named 'polls.urls'
Very confusing for a first step tutorial, maybe this could be corrected if it is an issue?
Kind 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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/abb48a60-7ff7-445a-8468-616fc6f30ea2%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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPZR0N5XnyD%2BeG8ND-Uq%3DnkNEAM4hcjHsX%2BmxO2YLD-b0RCZxQ%40mail.gmail.com.
Re: Writing your first Django app, part 1 - Can't Follow it
To Sammy,
Are you sure your urls.py is in the correct file directory? As in it should be in mysite/mysite/urls.py instead of mysite/urls.py
Regards,
Kai Wey
-- You received this message because you are subscribed 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPcVkjh5_TcV2DF9OcDKtfAzt%3D%3Djqcnivce5aq9bJTT0WuBeQQ%40mail.gmail.com.
Re: Recreating SQL query in ORM
Hello,
assuming you have a FullMatch model mapped to your FullMatches table
the following should do.
FullMatch.objects.filter(
job_id=job_id,
).values(
seq=Concat('loading_code', ...),
ids=Concat('loading_id', ....),
).annotate(
total=Count('*'),
).order_by('-total')
Using .values() before an annotation of an aggregate function uses the provided columns
from grouping.
Simon
Hello,I have an sql query that I would like to recreate using the ORM. Would it be possible for someone to give me some pointers.select count(*) as total,concat(loading_code,code1_code,code2_code,code3_code, code4_code) as seq, concat(loading_id,',',code1_id,',',code2_id,',',code3_id,' ,',code4_id) as ids from FullMatches where job_id = %s group by seq, ids order by total descThanks in advance.Johnny
You received this message because you are subscribed 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/276bf123-6990-4594-a9cf-8e9a8432d40e%40googlegroups.com.
Re: Writing your first Django app, part 1 - Can't Follow it
Give the polls.urls in quotes like this.
"polls.urls"
Karan Mittal
On Wed 31 Jul, 2019, 4:50 PM Sammy Agrawal, <asammy211@gmail.com> wrote:
Still having this problem- no solution found--
On Tuesday, February 9, 2016 at 7:22:58 PM UTC-5, michaela...@gmail.com wrote:Hi,
I am running into the same problem as this:
http://stackoverflow.com/questions/30493018/404-error-in-writing-your-first-django-app-tutorial
Now I can just follow the Alasdair's recommendation and delete the polls/url.py file, but the tutorial is very clear about having two separate urls.py.
Is this a mistake in the tutorial?
I even copied and pasted the tutorials code and tried to run it and it still gave the same error:
ImportError: No module named 'polls.urls'
Very confusing for a first step tutorial, maybe this could be corrected if it is an issue?
Kind 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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/abb48a60-7ff7-445a-8468-616fc6f30ea2%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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO24gqzFRsz6iuhb0XTx6J4RJOy%3DW6q2cy8ND0%3DNausjk%2Bt%3DgQ%40mail.gmail.com.
Something about django
Is there any better way with proper good documentation about email verification using jwt.
-- You received this message because you are subscribed 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPjsHcGW4Z-KaqkvPdqk6UJVKKywxdQDZmYOtqEHSHsm9M%3Dnxg%40mail.gmail.com.
Re: Localtunnel with my Django Project
Hello, how did you do it please help?
On Monday, October 30, 2017 at 9:51:16 AM UTC+3, yingi keme wrote:
-- On Monday, October 30, 2017 at 9:51:16 AM UTC+3, yingi keme wrote:
Thanks alotI did it and it worked, added the address to ALLOWED_HOSTS in my settings.pyThanks once again
Yingi KemHiYou don't need to integrate localtunnel with django. Open django test server in one terminal and issue localtunnel command in another -
Above command will expose port number 8000 on internet, which is the port of your django test server and you can test as required.lt --port 8000
----
Shree Kant BohraCo-founderGeekybuddha TechnologiesOn Mon, Oct 30, 2017 at 3:09 AM, yingi keme <ying...@gmail.com> wrote:Hello
I need to test a service that uses Webhooks - HTTP callbacks.
I want to use localtunnel to open my localhost to the internet. However i dont know how to integrate it with my django project. I also dont know how to set up the url patterns if i am to use localtunnel.
Any 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...@googlegroups.com .
To post to this group, send email to django...@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/ad8fdd20- .95f3-4868-a17f-580dd54a800d% 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...@googlegroups.com .
To post to this group, send email to django...@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/CAD5EYcq% .3DhHU8aGAK0hu_pSdLijCFKX% 3DdEYdH%2B_9v%2BRse5igOSQ% 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7b48bc99-c6ff-438b-bd58-7b65a594f166%40googlegroups.com.
Subscribe to:
Posts (Atom)