@posthog/wizard
Version:
The PostHog wizard helps you to configure your project
32 lines (31 loc) • 1.23 kB
TypeScript
import type { WizardOptions } from '../utils/types';
export declare enum DjangoProjectType {
STANDARD = "standard",// Traditional Django project (django-admin startproject)
DRF = "drf",// Django REST Framework API
WAGTAIL = "wagtail",// Wagtail CMS
CHANNELS = "channels"
}
/**
* Get Django version bucket for analytics
*/
export declare function getDjangoVersionBucket(version: string | undefined): string;
/**
* Extract Django version from requirements files or pyproject.toml
*/
export declare function getDjangoVersion(options: Pick<WizardOptions, 'installDir'>): Promise<string | undefined>;
/**
* Detect Django project type
*/
export declare function getDjangoProjectType(options: WizardOptions): Promise<DjangoProjectType>;
/**
* Get human-readable name for Django project type
*/
export declare function getDjangoProjectTypeName(projectType: DjangoProjectType): string;
/**
* Find the main Django settings file
*/
export declare function findDjangoSettingsFile(options: Pick<WizardOptions, 'installDir'>): Promise<string | undefined>;
/**
* Find the main Django urls.py file
*/
export declare function findDjangoUrlsFile(options: Pick<WizardOptions, 'installDir'>): Promise<string | undefined>;